﻿/* ═══════════════════════════════════════════════════════════════
   Ada Coaching – Full Gallery Sayfası  (fullgallery.css)
═══════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────── */
.fg-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    overflow: hidden;
}

.fg-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(99,102,241,.25), transparent 70%);
}

.fg-hero-content {
    position: relative;
    text-align: center;
    padding: 60px 20px;
    color: #fff;
}

    .fg-hero-content h1 {
        font-size: clamp(28px, 5vw, 52px);
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .fg-hero-content p {
        font-size: clamp(14px, 2vw, 18px);
        opacity: .8;
        line-height: 1.7;
    }

/* ── Stats ─────────────────────────────────────────────────── */
.fg-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 20px;
    flex-wrap: wrap;
}

.fg-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
}

.fg-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.fg-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: .04em;
}

.fg-stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

/* ── Section head ──────────────────────────────────────────── */
.fg-slider-section,
.fg-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 24px 0;
}

.fg-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

    .fg-section-head h2 {
        font-size: 22px;
        font-weight: 800;
        color: #0f172a;
    }

.fg-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* ── Slider ─────────────────────────────────────────────────── */
.fg-slider-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.12);
}

.fg-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 0;
}

    .fg-slider::-webkit-scrollbar {
        display: none;
    }

.fg-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    aspect-ratio: 16/7;
    display: block;
    overflow: hidden;
}

    .fg-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

    .fg-slide:hover img {
        transform: scale(1.03);
    }

.fg-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 32px 24px 20px;
}

/* Arrows */
.fg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    transition: background .15s, transform .15s;
    z-index: 10;
    color: #0f172a;
}

    .fg-arrow:hover {
        background: #fff;
        transform: translateY(-50%) scale(1.08);
    }

.fg-prev {
    left: 14px;
}

.fg-next {
    right: 14px;
}

/* Dots */
.fg-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
}

.fg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: background .2s, transform .2s;
    padding: 0;
}

    .fg-dot.active {
        background: #6366f1;
        transform: scale(1.3);
    }

/* ── Grid ───────────────────────────────────────────────────── */
.fg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 12px;
    padding-bottom: 52px;
}

.fg-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    display: block;
    background: #f1f5f9;
}

    .fg-grid-item.wide {
        grid-column: span 2;
    }

    .fg-grid-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .45s ease;
    }

    .fg-grid-item:hover img {
        transform: scale(1.07);
    }

.fg-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.48);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    opacity: 0;
    transition: opacity .25s;
}

.fg-grid-item:hover .fg-grid-overlay {
    opacity: 1;
}

.fg-grid-overlay i {
    font-size: 24px;
}

.fg-grid-overlay span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 0 16px;
}

/* Empty */
.fg-empty {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

    .fg-empty i {
        font-size: 48px;
        margin-bottom: 16px;
        display: block;
    }

    .fg-empty p {
        font-size: 16px;
    }

/* ── CTA ────────────────────────────────────────────────────── */
.fg-cta {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    margin-top: 0;
    padding: 70px 20px;
    text-align: center;
    color: #fff;
}

.fg-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.fg-cta h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.fg-cta p {
    opacity: .8;
    margin-bottom: 28px;
    font-size: 16px;
}

.fg-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #6366f1;
    color: #fff;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    transition: background .2s, transform .15s;
}

    .fg-cta-btn:hover {
        background: #4f46e5;
        transform: translateY(-2px);
    }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .fg-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
}

@media (max-width: 640px) {
    .fg-stats {
        gap: 0;
    }

    .fg-stat {
        padding: 0 18px;
    }

    .fg-stat-num {
        font-size: 24px;
    }

    .fg-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 8px;
    }

    .fg-grid-item.wide {
        grid-column: span 1;
    }

    .fg-arrow {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .fg-slide {
        aspect-ratio: 4/3;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Özel Lightbox (lightbox2 olmadan)
═══════════════════════════════════════════════════════════════ */
.lb-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.93);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}
.lb-backdrop.open {
    display: flex;
}

/* Kapat butonu - sağ üst köşe, büyük ve belirgin */
.lb-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.4);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: background .15s, transform .15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.lb-close:hover {
    background: rgba(255,255,255,.28);
    transform: scale(1.1);
}

/* Prev / Next */
.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: background .15s;
}
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-nav-prev { left: 12px; }
.lb-nav-next { right: 12px; }

/* Görsel */
.lb-img-wrap {
    max-width: min(90vw, 1100px);
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    transition: opacity .2s;
}
.lb-img.loading { opacity: 0; }

/* Caption & counter */
.lb-caption {
    color: rgba(255,255,255,.85);
    font-size: 14px;
    font-weight: 500;
    margin-top: 14px;
    text-align: center;
    max-width: 600px;
    min-height: 20px;
}
.lb-counter {
    color: rgba(255,255,255,.45);
    font-size: 12px;
    margin-top: 6px;
}

@media (max-width: 600px) {
    .lb-nav { width: 38px; height: 38px; font-size: 14px; }
    .lb-close { width: 40px; height: 40px; font-size: 18px; }
    .lb-nav-prev { left: 4px; }
    .lb-nav-next { right: 4px; }
}
