/* ============================================================
   KOBI PROJE - WORDPRESS ELEMENTOR UYUMLU TEMA CSS
   ============================================================
   Bu CSS dosyası temanın temel stillerini içerir.
   Elementor ile düzenlenen sayfalar kendi stillerini üretir.
   Bu dosya sadece header, footer ve genel yapı için kullanılır.
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties
   ------------------------------------------------------------ */
:root {
    --color-primary: #1a2a5e;
    --color-primary-dark: #0f1d45;
    --color-primary-light: #2d4a8e;
    --color-secondary: #d4a843;
    --color-secondary-light: #e8c76a;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-text-primary: #2d3436;
    --color-text-secondary: #636e72;
    --color-text-light: #b2bec3;
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-dark: #0f1d45;
    --color-border: #e0e0e0;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --container-max: 1200px;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------------------
   3. SKIP LINK
   ------------------------------------------------------------ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: top var(--transition-fast);
}
.skip-link:focus {
    top: 16px;
}


/* ------------------------------------------------------------
   4. HEADER
   ------------------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header--transparent {
    background: transparent;
}
.header--transparent.header--scrolled,
.header--opaque {
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-md);
}

.header__nav { width: 100%; }

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

.header__logo img {
    height: 48px;
    width: auto;
}
.header__logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Menü */
.header__menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.header__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-primary);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.header--transparent:not(.header--scrolled) .header__link {
    color: #fff;
}

.header__link:hover,
.header__link--active {
    color: var(--color-secondary);
    background: rgba(26,42,94,0.06);
}

.header--transparent:not(.header--scrolled) .header__link:hover,
.header--transparent:not(.header--scrolled) .header__link--active {
    background: rgba(255,255,255,0.15);
    color: var(--color-secondary-light);
}

.header__chevron {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

/* Mega Menü */
.header__mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    min-width: 600px;
}

.header__menu-item--has-mega:hover .header__mega-menu {
    opacity: 1;
    visibility: visible;
}

.header__mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.header__mega-link {
    display: block;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--color-text-primary);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.header__mega-link:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
}

/* CTA Buton */
.header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-secondary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    white-space: nowrap;
}
.header__cta:hover {
    background: var(--color-secondary-light);
}

.header__phone-icon {
    width: 18px;
    height: 18px;
}

.header__cta--mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}
.header--transparent:not(.header--scrolled) .header__cta--mobile {
    color: #fff;
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.header__hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.header--transparent:not(.header--scrolled) .header__hamburger-line {
    background: #fff;
}

/* Mobil Menü */
.header__mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
}
.header__mobile-menu[aria-hidden="false"] {
    pointer-events: all;
}

.header__mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity var(--transition-base);
}
.header__mobile-menu[aria-hidden="false"] .header__mobile-overlay {
    opacity: 1;
}

.header__mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    padding: 24px;
}
.header__mobile-menu[aria-hidden="false"] .header__mobile-panel {
    transform: translateX(0);
}

.header__mobile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-primary);
    line-height: 1;
}

.header__mobile-nav {
    list-style: none;
    margin-top: 48px;
}
.header__mobile-nav li { border-bottom: 1px solid var(--color-border); }
.header__mobile-nav a,
.header__mobile-nav button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.header__mobile-submenu {
    list-style: none;
    display: none;
    padding-left: 16px;
}
.header__mobile-submenu.is-open { display: block; }
.header__mobile-submenu a {
    font-size: 0.875rem;
    font-weight: 400;
    padding: 10px 0;
}

.header__mobile-chevron {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.header__mobile-cta {
    margin-top: 24px;
}
.header__mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .header__menu,
    .header__cta { display: none; }
    .header__hamburger,
    .header__cta--mobile { display: flex; }
}


/* ------------------------------------------------------------
   5. FOOTER
   ------------------------------------------------------------ */
.footer {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 64px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo img { height: 42px; width: auto; margin-bottom: 16px; }

.footer__intro {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 12px;
}
.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.footer__social-link svg { width: 18px; height: 18px; }
.footer__social-link:hover { background: var(--color-secondary); transform: translateY(-2px); }

.footer__heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a,
.footer__link {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--color-secondary); }

.footer__contact-list { list-style: none; }
.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}
.footer__contact-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.footer__contact-link { color: rgba(255,255,255,0.7); transition: color var(--transition-fast); }
.footer__contact-link:hover { color: var(--color-secondary); }

.footer__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: #25D366;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}
.footer__whatsapp svg { width: 20px; height: 20px; }
.footer__whatsapp:hover { background: #1da851; }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}
.footer__legal { display: flex; gap: 8px; align-items: center; }
.footer__legal-link { color: rgba(255,255,255,0.5); transition: color var(--transition-fast); }
.footer__legal-link:hover { color: var(--color-secondary); }

@media (max-width: 768px) {
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ------------------------------------------------------------
   6. PAGE HERO (İç Sayfalar)
   ------------------------------------------------------------ */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 140px 0 60px;
    text-align: center;
}
.page-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.page-hero__subtitle {
    font-size: 1.125rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 20px;
}
.page-hero__breadcrumb {
    font-size: 0.875rem;
    opacity: 0.7;
}
.page-hero__breadcrumb a { color: #fff; transition: opacity var(--transition-fast); }
.page-hero__breadcrumb a:hover { opacity: 1; }
.page-hero__breadcrumb-separator { margin: 0 8px; }

/* ------------------------------------------------------------
   7. BUTONLAR
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
}
.btn--sm { padding: 8px 16px; font-size: 0.875rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--secondary { background: var(--color-secondary); color: #fff; }
.btn--secondary:hover { background: var(--color-secondary-light); }
.btn--white { background: #fff; color: var(--color-primary); }
.btn--white:hover { background: rgba(255,255,255,0.9); }
.btn__icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   8. GENEL YARDIMCI SINIFLAR
   ------------------------------------------------------------ */
.text-center { text-align: center; }
.mb-lg { margin-bottom: 24px; }
.mb-2xl { margin-bottom: 48px; }
.section-padding { padding: 80px 0; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 12px;
}
.section-description {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ------------------------------------------------------------
   9. WORDPRESS UYUMLULUK
   ------------------------------------------------------------ */
/* Elementor override - tam genişlik */
.elementor-page .site-main,
.elementor-page #main-content {
    padding: 0;
    margin: 0;
}

/* Elementor section padding override */
body:not(.elementor-page) .entry-content {
    line-height: 1.8;
}
body:not(.elementor-page) .entry-content h1,
body:not(.elementor-page) .entry-content h2,
body:not(.elementor-page) .entry-content h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 16px;
}
body:not(.elementor-page) .entry-content p {
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

/* Post grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}
.post-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__content { padding: 24px; }
.post-card__title { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 12px; }
.post-card__title a { color: var(--color-primary); }
.post-card__title a:hover { color: var(--color-secondary); }
.post-card__link { color: var(--color-secondary); font-weight: 600; font-size: 0.875rem; }


/* ------------------------------------------------------------
   10. WHATSAPP FLOATING BUTON
   ------------------------------------------------------------ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
.whatsapp-float__tooltip {
    position: absolute;
    right: 68px;
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }

/* Scroll to top */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 998;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: opacity 0.2s;
}
.scroll-top-btn.visible { display: flex; }
.scroll-top-btn svg { width: 20px; height: 20px; stroke: #fff; fill: none; }
