/* ==========================================================================
   Dörtrenk Anaokulu | Galeri (Premium Symmetric Exhibition UI - Düzeltilmiş)
   Yol: css/galeri.css
   ========================================================================== */

:root {
    --c-primary: #c6d800;
    --c-primary-dark: #a1b000;
    --c-dark: #0a0f15;
    --c-text: #526070;
    --c-bg: #f8fafc;
    --c-white: #ffffff;
    
    --radius-md: 24px;
    --radius-lg: 40px;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.06);
    --shadow-hover: 0 25px 60px -15px rgba(0,0,0,0.15);
    --shadow-float: 0 20px 40px -10px rgba(198,216,0,0.25);
    --bezier: cubic-bezier(0.16, 1, 0.3, 1);
}

.dr-gallery-premium { 
    position: relative; 
    padding-bottom: 80px; 
    background-color: var(--c-bg); 
    overflow: hidden; 
}

/* Sadece Galeri Sayfasındaki Container'ları Arkaplanın Üstüne Alır (Header'ı Bozmaz) */
.dr-gallery-premium .container {
    position: relative;
    z-index: 1;
}

/* Arka Plan */
.dr-mesh-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dr-mesh-blob { position: absolute; filter: blur(120px); border-radius: 50%; opacity: 0.3; }
.blob-gal-1 { width: 600px; height: 600px; background: var(--c-primary); top: -100px; left: -100px; animation: pulse 12s infinite alternate; }
.blob-gal-2 { width: 500px; height: 500px; background: #e2e8f0; bottom: 20%; right: -50px; animation: pulse 10s infinite alternate-reverse; }
@keyframes pulse { 0% { transform: scale(1); } 100% { transform: scale(1.1) translate(30px, 30px); } }

/* 1. HERO ALANI (Merkezlenmiş Kusursuz Hizalama) */
.dr-gal-hero { 
    padding: 100px 0 40px; 
    display: flex; 
    justify-content: center; 
}

.dr-hero-content { 
    width: 100%;
    max-width: 800px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
}

.dr-badge-glow { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 10px 20px; 
    background: rgba(255,255,255,0.7); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255,255,255,0.8); 
    border-radius: 100px; 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--c-dark); 
    margin-bottom: 24px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); 
}

.dr-badge-dot { 
    width: 10px; 
    height: 10px; 
    background: var(--c-primary); 
    border-radius: 50%; 
}

.dr-title-massive { 
    width: 100%;
    font-size: clamp(40px, 6vw, 76px); 
    font-weight: 800; 
    color: var(--c-dark); 
    letter-spacing: -0.04em; 
    line-height: 1.1; 
    margin: 0 0 20px 0; 
    text-align: center;
}

.dr-text-gradient { 
    background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.dr-hero-desc { 
    width: 100%;
    font-size: 19px; 
    color: var(--c-text); 
    line-height: 1.7; 
    max-width: 700px; 
    margin: 0 auto; 
    text-align: center;
}

/* 2. FİLTRE (Apple tarzı birleşik yapı) */
.dr-gal-exhibition { padding: 40px 0 100px; }

.dr-filter-wrapper { display: flex; justify-content: center; margin-bottom: 60px; }
.dr-filter-bar { display: inline-flex; background: var(--c-white); padding: 8px; border-radius: 100px; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.03); flex-wrap: wrap; justify-content: center; gap: 4px; }
.filter-btn { background: transparent; border: none; padding: 12px 24px; border-radius: 100px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--c-text); cursor: pointer; transition: all 0.3s var(--bezier); }
.filter-btn:hover { color: var(--c-dark); }
.filter-btn.active { background: var(--c-dark); color: var(--c-white); font-weight: 700; box-shadow: 0 8px 20px rgba(15,23,42,0.15); }

/* KUSURSUZ SİMETRİK GRID */
.dr-exhibition-grid {
    display: grid;
    /* Tam 3 sütun. Asla şekli bozulmaz */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dr-exhibition-item { transition: transform 0.4s var(--bezier), opacity 0.4s ease; }

.dr-img-frame {
    position: relative; width: 100%; 
    aspect-ratio: 4/5; /* Dergi kapağı formatı */
    border-radius: var(--radius-md); overflow: hidden; background: var(--c-white);
    box-shadow: var(--shadow-soft); cursor: pointer;
    border: 1px solid rgba(0,0,0,0.03);
    transform: translateZ(0); 
}

.dr-img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--bezier); }
.dr-img-frame .placeholder-logo { object-fit: contain; padding: 60px; background: #f1f5f9; }

.dr-img-frame:hover img { transform: scale(1.08); }
.dr-img-frame:hover { box-shadow: var(--shadow-hover); border-color: rgba(198,216,0,0.3); }

/* Cam Efektli Karartma ve Bilgiler */
.dr-glass-overlay {
    position: absolute; inset: 0;
    /* Yalnızca alt kısmı karartan çok zarif bir gradient */
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.1) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: space-between; padding: 30px;
    opacity: 0; transition: opacity 0.4s var(--bezier);
}

