/* --- SAYFA BAŞLIĞI --- */
.page-header {
    background: linear-gradient(rgba(10, 25, 47, 0.75), rgba(10, 25, 47, 0.6)), 
                url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 180px 0 80px; /* Navbar payı */
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 15px;
}
.page-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* --- MASONRY GRID YAPISI --- */
.gallery-section {
    padding: 60px 0;
    background-color: var(--primary-dark); /* style.css'den gelen değişken */
}

.masonry-grid {
    display: grid;
    /* Responsive Grid: Mobilde 2, Tablette 3, Masaüstünde 4 sütun */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 15px;
    grid-auto-flow: dense; /* Boşlukları doldurmaya çalışır */
}

/* --- SEPARATOR (Başlık Alanı) --- */
.grid-separator {
    grid-column: 1 / -1; /* Tüm satırı kapla */
    margin: 40px 0 20px;
    padding-top: 20px;
}

.grid-separator h3 {
    font-size: 1.8rem;
    color: var(--accent); /* Altın rengi */
    margin-bottom: 15px;
    font-weight: 700;
}

.grid-separator .sep-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(255,255,255,0.1) 100%);
}

/* --- GRID ITEM (Kart) --- */
.grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, border-color 0.3s;
    
    /* Hepsi dikey formatta (Telefon ekranı gibi) */
    aspect-ratio: 9 / 16; 
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2; /* Hover olunca öne çıksın */
}

/* Resim ve Video Ortak Ayarı */
.grid-item img, 
.grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kutuyu doldur, taşanı kes */
    display: block;
}

/* Video Wrapper */
.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Play İkonu (Videolarda ortada duran) */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6); /* Biraz daha şeffaf siyah */
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    pointer-events: none; /* Tıklamayı engelleme, alttaki videoya geçsin */
    transition: 0.3s;
    z-index: 2;
}

/* Fare üzerine gelince Play ikonunu gizle (Video oynuyor çünkü) */
.grid-item:hover .play-overlay {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

/* --- VİDEO ÖZELLEŞTİRMELERİ --- */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 193, 7, 0.9); /* Accent rengi */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    transition: 0.3s;
}

.grid-item:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.2);
    background: #fff;
}

/* Yükle Butonu */
.load-more-wrapper {
    text-align: center;
    margin-top: 60px;
}
.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.btn-outline-gold:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

/* Mobil Ayarlar */
@media (max-width: 768px) {
    .page-header h1 { font-size: 2rem; }
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobilde yan yana 2 tane */
        gap: 10px;
    }
    .grid-separator h3 { font-size: 1.4rem; }
}