/* =========================================
   GALATASARAY LİSESİ DİJİTAL TASARIM & YZ
   Ana Stil Dosyası (style.css)
   ========================================= */

/* Renk Paleti ve Değişkenler */
:root {
    --gs-red: #A32638;    /* Klasik Galatasaray Kırmızısı */
    --gs-yellow: #FDB913; /* Klasik Galatasaray Sarısı */
    --bg-dark: #000000;   /* Tam Siyah Arka Plan */
    --bg-card: #0a0a0a;   /* Kartlar için çok hafif aydınlık siyah */
    --text-light: #e5e5e5;
    --text-muted: #a3a3a3;
}

/* Reset ve Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark); 
    color: var(--text-light);
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

/* Başlıklar İçin Kalın Sans-Serif (Inter Black/Extra Bold) */
h1, h2, h3, .logo-text {
    font-weight: 900; 
    text-transform: uppercase;
    letter-spacing: -1.5px;
}

/* =========================================
   ANİMASYONLAR
   ========================================= */
@keyframes cinematicReveal {
    0% {
        opacity: 0;
        transform: scale(1.1) rotateX(20deg) translateY(40px);
        filter: blur(15px);
        letter-spacing: 15px;
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg) translateY(0);
        filter: blur(0);
        letter-spacing: -2px;
    }
}

@keyframes textFadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* YENİ: Fotoğraf Yer Tutucusu İçin Tarama Animasyonu */
@keyframes placeholderScan {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* YENİ: Fotoğraf Yer Tutucusu İçin Kenar Çizgisi Dolanma Animasyonu */
@keyframes placeholderPulse {
    0%, 100% {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(253, 185, 19, 0.2);
        border-color: rgba(253, 185, 19, 0.15);
    }
}

/* =========================================
   NAVBAR (MENÜ)
   ========================================= */
/* =========================================
   GÜNCEL NAVBAR & LOGO TASARIMI
   ========================================= */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(253, 185, 19, 0.2); 
    padding: 1.5rem 5rem; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* YENİ: Gerçek Logo İçin Ayarlar */
.nav-logo-img {
    height: 60px; /* Navbar'ın şişmesini engeller */
    width: auto;  /* 648x727 oranını otomatik korur */
    object-fit: contain; /* Logonun kesilmeden sığmasını sağlar */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
    filter: drop-shadow(0 4px 6px rgba(163, 38, 56, 0.4)); /* Logoya hafif kırmızımsı gölge */
}

.nav-logo-img:hover {
    transform: scale(1.08) rotate(-2deg); /* Üzerine gelince klas bir büyüme ve eğilme efekti */
    filter: drop-shadow(0 6px 12px rgba(253, 185, 19, 0.5)); /* Hover'da sarımsı parlama */
}

.logo-text {
    font-size: 1.5rem;
    color: var(--text-light);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gs-yellow);
}

/* Mobil Uyum (Responsive) - Logoyu biraz küçültüyoruz */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1.5rem;
    }
    .nav-logo-img {
        height: 50px;
    }
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
   KARŞILAMA (HERO) ALANI - ANA SAYFA
   ========================================= */
header#home {
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(30,5,10,0.8) 0%, rgba(0,0,0,1) 80%); 
    perspective: 1000px;
}

header#home h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--gs-yellow);
    opacity: 0; 
    animation: cinematicReveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

header#home p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    font-weight: 400;
    opacity: 0; 
    animation: textFadeInUp 1s ease forwards 0.8s; 
}

/* =========================================
   ORTAK BÖLÜM BAŞLIKLARI
   ========================================= */
.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 4rem;
    color: var(--text-light);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--gs-red);
    margin: 1rem auto 0;
}

#about .section-title::after {
    margin: 1rem 0 0 0;
}

/* =========================================
   SERGİ ALANI (ANA SAYFA STANDART GRID)
   ========================================= */
.gallery-container {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px; 
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--gs-red);
    box-shadow: 0 15px 30px rgba(163, 38, 56, 0.15); 
}

.card-img {
    width: 100%;
    height: 280px;
    background-color: #111; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-style: italic;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 0.8rem;
    color: var(--gs-yellow);
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* =========================================
   KULÜP HAKKINDA (ANA SAYFA)
   ========================================= */
.about-container {
    padding: 5rem 2rem 8rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    min-width: 350px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.about-image-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 800;
    letter-spacing: 1px;
    filter: grayscale(100%);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.about-image:hover {
    transform: translateY(-10px);
    border-color: var(--gs-red);
    box-shadow: -15px 15px 40px rgba(163, 38, 56, 0.4), 15px -15px 40px rgba(253, 185, 19, 0.2);
}

.about-image:hover .about-image-inner {
    transform: scale(1.1); 
    filter: grayscale(0%); 
    color: var(--gs-yellow);
}

.about-content {
    flex: 1;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 400;
}

/* =========================================
   KOLEKSİYON SAYFASI - HEADER VE FİLTRELER
   ========================================= */
.page-header {
    height: 40vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(30,5,10,0.8) 0%, rgba(0,0,0,1) 80%); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header h1 {
    font-size: 4rem;
    color: var(--gs-yellow);
    opacity: 0;
    animation: textFadeInUp 0.8s ease forwards;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 1rem;
    opacity: 0;
    animation: textFadeInUp 0.8s ease forwards 0.3s;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap; 
}

.filter-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.8rem;
    border-radius: 30px; 
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gs-red);
    color: var(--text-light);
    border-color: var(--gs-red);
    box-shadow: 0 4px 15px rgba(163, 38, 56, 0.4);
    transform: translateY(-2px);
}