.dr-img-frame:hover .dr-glass-overlay { opacity: 1; }

.overlay-top { display: flex; justify-content: space-between; align-items: flex-start; transform: translateY(-20px); transition: transform 0.4s var(--bezier); }
.dr-img-frame:hover .overlay-top { transform: translateY(0); }

.cat-pill { background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--c-white); padding: 8px 16px; border-radius: 100px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border: 1px solid rgba(255,255,255,0.3); }

.zoom-icon { width: 44px; height: 44px; background: var(--c-primary); color: var(--c-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(198,216,0,0.3); }

.overlay-bottom { transform: translateY(20px); transition: transform 0.4s var(--bezier); text-align: left; }
.dr-img-frame:hover .overlay-bottom { transform: translateY(0); }
.overlay-bottom h3 { font-size: 22px; font-weight: 800; color: var(--c-white); margin: 0; line-height: 1.3; }


/* 3. SİNEMATİK LIGHTBOX (Dergi Modu) */
.dr-pro-lightbox {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10, 15, 21, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
}

.dr-pro-lightbox.active { opacity: 1; visibility: visible; }

.lb-header { position: absolute; top: 0; left: 0; width: 100%; padding: 30px 50px; display: flex; justify-content: space-between; align-items: center; z-index: 10; }
.lb-counter { color: rgba(255,255,255,0.6); font-size: 16px; font-weight: 600; letter-spacing: 0.2em; }
.lb-close { background: transparent; border: none; color: rgba(255,255,255,0.6); cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { color: var(--c-primary); transform: rotate(90deg); }

.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; z-index: 10; padding: 20px; }
.lb-nav:hover { color: var(--c-primary); transform: translateY(-50%) scale(1.2); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-content { text-align: center; max-width: 70%; display: flex; flex-direction: column; align-items: center; transform: scale(0.95); transition: transform 0.4s var(--bezier); }
.dr-pro-lightbox.active .lb-content { transform: scale(1); }

.lb-content img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); transition: opacity 0.2s ease; }
.lb-content h3 { color: var(--c-white); font-size: 20px; font-weight: 400; margin-top: 30px; letter-spacing: 0.05em; opacity: 0.8; }


/* 4. CTA BÖLÜMÜ */
.dr-cta { padding: 40px 0 100px; position: relative; z-index: 1; }
.dr-cta-box { background: linear-gradient(135deg, var(--c-primary) 0%, #a8b800 100%); border-radius: var(--radius-lg); padding: 60px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-float); }
.dr-cta-text h2 { font-size: 36px; margin-bottom: 16px; color: var(--c-dark); letter-spacing: -0.02em; text-align: left; }
.dr-cta-text p { font-size: 18px; color: rgba(15,23,42,0.8); margin: 0; max-width: 500px; line-height: 1.6; text-align: left; }
.dr-cta-btns { display: flex; gap: 16px; }
.dr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 32px; border-radius: 100px; font-weight: 700; font-size: 15px; transition: all 0.4s var(--bezier); border: none; text-decoration: none; cursor: pointer; }
.dr-btn-white { background: var(--c-white); color: var(--c-dark); }
.dr-btn-white:hover { transform: scale(1.05); box-shadow: var(--shadow-soft); }

/* Animasyonlar */
.reveal-fade-up { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--bezier); }
.reveal-fade-up.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--bezier), transform 0.8s var(--bezier); }
.reveal-stagger.visible { opacity: 1; transform: translateY(0); }

/* Responsive Düzenlemeler */
@media (max-width: 1024px) {
    .dr-exhibition-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .dr-cta-box { flex-direction: column; text-align: center; gap: 40px; padding: 50px 40px; }
    .dr-cta-text h2, .dr-cta-text p { text-align: center; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .dr-title-massive { font-size: 44px; }
    .dr-filter-bar { border-radius: var(--radius-md); padding: 16px; width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .filter-btn { padding: 10px; font-size: 14px; border-radius: 12px; }
    
    .dr-exhibition-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .lb-header { padding: 20px; }
    .lb-nav { display: none; }
    .lb-content { max-width: 95%; }
    .lb-content img { max-height: 60vh; }
    .lb-content h3 { font-size: 16px; margin-top: 20px; }
    
    .dr-btn { width: 100%; }
}