/* ==========================================================================
   Dörtrenk Kolej | Galeri (Premium Exhibition UI)
   Yol: css/galeri.css
   ========================================================================== */

:root {
    --c-primary: #0c5adb;
    --c-primary-dark: #093b8f;
    --c-primary-soft: #eaf2ff;

    --c-dark: #091224;
    --c-dark-soft: #162033;
    --c-text: #526070;
    --c-bg: #f6f9ff;
    --c-white: #ffffff;

    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-xl: 52px;

    --shadow-soft: 0 12px 40px -14px rgba(8, 40, 92, 0.10);
    --shadow-hover: 0 28px 60px -20px rgba(8, 40, 92, 0.18);
    --shadow-float: 0 20px 40px -10px rgba(12, 90, 219, 0.22);

    --bezier: cubic-bezier(0.16, 1, 0.3, 1);
}

.dr-gallery-premium {
    position: relative;
    padding-bottom: 80px;
    background-color: var(--c-bg);
    overflow: hidden;
}

.dr-gallery-premium .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   BACKGROUND
   ========================================================================== */

.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.28;
}

.blob-gal-1 {
    width: 620px;
    height: 620px;
    background: var(--c-primary);
    top: -120px;
    left: -120px;
    animation: pulse 12s infinite alternate;
}

.blob-gal-2 {
    width: 500px;
    height: 500px;
    background: #dbeafe;
    bottom: 18%;
    right: -60px;
    animation: pulse 10s infinite alternate-reverse;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.08) translate(28px, 28px); }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.dr-gal-hero {
    padding: 100px 0 40px;
    display: flex;
    justify-content: center;
}

.dr-hero-content {
    width: 100%;
    max-width: 840px;
    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 18px;
    background: rgba(255,255,255,0.74);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(8, 40, 92, 0.06);
}

.dr-badge-dot {
    width: 10px;
    height: 10px;
    background: var(--c-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(12, 90, 219, 0.10);
}

.dr-title-massive {
    width: 100%;
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 900;
    color: var(--c-dark);
    letter-spacing: -0.05em;
    line-height: 1.04;
    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.8;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   FILTER
   ========================================================================== */

.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: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(12, 90, 219, 0.06);
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    cursor: pointer;
    transition: all 0.28s var(--bezier);
}

.filter-btn:hover {
    color: var(--c-dark);
    background: rgba(12, 90, 219, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: var(--c-white);
    box-shadow: 0 10px 24px -14px rgba(12, 90, 219, 0.38);
}

/* ==========================================================================
   GRID
   ========================================================================== */

.dr-exhibition-grid {
    display: grid;
    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;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--c-white);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    border: 1px solid rgba(12, 90, 219, 0.06);
    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(12, 90, 219, 0.22);
}

/* ==========================================================================
   OVERLAY
   ========================================================================== */

.dr-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,18,36,0.92) 0%, rgba(9,18,36,0.16) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    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(-18px);
    transition: transform 0.4s var(--bezier);
}

.dr-img-frame:hover .overlay-top {
    transform: translateY(0);
}

.cat-pill {
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--c-white);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255,255,255,0.24);
}

.zoom-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: var(--c-white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(12, 90, 219, 0.30);
}

.overlay-bottom {
    transform: translateY(18px);
    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;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.dr-pro-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 18, 36, 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: 28px 46px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.lb-counter {
    color: rgba(255,255,255,0.62);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.lb-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.62);
    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.44);
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    padding: 20px;
}

.lb-nav:hover {
    color: var(--c-primary);
    transform: translateY(-50%) scale(1.16);
}

.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: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.45);
    transition: opacity 0.2s ease;
}

.lb-content h3 {
    color: var(--c-white);
    font-size: 20px;
    font-weight: 500;
    margin-top: 28px;
    letter-spacing: 0.03em;
    opacity: 0.84;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.dr-cta {
    padding: 40px 0 100px;
    position: relative;
    z-index: 1;
}

.dr-cta-box {
    background: linear-gradient(135deg, #0d4fc0 0%, #0a419d 46%, #08285c 100%);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-float);
    gap: 24px;
}

.dr-cta-text h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--c-white);
    letter-spacing: -0.03em;
    text-align: left;
}

.dr-cta-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.78);
    margin: 0;
    max-width: 560px;
    line-height: 1.7;
    text-align: left;
}

.dr-cta-btns {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   BUTTON
   ========================================================================== */

.dr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    transition:
        transform 0.28s var(--bezier),
        box-shadow 0.28s var(--bezier),
        background 0.28s ease,
        color 0.28s ease,
        border-color 0.28s ease;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.dr-btn:hover {
    transform: translateY(-2px);
}

.dr-btn-white {
    background: linear-gradient(180deg, #ffffff 0%, #f2f6fd 100%);
    color: var(--c-dark);
    border: 1px solid rgba(255,255,255,0.42);
    box-shadow: 0 12px 24px -18px rgba(255,255,255,0.62);
}

.dr-btn-white:hover {
    box-shadow: 0 16px 30px -18px rgba(255,255,255,0.76);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.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
   ========================================================================== */

@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: 18px;
        padding: 12px;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .filter-btn {
        padding: 10px;
        font-size: 14px;
        border-radius: 10px;
    }

    .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%;
    }
}

@media (max-width: 560px) {
    .dr-btn {
        min-height: 42px;
        padding: 0 14px;
        font-size: 13px;
        border-radius: 10px;
    }
}