/* ==========================================================================
   ETKİNLİK DETAY SAYFASI
   ========================================================================== */

/* -----------------------------------------------------------------------
   1. HERO
   ----------------------------------------------------------------------- */
/* Alt sayfa banneri: gorselsiz, acik zemin.
   Sitedeki diger alt sayfalarla (.duyurular-page-hero) ayni gorunum. */
.event-detail-hero {
    position: relative;
    background: var(--gsb-hero-bg);
    border-bottom: 1px solid var(--gsb-border);
    padding: clamp(24px, 4vw, 36px) 0;
}

/* Gorsel kalkti, karartma katmanina gerek yok.
   Markup'tan da cikarildi; bu kural eski isaretlemeye karsi guvenlik. */
.event-detail-hero-overlay {
    display: none;
}

.event-detail-hero-content {
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.event-detail-breadcrumb {
    margin-bottom: 20px;
}

.event-detail-breadcrumb .breadcrumb-item,
.event-detail-breadcrumb .breadcrumb-item a {
    color: #6b7280;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.event-detail-breadcrumb .breadcrumb-item a:hover {
    color: var(--gsb-red);
}

.event-detail-breadcrumb .breadcrumb-item.active {
    color: var(--gsb-dark);
}

.event-detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #9ca3af;
}

/* Kategori badge */
.event-detail-cat-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: white;
    background: #7c3aed;
    margin-bottom: 14px;
}

/* Başlık */
.event-detail-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    color: var(--gsb-dark);
    margin: 16px 0 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Meta strip */
.event-detail-meta-strip {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gsb-dark);
}

.event-meta-item > i {
    font-size: 1.1rem;
    color: var(--gsb-red);
    opacity: 1;
}

.meta-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6b7280;
    margin-bottom: 1px;
}

.meta-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gsb-dark);
}

/* -----------------------------------------------------------------------
   2. ANA İÇERİK ALANI
   ----------------------------------------------------------------------- */
.event-detail-main {
    padding: 40px 0 80px;
    background: #fff;
}

.event-detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

/* -----------------------------------------------------------------------
   3. İÇERİK KARTLARI (Sol kolon)
   ----------------------------------------------------------------------- */
.event-detail-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.event-content-card {
    background: white;
    border: 1.5px solid var(--gsb-border);
    border-radius: 16px;
    padding: 28px;
}

.event-content-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gsb-dark);
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--gsb-border);
    letter-spacing: -0.3px;
}

.event-content-card p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.75;
    margin: 0 0 12px;
}

.event-content-card p:last-child {
    margin-bottom: 0;
}

/* Haber detay kapak gorseli (Icraat/Detay): kirpilmaz, kart genisliginde */
.haber-detay-gorsel {
    margin: 0 0 24px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gsb-gray);
}

    .haber-detay-gorsel img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 520px;
        object-fit: contain;
    }

/* -----------------------------------------------------------------------
   4. ETKİNLİK PROGRAMI
   ----------------------------------------------------------------------- */
.event-schedule {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-day {
    border: 1.5px solid var(--gsb-border);
    border-radius: 12px;
    overflow: hidden;
}

.schedule-day-header {
    background: var(--gsb-dark);
    color: white;
    padding: 12px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--gsb-border);
    transition: background 0.15s;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item:hover {
    background: var(--gsb-gray);
}

.schedule-time {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gsb-red);
    min-width: 48px;
    flex-shrink: 0;
}

.schedule-desc {
    font-size: 0.85rem;
    color: #374151;
    font-weight: 500;
}

/* -----------------------------------------------------------------------
   5. FOTOĞRAF GALERİSİ
   ----------------------------------------------------------------------- */
.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.gallery-overlay i {
    color: white;
    font-size: 1.4rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.gallery-item:hover .gallery-overlay i {
    opacity: 1;
    transform: scale(1);
}

/* -----------------------------------------------------------------------
   6. SIDEBAR (Sağ kolon)
   ----------------------------------------------------------------------- */
.event-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 120px;
}

/* e-Devlet kartı */
.edevlet-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--gsb-border);
    background: white;
}

.edevlet-card-header {
    background: linear-gradient(135deg, var(--gsb-red) 0%, var(--gsb-red-dark) 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.edevlet-card-header i {
    font-size: 1.1rem;
}

.edevlet-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
}

.edevlet-btn-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.edevlet-card-body {
    padding: 20px;
}

.edevlet-card-body p {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px;
}

.edevlet-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #374151;
    margin-bottom: 10px;
}

.edevlet-info-row i {
    color: var(--gsb-red);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.edevlet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--gsb-red) 0%, var(--gsb-red-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.25s;
}

