/*
Theme Name: Teknik Part
Theme URI: https://www.teknikpart.com.tr
Author: Teknik Part Makine
Author URI: https://www.teknikpart.com.tr
Description: Plastik enjeksiyon çevre ekipmanları için özel WordPress teması. Ferlin, EAS, Rummel, Bunting, MuCell, Drywell, DMS, IPS, Sperowell ve Fiege markalarının Türkiye distribütörü.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teknikpart
Tags: industrial, product-catalog, custom-post-type, turkish
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ============================================
   TEKNIK PART MAKINE — MAIN STYLESHEET
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #c0392b;
    --primary-hover: #a93226;
    --dark: #1a202c;
    --gray-900: #1a1a1a;
    --gray-800: #2d2d2d;
    --gray-700: #4a4a4a;
    --gray-600: #666;
    --gray-500: #888;
    --gray-400: #aaa;
    --gray-300: #ccc;
    --gray-200: #e2e2e2;
    --gray-100: #f0f0f0;
    --gray-50: #f7f7f7;
    --white: #fff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

main {
    background: var(--white);
    flex: 1;
}

/* ---- TOPBAR ---- */
.topbar {
    background: var(--dark);
    color: var(--gray-400);
    font-size: 0.75rem;
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid #2d3748;
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    gap: 1.5rem;
}

.topbar-left span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.topbar-left .icon {
    color: var(--gray-500);
}

.topbar-right {
    display: flex;
    gap: 1rem;
}

.topbar-right a {
    color: var(--gray-400);
}

.topbar-right a:hover {
    color: var(--white);
}

.topbar-sep {
    color: var(--gray-600);
}

/* ---- HEADER ---- */
.header {
    background: var(--white);
    border-bottom: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    font-size: 1.5rem;
    border-radius: 2px;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-link:hover .logo-text h1 {
    color: var(--primary);
}

.logo-text .tagline {
    font-size: 0.6rem;
    color: var(--gray-500);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* WP Nav Menu */
.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a,
.main-nav ul li a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a,
.main-nav ul li.current_page_item a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ---- HERO ---- */
.hero {
    position: relative;
    height: 450px;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%231a202c" width="100" height="100"/><circle cx="50" cy="50" r="1" fill="%23333" opacity="0.3"/></svg>') repeat;
    opacity: 0.6;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--gray-900), rgba(26, 32, 44, 0.6), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.hero-box {
    max-width: 640px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 2.5rem;
    border-left: 4px solid var(--primary);
}

.hero-box .label {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.hero-box h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-box p {
    color: var(--gray-300);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-white {
    background: var(--white);
    color: var(--gray-900);
}

.btn-white:hover {
    background: var(--gray-100);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
}

/* ---- CONTENT LAYOUT ---- */
.content-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2.5rem;
}

/* ---- SIDEBAR ---- */
.sidebar-block {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    margin-bottom: 2rem;
}

.sidebar-block h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--gray-300);
}

.sidebar-block ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-block ul li a:hover {
    color: var(--primary);
}

.sidebar-block ul li a .arrow {
    color: var(--gray-400);
}

.sidebar-block ul li a:hover .arrow {
    color: var(--primary);
}

.sidebar-cta {
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 2px;
    text-align: center;
}

.sidebar-cta h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.sidebar-cta .btn-cta {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.sidebar-cta .btn-cta:hover {
    opacity: 0.9;
}

/* ---- MAIN AREA ---- */
.intro-block {
    border-left: 4px solid var(--gray-300);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.intro-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.intro-block p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.8;
    text-align: justify;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.section-header a {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
}

.section-header a:hover {
    text-decoration: underline;
}

/* ---- PRODUCT CARDS ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-image {
    aspect-ratio: 4/3;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .placeholder {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-align: center;
    font-weight: 500;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-body .brand-tag {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-body p {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.card-actions a {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    border-radius: 2px;
    text-transform: uppercase;
}

.card-actions .btn-detail {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.card-actions .btn-detail:hover {
    background: var(--gray-200);
}

.card-actions .btn-quote {
    background: var(--primary);
    color: var(--white);
}

.card-actions .btn-quote:hover {
    background: var(--primary-hover);
}

/* ---- PARTNERS BAR ---- */
.partners-bar {
    background: var(--gray-100);
    padding: 2.5rem 1.5rem;
    border-top: 4px solid var(--gray-200);
}

.partners-bar h3 {
    text-align: center;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.partners-logos {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0.6;
}

.partners-logos:hover {
    opacity: 1;
}

.partner-logo {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- FOOTER ---- */
.footer {
    background: #000;
    color: var(--white);
    border-top: 1px solid #111;
}

.footer-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-col h3 .accent-bar {
    display: inline-block;
    width: 4px;
    height: 28px;
    background: var(--primary);
}

.footer-col h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-col p {
    color: var(--gray-400);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 360px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.2s;
}

.footer-col ul li:hover {
    color: var(--primary);
}

.footer-col ul li a {
    color: var(--gray-400);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background: #111;
    border: 1px solid #222;
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form input::placeholder {
    color: var(--gray-600);
}

.newsletter-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: var(--font);
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #a93226;
}

.footer-bottom {
    border-top: 1px solid #111;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links span {
    cursor: pointer;
    transition: color 0.2s;
}

.footer-links span:hover {
    color: var(--white);
}

/* ---- PAGE BANNER ---- */
.page-banner {
    background: var(--dark);
    padding: 2rem 1.5rem;
    color: var(--white);
    border-bottom: 4px solid var(--primary);
}

.page-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: var(--gray-400);
}

.breadcrumb a:hover {
    color: var(--white);
}

.page-banner h2 {
    font-size: 2rem;
    font-weight: 700;
}

/* ---- PRODUCTS LIST PAGE ---- */
.products-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ---- DETAIL PAGE ---- */
.detail-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-image {
    aspect-ratio: 4/3;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gray-400);
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.detail-info .brand-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.detail-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.85rem;
}

.specs-table th {
    text-align: left;
    padding: 0.6rem 1rem;
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    border: 1px solid var(--gray-200);
}

.specs-table td {
    padding: 0.6rem 1rem;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.features-list {
    background: var(--gray-50);
    border-left: 3px solid var(--primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.features-list h4 {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.features-list li {
    padding: 0.4rem 0;
    color: var(--gray-600);
    font-size: 0.85rem;
    padding-left: 1rem;
    position: relative;
}

.features-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .content-wrap {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .detail-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hero-box h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-list-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .topbar-right {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}