/* assets/css/style.css */

:root {
    --bg-dark: #0b0f19;
    --bg-card: #151d30;
    --primary-emerald: #10b981;
    --accent-gold: #facc15;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Urbanist', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Düzenlemesi: İster metin ister görsel logo için uyumlu */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 100px; /* Logonun boyutunu buraya göre ayarlayabilirsin */
    width: auto;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 24px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}

.hero {
    padding: 100px 0 60px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--primary-emerald);
    color: var(--primary-emerald);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px auto;
}

.cta-btn {
    background-color: var(--accent-gold);
    color: #000000;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-family: var(--font-title);
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.3);
}

.main-content {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-emerald);
}

.placeholder-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

footer a {
    color: var(--text-main);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-emerald);
}

/* --- Mobil Responsive ve Hamburger Menü Tasarımı --- */

/* Masaüstünde hamburger butonunu gizle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--primary-emerald);
}

@media (max-width: 768px) {
    .hero h1 { 
        font-size: 34px; 
    }
    .hero p { 
        font-size: 16px; 
    }
    
    /* Hamburger butonunu mobilde aktif et */
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* Menüyü dikey ve açılır kapanır hale getir */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Header yüksekliğine göre ayarlandı */
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-bottom: 2px solid var(--primary-emerald);
        padding: 20px 0;
        gap: 16px;
        text-align: center;
        z-index: 1000;
        
        /* Animasyon başlangıç durumları (Kapalı) */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }

    /* Mobilde linklerin sol boşluğunu sıfırla */
    .nav-links a {
        margin-left: 0;
        font-size: 18px;
        display: block;
        padding: 8px 0;
    }

    /* JavaScript ile eklenecek 'active' sınıfı (Menü Açıldığında) */
    .nav-links.mobile-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
/* --- Makale Kartları ve Filtreleme Tasarımı --- */

/* Kategori Butonları */
.category-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-emerald);
    color: #000000;
    border-color: var(--primary-emerald);
}

/* Kart Grid Düzeni */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Makale Kartı */
.article-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.05);
}

.card-image {
    height: 200px;
    width: 100%;
    position: relative;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(4px);
    color: var(--accent-gold);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-title);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-main);
}

.card-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-emerald);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: var(--accent-gold);
}

/* --- Günün Görseli (APOD) Sayfa Düzeni --- */

.apod-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Geniş ekranda görsel sol tarafta büyük, bilgi sağda */
    gap: 40px;
    margin-top: 20px;
}

.apod-media-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.apod-media-box {
    width: 100%;
    min-height: 450px;
    background: linear-gradient(135deg, #111827 0%, #030712 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.apod-loader-icon {
    font-size: 48px;
    color: rgba(16, 185, 129, 0.2);
    animation: orbit 4s linear infinite;
}

.apod-action-bar {
    display: flex;
    justify-content: flex-start;
}

.apod-btn {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.apod-btn:hover {
    border-color: var(--primary-emerald);
    color: var(--primary-emerald);
    transform: translateY(-1px);
}

.apod-info-box {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Yüklenme efekti animasyonu */
@keyframes orbit {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Mobil için ızgarayı tek sütuna düşür */
@media (max-width: 992px) {
    .apod-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .apod-media-box {
        min-height: 300px;
    }
}
/* --- Makale Detay Sayfası Tasarımı --- */
.post-body p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 24px;
}

.post-body h2, .post-body h3 {
    color: var(--accent-gold);
    margin: 40px 0 20px 0;
    font-size: 24px;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-emerald);
    padding: 15px 20px;
    background-color: var(--bg-card);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    margin: 30px 0;
    color: var(--text-muted);
}

/* --- İnfografik Carousel (Galeri) Tasarımı --- */
.carousel-container {
    width: 100%;
    height: 450px;
    position: relative;
    background-color: #030712;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* İnfografiklerin kesilmemesi, tam görünmesi için contain şart */
}

/* Görsel Altı Açıklama Yazısı */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0) 100%);
    padding: 30px 20px 20px 20px;
    color: var(--text-main);
    font-size: 14px;
    font-family: var(--font-body);
    text-align: center;
}

/* Sağ-Sol Butonları */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(21, 29, 48, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-emerald);
    color: #000000;
    border-color: var(--primary-emerald);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Alt Noktalar (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 50px; /* Alttaki yazı alanının üstüne gelmesi için ideal yükseklik */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-gold);
    width: 20px; /* Aktif noktayı yatayda genişleterek modern görünüm veriyoruz */
    border-radius: 4px;
}

/* Mobil Ekran Ayarı */
@media (max-width: 768px) {
    .carousel-container { height: 300px; }
    .carousel-caption { font-size: 12px; padding: 20px 15px 15px 15px; }
    .carousel-btn { width: 36px; height: 36px; font-size: 12px; }
}

/* --- APOD Tarih Gezgini Paneli --- */
.date-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.date-picker-wrapper {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.2s ease;
}

.date-picker-wrapper:focus-within {
    border-color: var(--primary-emerald);
}

/* HTML Native Date Input Özelleştirmesi */
#apodDatePicker {
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    color-scheme: dark; /* Tarayıcının takvim pop-up'ını koyu tema yapar */
    cursor: pointer;
}

/* Aktif olamayacak (Gelecekteki gün) butonunun stili */
.apod-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}
.apod-btn:disabled:hover {
    color: var(--text-main);
    transform: none;
}

/* --- YouTube Videoları Vitrin Düzeni --- */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.05); /* YouTube kırmızısı hafif gölge */
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Video Oranı */
    background-color: #000;
}

.video-thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video üzerindeki oynat efekti overlay'i */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.video-play-overlay i {
    color: #ffffff;
    font-size: 40px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.video-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.video-card-content h3 {
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-main);
    font-family: var(--font-title);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Başlık çok uzunsa 2 satırda kesip üç nokta koyar */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-link-btn {
    margin-top: auto;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