.edevlet-btn:hover {
    background: linear-gradient(135deg, #f0102e 0%, var(--gsb-red) 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(227, 0, 27, 0.3);
}

.edevlet-btn svg {
    flex-shrink: 0;
}

/* --- Il Mudurlugu basvuru karti (edevlet-card varyanti, koyu lacivert) --- */
.ilmudurlugu-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--gsb-border);
    background: #fff;
}
.ilmudurlugu-card-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    font-weight: 700;
}
.ilmudurlugu-card-header i { font-size: 1.15rem; }
.ilmudurlugu-card-body { padding: 20px; }
.ilmudurlugu-card-body p {
    font-size: .82rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 14px;
}
.ilmudurlugu-office {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.ilmudurlugu-office-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--gsb-dark);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ilmudurlugu-office-name i { color: var(--gsb-red); font-size: 1rem; }
.ilmudurlugu-office-sub {
    font-size: .76rem;
    color: #64748b;
    margin: 0;
}
.ilmudurlugu-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .82rem;
    color: #374151;
    margin-bottom: 10px;
    line-height: 1.45;
}
.ilmudurlugu-info-row i {
    color: var(--gsb-red);
    font-size: .9rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.ilmudurlugu-info-row a {
    color: #374151;
    text-decoration: none;
    word-break: break-word;
}
.ilmudurlugu-info-row a:hover { color: var(--gsb-red); }
.ilmudurlugu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 14px;
    transition: all .25s;
}
.ilmudurlugu-btn:hover {
    background: linear-gradient(135deg, var(--gsb-red) 0%, var(--gsb-red-dark) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(227,0,27,.25);
}

/* Genel sidebar kartı */
.event-sidebar-card {
    background: white;
    border: 1.5px solid var(--gsb-border);
    border-radius: 16px;
    padding: 22px;
}

.sidebar-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gsb-dark);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card-title i {
    color: var(--gsb-red);
    font-size: 0.95rem;
}

/* Ilgili Haberler listesi (haber detay sag kolon) */
.sidebar-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-news-list li + li {
    border-top: 1px solid var(--gsb-border);
}

.sidebar-news-list a {
    display: block;
    padding: 14px 0;
    text-decoration: none;
}

.sidebar-news-date {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 5px;
}

.sidebar-news-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gsb-dark);
    line-height: 1.35;
    transition: color 0.2s;
}

.sidebar-news-list a:hover .sidebar-news-title {
    color: var(--gsb-red);
}

.sidebar-news-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gsb-red);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.sidebar-news-all:hover {
    gap: 14px;
    color: var(--gsb-red);
}

/* Konum kartı */
.sidebar-venue-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gsb-dark);
    margin: 0 0 4px;
}

.sidebar-venue-address {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 12px;
}

.sidebar-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gsb-red);
    text-decoration: none;
    transition: gap 0.2s;
}

.sidebar-map-link:hover {
    gap: 9px;
    color: var(--gsb-red-dark);
}

/* Organizatör kartı */
.sidebar-org-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-org-logo {
    width: 42px;
    height: 42px;
    background: rgba(227, 0, 27, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-org-logo i {
    color: var(--gsb-red);
    font-size: 1.1rem;
}

.sidebar-org-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gsb-dark);
}

.sidebar-org-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 2px;
}

/* Paylaş kartı */
.sidebar-share-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: 1.5px solid var(--gsb-border);
    border-radius: 10px;
    background: white;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gsb-dark);
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.share-btn:hover {
    border-color: var(--gsb-dark);
    background: var(--gsb-gray);
}

.share-twitter:hover {
    border-color: #1DA1F2;
    color: #1DA1F2;
    background: rgba(29, 161, 242, 0.05);
}

.share-whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
    background: rgba(37, 211, 102, 0.05);
}

.share-copy:hover {
    border-color: var(--gsb-dark);
    color: var(--gsb-dark);
}

/* -----------------------------------------------------------------------
   7. GALERİ LIGHTBOX
   ----------------------------------------------------------------------- */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-img-wrap {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    font-weight: 600;
}

/* -----------------------------------------------------------------------
   8. RESPONSIVE
   ----------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .event-detail-layout {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 768px) {
    .event-detail-title {
        font-size: 1.4rem;
    }

    .event-detail-meta-strip {
        gap: 16px;
    }

    .event-detail-layout {
        grid-template-columns: 1fr;
    }

    .event-detail-sidebar {
        position: static;
    }

    .event-detail-main {
        padding: 28px 0 60px;
    }

    .event-content-card {
        padding: 20px;
    }

    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
    .event-meta-item {
        min-width: calc(50% - 14px);
    }

    .event-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-large {
        grid-column: span 1;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
