/**
 * Nano Medya Theme Styles - v2.0.0
 * Tüm stiller bu dosyada toplanmıştır.
 * inline <style> blokları buraya taşındı.
 * @package NanoMedya
 */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-accessible: #d4520f; /* WCAG AA kontrastı geçen ton - beyaz bg üzerinde */
    --secondary: #1A1A1A;
    --text: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --footer-bg: #1A1A1A;
}

/* ===== RESET & BASE ===== */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    padding-top: 80px;
}

/* Screen reader only (erişilebilirlik) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Heading içindeki linklere browser default mavi renk gelmesin */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover {
    color: inherit;
    opacity: 0.85;
}

/* ===== NAVBAR ===== */
.navbar {
    transition: all 0.3s ease;
    padding: 1.25rem 0;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Logo - masaustu sabit boyut */
.navbar-brand img {
    width: 240px;
    height: 40px;
    transition: opacity 0.2s;
}

/* Footer logonu daha küçük göster */
.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-link {
    font-weight: 600;
    color: var(--text) !important;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Navbar toggler erişilebilirlik */
.navbar-toggler {
    border: none;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255,107,53,0.3);
    outline: none;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,107,53,0.2);
    color: white;
}

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

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

/* WhatsApp button */
.btn-whatsapp {
    background-color: #25D366;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background-color: #20b858;
    color: white;
    transform: translateY(-2px);
}

/* ===== MEGA MENU ===== */
.dropdown-menu-mega {
    width: 100%;
    max-width: 900px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    position: absolute;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 2rem;
    padding-top: 1.5rem;
    visibility: hidden;
    opacity: 0;
    display: block !important;
    pointer-events: none;
    /* GECIKME: Kapanmadan once 250ms bekle - fare gecis suresi */
    transition: opacity 0.15s ease, visibility 0s linear 0.25s;
    /* Navbar ile ustuste bin - 0px gercek bosluk */
    margin-top: -4px;
    padding-top: calc(1.5rem + 4px);
    top: 100%;
    z-index: 9999;
}

/* Desktop hover */
@media (min-width: 992px) {
    /* Nav item hover VEYA mega menu'nun kendisi hover = acik kal */
    .nav-item.dropdown:hover .dropdown-menu-mega,
    .dropdown-menu-mega:hover,
    .dropdown-menu-mega.show {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.12s ease, visibility 0s linear 0s;
    }
    /* Navbar li'ya alt padding - hover alani genislet */
    .nav-item.dropdown {
        padding-bottom: 4px;
    }
}

/* Bootstrap show class - mobile */
.dropdown-menu-mega.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mega-menu-item {
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s;
    display: block;
    text-decoration: none;
}

.mega-menu-item:hover {
    background-color: var(--bg-light);
}

.mega-menu-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.mega-menu-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    display: block;
}

.mega-menu-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
}

/* ===== HERO VIDEO SECTION ===== */
.hero-video-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26,26,26,0.78) 0%,
        rgba(26,26,26,0.55) 50%,
        rgba(255,107,53,0.15) 100%
    );
    z-index: 1;
}

.hero-video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-video-content .hero-badge {
    display: inline-block;
    background: rgba(255,107,53,0.2);
    border: 1px solid rgba(255,107,53,0.5);
    color: #ff9a72;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-video-content h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-video-content h1 .accent {
    color: var(--primary);
}

.hero-video-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator i {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.6);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== CAROUSEL (eski yapı fallback) ===== */
/* Carousel indicator butonlarına aria-label eklendi, renk kontrast OK */

/* ===== SOCIAL ICONS (footer) ===== */
.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

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

/* ===== FOOTER ===== */
footer {
    background-color: var(--footer-bg) !important;
}

/* Footer list links (footer.php'den taşındı) */
footer .list-unstyled li a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .list-unstyled li a:hover {
    color: #ffffff;
}

/* Partner logos */
.partner-logo {
    height: 50px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Footer heading renk kontrast fix */
footer h5,
footer h6 {
    color: #c8c8c8; /* Koyu zeminde daha okunabilir */
}

/* Kontrast fix - orange on dark = OK; orange on white = WCAG fail */
/* Açık bg üzerinde primary rengi daralt */
.text-primary-accessible {
    color: var(--primary-accessible) !important;
}

/* Badge kontrast fix */
.badge-primary-light {
    background: rgba(212,82,15,0.15);
    color: var(--primary-accessible);
    border: 1px solid rgba(212,82,15,0.3);
}

/* ===== QUICK LINKS & SERVICES ===== */
.hover-white:hover {
    color: white !important;
}

/* ===== HOVER LIFT (kart efekti) ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

/* ===== WORDPRESS CORE ===== */
.site-content { min-height: 400px; }

.entry-content img {
    max-width: 100%;
    height: auto;
}

.wp-block-image { margin-bottom: 1.5rem; }

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PAGINATION ===== */
.pagination { margin-top: 2rem; }

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--primary);
    color: white;
}