.full-gallery {
    padding-top: 4rem;
    min-height: 60vh;
}

/* =========================================
   KOLEKSİYON SAYFASI - ZIGZAG GRID SİSTEMİ
   ========================================= */
.zigzag-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem; 
}

.zigzag-card {
    display: flex;
    flex-direction: row;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px; 
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease;
}

.zigzag-card:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-card .card-img {
    flex: 1.2; 
    background: linear-gradient(45deg, #111, #1a1a1a);
    height: auto;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.zigzag-card:nth-child(even) .card-img {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.zigzag-card .card-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zigzag-card .card-content h3 {
    font-size: 2rem; 
    margin-bottom: 1.5rem;
}

.zigzag-card .card-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.zigzag-card:hover {
    transform: translateY(-8px);
    border-color: var(--gs-red);
    box-shadow: 0 15px 30px rgba(163, 38, 56, 0.15); 
}

/* =========================================
   GÜNCELLENMİŞ: HAKKIMIZDA SAYFASI 
   (ESSAY & ANİMASYONLU FOTOĞRAF)
   ========================================= */

.about-page-main {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* YENİ: Büyük Fotoğraf Alanı ve Animasyonları */
.club-photo-feature {
    width: 100%;
    height: 60vh; 
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 16px;
    /* Static border removed for pulse animation */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6rem;
    position: relative;
    overflow: hidden;
    /* Static box-shadow for context, pulse will override */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
    
    /* ADDED: Initial state for reveal animation */
    opacity: 0;
    transform: translateY(20px);
    
    /* ADDED: Reveal and pulse animations on load */
    animation: textFadeInUp 1s ease forwards, placeholderPulse 4s infinite ease-in-out; 
}

/* YENİ: Fütüristik Tarama Işığı (Scan-Line) */
.club-photo-feature::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to bottom, transparent, rgba(253, 185, 19, 0.2), transparent); /* Tarama ışığı rengi (Sarı) */
    pointer-events: none;
    animation: placeholderScan 6s infinite linear;
    top: -100%; /* Başlangıç pozisyonu */
    z-index: 1; /* Background'un üzerinde, hover yazısının altında */
}

/* YENİ: Gerçek Fotoğraf Eklendiğindeki Stil */
.club-photo-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    position: absolute;
    top: 0;
    left: 0;
    /* ADDED: Gri tonlama ve geçiş */
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

/* GÜNCELLENMİŞ: Hakkımızda Hover Efektleri */
.club-photo-feature:hover {
    border-color: var(--gs-red);
    /* GS renkleriyle birleşen sarı-kırmızı parlama efekti */
    box-shadow: -15px 15px 60px rgba(163, 38, 56, 0.3), 15px -15px 60px rgba(253, 185, 19, 0.15), 0 0 15px rgba(255, 255, 255, 0.1); 
}

/* ADDED: Hover yapıldığında yer tutucu yazıyı sarı yap */
.club-photo-feature:hover span {
    color: var(--gs-yellow);
    transition: color 0.5s ease;
}

/* ADDED: Hover yapıldığında fotoğrafı renkli yap */
.club-photo-feature:hover img {
    filter: grayscale(0%);
}

/* Essay (Metin) Alanı */
.club-essay-container {
    max-width: 800px; 
    margin: 0 auto;
}

.club-essay-title {
    font-size: 4rem;
    color: var(--gs-yellow);
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0;
    animation: textFadeInUp 1s ease forwards;
}

.club-essay-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background-color: var(--gs-red);
    margin: 1.5rem auto 0;
}

.club-essay-content {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 2; 
    font-weight: 300;
    opacity: 0;
    animation: textFadeInUp 1s ease forwards 0.4s;
}

.club-essay-content p {
    margin-bottom: 2.5rem; 
}

/* Öne Çıkan Paragraf (Giriş) */
.club-essay-content p.lead {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.8;
    border-left: 4px solid var(--gs-yellow);
    padding-left: 2rem;
    margin-left: -2.4rem;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   MOBİL UYUM (RESPONSIVE TASARIM)
   ========================================= */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1.5rem;
    }
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    header#home h1 {
        font-size: 3.5rem;
    }
    .page-header h1 {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2.8rem;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    #about .section-title::after {
        margin: 1rem auto 0; 
    }
    #about .section-title {
        text-align: center !important;
    }
    .about-image {
        width: 100%;
        min-width: auto;
    }
    .zigzag-grid {
        gap: 3rem;
    }
    .zigzag-card, 
    .zigzag-card:nth-child(even) {
        flex-direction: column;
        min-height: auto;
    }
    .zigzag-card .card-img {
        height: 250px;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .zigzag-card .card-content {
        padding: 2rem;
    }
    .zigzag-card .card-content h3 {
        font-size: 1.6rem;
    }
    /* Mobil Uyum (Hakkımızda Sayfası) */
    .about-page-main {
        padding: 4rem 1.5rem;
    }
    .club-photo-feature {
        height: 40vh;
        margin-bottom: 4rem;
        font-size: 1rem;
    }
    .club-essay-title {
        font-size: 2.8rem;
    }
    .club-essay-content {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    .club-essay-content p.lead {
        font-size: 1.3rem;
        margin-left: 0;
        padding-left: 1.5rem;
    }
}