/* =========================================
   1. TEMEL SIFIRLAMALAR
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f9f9f9; color: #333; }

/* =========================================
   2. HEADER TASARIMI (YENİ NESİL GRID)
   ========================================= */
.site-header { background-color: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 15px 30px; width: 100%; }
.header-left-edge { justify-self: start; }
.header-right-edge { justify-self: end; }
.header-container { display: flex; align-items: center; gap: 40px; justify-self: center; }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #e67e22; margin-right: 15px; }
.site-branding { display: flex; flex-direction: column; justify-content: center; }
.site-title { font-size: 24px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #2c3e50; line-height: 1.1; }
.site-slogan { font-size: 13px; font-style: italic; color: #7f8c8d; margin-top: 3px; }
.header-menu ul { display: flex; list-style: none; }
.header-menu ul li { margin: 0 15px; }
.header-menu ul li a { text-decoration: none; color: #555; font-weight: 500; font-size: 15px; transition: color 0.3s ease; }
.header-menu ul li a:hover { color: #e67e22; }
.spotify-radio-btn { display: flex; align-items: center; background-color: #1DB954; color: #ffffff; text-decoration: none; padding: 8px 15px; border-radius: 20px; font-size: 14px; font-weight: 600; transition: transform 0.2s ease, background-color 0.3s ease; }
.spotify-radio-btn i { font-size: 18px; margin-right: 8px; }
.spotify-radio-btn:hover { background-color: #1ed760; transform: scale(1.05); }
.header-social { display: flex; gap: 10px; }
.header-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background-color: #f1f2f6; color: #2c3e50; border-radius: 50%; text-decoration: none; font-size: 16px; transition: all 0.3s ease; }
.header-social a:hover { background-color: #e67e22; color: #fff; transform: translateY(-2px); }
.dark-mode-btn { background-color: #f1f2f6; border: none; color: #2c3e50; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.dark-mode-btn:hover { background-color: #2c3e50; color: #f1c40f; }
.hamburger-btn { display: none; }

/* =========================================
   3. YENİ NESİL HERO SLİDER (VİTRİN)
   ========================================= */
.home-main-content { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.hero-slider-wrapper { width: 100%; max-width: 950px; min-height: 400px; margin: 20px auto 50px auto; position: relative; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); overflow: hidden; background-color: #2c3e50; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; background-color: #2c3e50; background-size: cover; background-position: center; transition: opacity 0.6s ease-in-out, visibility 0.6s; z-index: 1; }
.slide.active { opacity: 1; visibility: visible; z-index: 10; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(44, 62, 80, 0.88); z-index: 1; }
.slide-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; width: 100%; height: 100%; padding: 30px 50px; }
.slide-image { width: 220px; height: 320px; object-fit: cover; border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.4); flex-shrink: 0; }
.slide-content { flex: 1; padding: 0; max-width: none; text-align: left; }
.slide-content h2 { font-size: 32px; margin: 15px 0; line-height: 1.2; color: #fff; }
.slide-content p { font-size: 16px; color: #ecf0f1; line-height: 1.6; }

/* =========================================
   4. BÖLÜM VE KART TASARIMLARI
   ========================================= */
.category-badge { padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.cinepub-badge { background-color: #e74c3c; color: #fff; }
.gastro-badge { background-color: #f1c40f; color: #000; }
.kitaplik-badge { background-color: #3498db; color: #fff; }
.content-section { margin-bottom: 50px; }
.section-title { font-size: 24px; color: #2c3e50; border-left: 4px solid #e67e22; padding-left: 15px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; }
.section-title span { font-size: 14px; color: #7f8c8d; font-style: italic; font-weight: normal; }

.slider-relative-wrapper { position: relative; width: 100%; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; background: rgba(255, 255, 255, 0.96); border: 1px solid #e1e8ed; border-radius: 50%; cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; color: #2c3e50; box-shadow: 0 4px 12px rgba(0,0,0,0.12); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.slider-arrow:hover { background: #e67e22; color: #fff; border-color: #e67e22; transform: translateY(-50%) scale(1.08); }
.prev-arrow { left: -22px; }
.next-arrow { right: -22px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; color: #fff; cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.3s ease; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hero-arrow:hover { background: #e67e22; border-color: #e67e22; transform: translateY(-50%) scale(1.05); }
.hero-prev { left: 25px; }
.hero-next { right: 25px; }

.scroll-row { display: flex; gap: 20px; overflow-x: auto !important; padding-bottom: 15px; scrollbar-width: none; -webkit-overflow-scrolling: touch; ms-overflow-style: none; }
.scroll-row::-webkit-scrollbar { display: none !important; }
.card { background: #fff; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); overflow: hidden; flex: 0 0 auto; transition: transform 0.3s ease; }
.card:hover { transform: translateY(-5px); }
.movie-card { width: 220px; }
.gastro-card { width: 280px; }
.card img { width: 100%; height: 300px; object-fit: cover; }
.gastro-card img { height: 180px; }
.card-info { padding: 15px; }
.card-info h4 { font-size: 16px; margin-bottom: 5px; color: #2c3e50; }
.card-info p { font-size: 13px; color: #7f8c8d; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.book-item { background: #fff; padding: 20px; border-radius: 8px; border-left: 3px solid #34495e; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.book-item h4 { margin-bottom: 10px; color: #2c3e50; }
.book-item p { font-size: 14px; color: #555; margin-bottom: 15px; line-height: 1.5; }
.book-item a { color: #e67e22; text-decoration: none; font-weight: bold; font-size: 13px; }

/* =========================================
   5. DETAY SAYFASI TASARIMI
   ========================================= */
.detail-page-wrapper { width: 100%; padding: 60px 20px; background-color: #f4f6f9; }
.detail-container { max-width: 900px; margin: 0 auto; background: #fff; padding: 50px; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); }
.detail-header { text-align: center; margin-bottom: 40px; }
.detail-badge { color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.detail-title { margin: 25px 0 15px 0; color: #2c3e50; font-size: 34px; line-height: 1.3; }
.detail-meta { color: #7f8c8d; font-size: 15px; }
.detail-image { margin-bottom: 40px; border-radius: 8px; overflow: hidden; }
.detail-image img { width: 100%; max-height: 550px; object-fit: cover; display: block; }
.detail-content { font-size: 17px; line-height: 1.8; color: #34495e; }
.detail-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.detail-content h2, .detail-content h3 { margin: 30px 0 15px 0; color: #2c3e50; }
.detail-back { margin-top: 50px; padding-top: 25px; border-top: 1px solid #eee; text-align: center; }
.detail-back a { display: inline-flex; align-items: center; gap: 8px; color: #e74c3c; text-decoration: none; font-weight: bold; font-size: 16px; transition: color 0.3s; }
.detail-back a:hover { color: #c0392b; }

/* =========================================
   6. ALT SAYFALAR (GASTRO, KİTAPLIK, CINEPUB)
   ========================================= */
.page-header { text-align: center; padding: 60px 20px 40px 20px; background-color: #f4f6f9; border-bottom: 1px solid #e1e8ed; }
.page-title { font-size: 36px; color: #2c3e50; margin-bottom: 15px; font-weight: 700; }
.page-subtitle { font-size: 16px; color: #7f8c8d; max-width: 600px; margin: 0 auto 30px auto; line-height: 1.6; }
.search-container { max-width: 600px; margin: 0 auto; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border-radius: 30px; overflow: hidden; display: flex; }
.search-input { flex: 1; padding: 16px 25px; border: none; outline: none; font-size: 16px; background: #fff; color: #333; }
.search-btn { padding: 0 30px; background: #e67e22; color: #fff; border: none; cursor: pointer; font-size: 18px; transition: background 0.3s; }
.search-btn:hover { background: #d35400; }
.vertical-list { max-width: 900px; margin: 50px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 30px; }
.vertical-card { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.04); transition: transform 0.3s; text-decoration: none; color: inherit; border: 1px solid #eee; }
.vertical-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.vertical-img { width: 250px; height: 200px; object-fit: cover; }
.vertical-info { padding: 25px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.vertical-info h3 { margin-bottom: 10px; color: #2c3e50; font-size: 22px; }
.vertical-info p { color: #666; font-size: 14px; line-height: 1.6; margin-bottom: 15px; }
.read-more { color: #e67e22; font-weight: bold; font-size: 14px; margin-top: auto; }

/* =========================================
   7. FOOTER TASARIMI
   ========================================= */
.site-footer { background-color: #2c3e50; color: #ecf0f1; padding: 50px 0 0 0; margin-top: auto; font-size: 14px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; padding: 0 20px 30px; gap: 30px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { font-size: 18px; margin-bottom: 20px; color: #e67e22; border-bottom: 2px solid #e67e22; padding-bottom: 8px; display: inline-block; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { margin-bottom: 12px; line-height: 1.5; color: #bdc3c7; display: flex; align-items: center; }
.footer-col p i { width: 25px; color: #e67e22; font-size: 16px; }
.social-icons { margin-top: 20px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background-color: #34495e; color: #ecf0f1; text-decoration: none; border-radius: 50%; margin-right: 10px; font-size: 16px; transition: all 0.3s ease; }
.social-icons a:hover { background-color: #e67e22; transform: translateY(-4px); }
.map-col iframe { box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: opacity 0.3s ease; }
.map-col iframe:hover { opacity: 0.9; }
.footer-bottom { background-color: #1a252f; text-align: center; padding: 15px 20px; font-size: 13px; color: #7f8c8d; }

/* =========================================
   8. KARANLIK MOD (DARK MODE)
   ========================================= */
body.dark-mode { background-color: #121212 !important; color: #e0e0e0 !important; }
body.dark-mode .home-main-content, body.dark-mode .content-section, body.dark-mode .scroll-row, body.dark-mode .detail-page-wrapper { background-color: #121212 !important; }
body.dark-mode .site-header { background-color: #1e1e1e !important; box-shadow: 0 2px 10px rgba(0,0,0,0.8); border-bottom: 1px solid #333; }
body.dark-mode .site-title, body.dark-mode .header-menu ul li a { color: #e0e0e0 !important; }
body.dark-mode .header-menu ul li a:hover { color: #e67e22 !important; }
body.dark-mode .header-social a, body.dark-mode .dark-mode-btn { background-color: #2c2c2c !important; color: #e0e0e0 !important; }
body.dark-mode .header-social a:hover { background-color: #e67e22 !important; color: #fff !important; }
body.dark-mode .card, body.dark-mode .movie-card, body.dark-mode .gastro-card, body.dark-mode .book-item, body.dark-mode .detail-container, body.dark-mode .vertical-card { background-color: #1e1e1e !important; box-shadow: 0 3px 10px rgba(0,0,0,0.6) !important; border: 1px solid #333; }
body.dark-mode .card-info h4, body.dark-mode .book-item h4, body.dark-mode .section-title, body.dark-mode .detail-title, body.dark-mode .detail-content h2, body.dark-mode .detail-content h3, body.dark-mode .page-title, body.dark-mode .vertical-info h3 { color: #ffffff !important; }
body.dark-mode .card-info p, body.dark-mode .book-item p, body.dark-mode .detail-content, body.dark-mode .page-subtitle, body.dark-mode .vertical-info p { color: #aaaaaa !important; }
body.dark-mode .section-title { border-left-color: #e67e22 !important; }
body.dark-mode .detail-back { border-top-color: #333 !important; }
body.dark-mode .page-header { background-color: #121212 !important; border-bottom-color: #333; }
body.dark-mode .search-input { background-color: #1e1e1e !important; color: #fff !important; border: 1px solid #333; border-right: none; }
body.dark-mode .slider-arrow { background: rgba(30, 30, 30, 0.96); border-color: #444; color: #fff; }
body.dark-mode .slide::before { background: rgba(18, 18, 18, 0.95) !important; }

/* =========================================
   9. TAM MOBİL UYUM (RESPONSIVE & HAMBURGER)
   ========================================= */
@media (max-width: 992px) {
    /* Header Ana Taşıyıcıyı Blok Haline Getir */
    .site-header {
        display: block !important;
        padding: 15px !important;
        position: relative;
    }

    /* Karanlık Mod ve Logo Konumlandırması */
    .header-left-edge {
        position: absolute;
        left: 15px;
        top: 25px;
    }

    .header-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .header-left {
        margin-bottom: 20px;
    }

    /* Hamburger Butonu */
    .hamburger-btn {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 25px;
        background: none;
        border: none;
        font-size: 28px;
        color: #2c3e50;
        z-index: 1000;
    }
    body.dark-mode .hamburger-btn { color: #fff; }

    /* Başlangıçta Gizlenecek Alanlar */
    .header-menu, .header-right {
        display: none !important;
        width: 100%;
    }
    .header-right-edge {
        display: none !important;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    /* JavaScript ile 'active' Sınıfı Eklendiğinde Göster */
    .header-menu.active { display: flex !important; }
    .header-menu.active ul { display: flex !important; flex-direction: column !important; width: 100%; gap: 15px; text-align: center; }
    .header-right.active { display: flex !important; justify-content: center; margin-top: 15px; }
    .header-right-edge.active { display: flex !important; }

    /* Gövde ve Slider Ayarları */
    .home-main-content { margin: 20px auto; padding: 0 15px; }
    .slide-inner { flex-direction: column; text-align: center; padding: 30px 20px; gap: 20px; }
    .slide-content { text-align: center; }
    .slide-image { width: 180px; height: 260px; }
    .slider-arrow, .hero-arrow { display: none !important; } /* Mobilde Okları Kapat */
    
    .section-title { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 20px; }
    .book-grid { grid-template-columns: 1fr; gap: 15px; }
    .footer-container { flex-direction: column; text-align: center; padding: 0 20px 20px; gap: 25px; }
    .footer-col h4 { margin-bottom: 12px; display: inline-block; }
    .footer-col p { justify-content: center; }
    .social-icons { display: flex; justify-content: center; margin-top: 15px; }
    .map-col iframe { width: 100% !important; height: 200px !important; }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* =========================================
   10. KESİN KESİLME VE SIKIŞMA ÇÖZÜMÜ (MOBİL)
   ========================================= */
@media (max-width: 992px) {
    /* 1. SLIDER KESİLME ÇÖZÜMÜ: Kutuyu aktif yazıya göre otomatik esnet */
    .hero-slider-wrapper { 
        min-height: fit-content !important; 
        height: auto !important; 
        padding-bottom: 20px !important; 
    }
    .slide.active { 
        position: relative !important; /* Kutu artık içindeki yazının uzunluğunu anlar ve uzar */
    }
    
    /* 2. DİĞER SAYFALAR (Gastro/Kitaplık): Yan yana listeleri ezip kesmesini engelle */
    .vertical-card { 
        flex-direction: column !important; 
        height: auto !important; 
    }
    .vertical-img { 
        width: 100% !important; 
        height: 250px !important; 
    }
    .vertical-info { 
        padding: 20px !important; 
        text-align: center; 
    }
    
    /* 3. Genel daraltma: Detay sayfalarındaki devasa boşlukları mobilde kıs */
    .detail-container { 
        padding: 30px 15px !important; 
    }
}