/* ===== BLOG ===== */
.blog-content a {
    color: var(--primary-accessible);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 991px) {
    /* Logo mobilde küçült */
    .navbar-brand img {
        width: 190px;
        height: 31px;
    }

    .navbar-nav.mx-auto {
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-items: stretch !important;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        text-align: left;
    }

    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        padding: 1rem 0 !important;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
        width: 100%;
        text-align: left;
    }

    .dropdown-menu-mega {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        box-shadow: none !important;
        padding: 0 0 0 1rem !important;
        margin: 0 !important;
        display: none !important;
        opacity: 1 !important;
        background: transparent !important;
        border: none !important;
        float: none !important;
        max-width: none !important;
        visibility: visible !important;
    }

    .nav-item.dropdown:hover .dropdown-menu-mega {
        display: none;
    }

    .dropdown-menu-mega.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        transform: none !important;
    }

    .mega-menu-item {
        padding: 0.75rem 0;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f8f9fa;
        border-radius: 0;
    }

    .mega-menu-item:last-child {
        border-bottom: none;
    }

    .mega-menu-icon {
        font-size: 1.25rem;
        margin-bottom: 0;
        margin-right: 1rem;
        width: 30px;
        text-align: center;
    }

    .mega-menu-title {
        font-size: 0.95rem;
        margin-bottom: 0;
        font-weight: 500;
    }

    .mega-menu-desc {
        display: none;
    }

    .dropdown-menu-mega .row { margin: 0; }
    .dropdown-menu-mega .col-lg-4 { padding: 0; }

    /* Mobile buttons */
    .mobile-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        padding-top: 3px;
    }

    .w-100-mobile {
        width: 100% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Hero video mobile - tam yukseklik */
    .hero-video-section {
        min-height: 70vh;
    }

}

@media (max-width: 576px) {
    .navbar-brand img {
        width: 160px;
        height: 26px;
    }
}

/* ===== ARTICLE CONTENT - TAM GENISLIK ===== */
/* Makale metin parcalari (paragraf/liste) okunabilir genislikte kalsin */
.article-content {
    font-size: 1.1rem;    /* Masaustu: 17.6px - rahat okuma */
    line-height: 1.85;
    color: #374151;
}

/* Mobil: 16px (1rem) - Google minimum standardi */
@media (max-width: 768px) {
    .article-content {
        font-size: 1rem;
        line-height: 1.75;
        text-align: left;          /* Justify Türkçe'de çirkin bogaz bosluklar yaratıyor */
        word-break: break-word;    /* Cok uzun kelimeler tasmasin */
        overflow-wrap: break-word;
    }

    /* Devasa boslukları küçült (mt-5=3rem -> 1.25rem, mb-4=1.5rem -> 0.75rem) */
    .article-content .mt-5 { margin-top: 1.25rem !important; }
    .article-content .mb-4 { margin-bottom: 0.75rem !important; }
    .article-content .mb-5 { margin-bottom: 1rem !important; }
    .article-content .my-5 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; }

    /* Bootstrap container yan bosluk 12px -> 20px (Google standardi min 16px) */
    .container, .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Paragraflar ve listeler tam genislik */
.article-content > p,
.article-content > ul,
.article-content > ol,
.article-content > .mb-4 > p {
    width: 100%;
}

/* Basliklar tam genislik */
.article-content h2,
.article-content h3,
.article-content h4 {
    width: 100%;
}

/* Gorseller, kutular ve tam genislik bilesenler tum alanı kullansin */
.article-content img,
.article-content .p-4,
.article-content .p-5,
.article-content .my-5,
.article-content .d-flex {
    max-width: 100%;
}

/* Process steps (d-flex gap) tam genislik */
.article-content > .my-5 > .d-flex {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== VIDEO HERO ===== */
.hero-video-section {
    background-color: #000; /* Video yuklenene kadar siyah */
}

.hero-video-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Mobilde video kucuk ekrana uyum (gizlemiyoruz, gösteriyoruz) */
@media (max-width: 768px) {
    .hero-video-section video {
        object-position: center center;
    }
    .hero-video-section {
        min-height: 60vh;
    }

    /* Mobilde blur blob'lari kucult - masaustunde guzel ama mobilde cok fazla */
    .hero-video-section .blob {
        width: 180px !important;
        height: 180px !important;
        filter: blur(50px) !important;
        opacity: 0.12 !important;
    }
}
