/* =========================================================
   Qampüs – ETKİNLİKLER SAYFASI (v13 – Modernize Edilmiş)
   Açıklama: Rozet, buton ve metin aralıkları modernleştirildi.
   ========================================================= */

/* ---------- Global Tokenlar ---------- */
:root {
    --bg-page: #f4f6f8;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #6b7280;
    --brand-cta: #ffa631;
    --brand-cta-hover: #e0942c;

    --hero-bg-h: clamp(420px, 48vw, 640px);
    --g1: #f4a48a90;
    --g2: #c2a5f780;
    --g3: #abebff80;
    --f1: #eaf4ff;
    --f2: #ffffff;

    /* Kart sabit ölçüler (desktop) */
    --card-h: 640px;
    --banner-h: 140px;
    --meta-h: 180px;
    --btn-h: 58px;

    /* Rozet ve gövde aralığı */
    --badge-size: 90px;
    --badge-padding-above: 36px;
    --body-pt: calc((var(--badge-size) / 2) + var(--badge-padding-above));

    /* Kartlar arası dikey boşluk */
    --cards-gutter-y: 2.4rem;
}
body.dark {
    --bg-page: #1f1f1f;
    --surface: #0f0f0f;
    --text: #e8edf5;
    --muted: #a9b4c2;
    --g1: #d98a7099;
    --g2: #a78bfa80;
    --g3: #7ed3ff80;
    --f1: #0f1216;
    --f2: #0b0c0d;
}

/* ---------- Sayfa & Sabit Hero BG ---------- */
html,
body {
    overflow-x: hidden;
}
body {
    background: var(--bg-page);
    color: var(--text);
}
.page-event-index {
    position: relative;
    isolation: isolate;
    width: 100%;
}
.page-event-index::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--hero-bg-h);
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(
            ellipse 55% 55% at 25% 20%,
            var(--g1),
            transparent
        ),
        radial-gradient(ellipse 50% 50% at 66% 12%, var(--g2), transparent),
        radial-gradient(ellipse 50% 50% at 90% 38%, var(--g3), transparent);
    opacity: 0.95;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
body.dark .page-event-index::before {
    opacity: 0.9;
}

/* ---------- HERO & Filtreler ---------- */
.page-event-index .page-hero {
    padding: clamp(60px, 9vw, 92px) 0 30px;
    background: transparent;
    position: relative;
}
.page-event-index .page-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -34px;
    width: clamp(720px, 90vw, 1200px);
    height: 126px;
    background: radial-gradient(
        ellipse 60% 60% at 50% 0%,
        rgba(0, 0, 0, 0.1),
        transparent 70%
    );
    filter: blur(18px);
    pointer-events: none;
}
.page-event-index .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 1;
}
.page-event-index .hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.page-event-index .page-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: clamp(2rem, 4.4vw, 3rem);
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.14);
}
.page-event-index .event-filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.page-event-index .search-field,
.page-event-index .filter-field {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(31, 38, 135, 0.12);
    transition: border-color 0.2s, box-shadow 0.2s;
}
body.dark .page-event-index .search-field,
body.dark .page-event-index .filter-field {
    background: rgba(16, 16, 16, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.page-event-index .event-filters .search-field:focus-within,
.page-event-index .event-filters .filter-field:focus-within {
    border-color: var(--brand-cta);
    box-shadow: 0 0 0 3px rgba(255, 166, 49, 0.28),
        0 12px 28px rgba(31, 38, 135, 0.12);
}
.page-event-index .search-field {
    position: relative;
    width: 100%;
}
.page-event-index .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--muted);
    opacity: 0.75;
}
.page-event-index .search-icon svg {
    width: 100%;
    height: 100%;
}
.page-event-index .search-field input {
    width: 100%;
    height: 68px;
    padding: 1rem 1.25rem 1rem 60px;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-weight: 600;
    font-size: 1.08rem;
}
.page-event-index .filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.page-event-index .filter-field {
    flex: 1 1 220px;
}
.page-event-index .filter-field select {
    width: 100%;
    height: 60px;
    padding: 0 1.25rem;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.1em;
    background-position: right 1rem center;
}
body.dark .page-event-index .filter-field select {
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a9b4c2' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}
body.dark .page-event-index .filter-field select option {
    background: #161b22;
    color: #c9d1d9;
}

/* ---------- Liste ---------- */
.page-event-index .event-listing-section {
    padding: 32px 0 78px;
    position: relative;
    z-index: 1;
    background: transparent;
}
.page-event-index .event-listing-section .row {
    --bs-gutter-y: var(--cards-gutter-y);
}
@media (min-width: 992px) {
    .page-event-index .event-listing-section .row > [class*="col-"] {
        display: flex;
        justify-content: center;
    }
}

/* =========================================================
   SABİT KART + GLASS
   ========================================================= */
.page-event-index .event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    height: var(--card-h);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    backdrop-filter: blur(12px) saturate(130%);
    box-shadow: 0 12px 30px rgba(31, 38, 135, 0.14);
}
.page-event-index .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(31, 38, 135, 0.18);
}

body.dark .page-event-index .event-card {
    background: rgba(18, 18, 18, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

/* 1) Banner (sabit) */
.page-event-index .event-media {
    position: relative;
    height: var(--banner-h);
    flex: 0 0 var(--banner-h);
}
.page-event-index .event-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
}

/* 2) Rozet (GÜNCELLENDİ: Tasarıma uyumlu halka) */
.page-event-index .event-badge {
    position: absolute;
    top: var(--banner-h);
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--badge-size);
    height: var(--badge-size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 2;
    padding: 10px;
    background: var(--surface);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.45),
        /* DIŞ HALKA (Yarı saydam beyaz) */ 0 8px 22px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
body.dark .page-event-index .event-badge {
    background: #1b1b1b;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1),
        /* DIŞ HALKA (Hafif parlak beyaz) */ 0 10px 26px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.page-event-index .event-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* 3) Gövde (GÜNCELLENDİ: Modern metin aralıkları) */
.page-event-index .event-body {
    height: calc(
        var(--card-h) - var(--banner-h) - var(--meta-h) - var(--btn-h)
    );
    padding: var(--body-pt) 34px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}
.page-event-index .event-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--text);
}
.page-event-index .event-school {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

/* 4) Meta (sabit alan) */
.page-event-index .event-meta {
    height: var(--meta-h);
    flex: 0 0 var(--meta-h);
    padding: 0 34px;
    display: grid;
    gap: 18px;
    margin-top: 3px;
    text-align: left;
    overflow: hidden;
}
.page-event-index .meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 32px;
    line-height: 1.4;
}
.page-event-index .meta-row .icon,
.page-event-index .meta-row .icon img,
.page-event-index .meta-row .icon svg {
    width: 22px;
    height: 22px;
    display: inline-block;
    filter: none;
}
body.dark .page-event-index .meta-row .icon,
body.dark .page-event-index .meta-row .icon img,
body.dark .page-event-index .meta-row .icon svg {
    filter: invert(1) brightness(1.15);
}
.page-event-index .meta-row small {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1;
}
.page-event-index .meta-row .val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

/* 5) CTA (GÜNCELLENDİ: Modern buton tasarımı) */
.page-event-index .event-actions {
    flex: 0 0 var(--btn-h);
    padding: 0 34px 30px;
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.page-event-index .btn-cta {
    width: 100%;
    height: var(--btn-h);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: var(--text);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}
.page-event-index .btn-cta:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
body.dark .page-event-index .btn-cta {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
body.dark .page-event-index .btn-cta:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* ---------- Responsive (kart sabit; oranlar optimize) ---------- */
@media (max-width: 576px) {
    :root {
        --card-h: 610px;
        --banner-h: 126px;
        --meta-h: 174px;
        --btn-h: 58px;
        --badge-size: 76px;
        --badge-padding-above: 22px;
        --body-pt: calc((var(--badge-size) / 2) + var(--badge-padding-above));
        --cards-gutter-y: 1.8rem;
    }
    .page-event-index .event-body {
        padding: var(--body-pt) 22px 18px;
    }
    .page-event-index .event-title {
        margin-bottom: 6px;
    }
    .page-event-index .event-school {
        margin-bottom: 16px;
    }
    .page-event-index .event-meta {
        padding: 0 22px;
        gap: 16px;
    }
    .page-event-index .event-actions {
        padding: 0 22px 24px;
    }
}

/* ---------- Pagination & Footer ---------- */
.page-event-index .pagination {
    --bs-pagination-color: var(--text);
    --bs-pagination-bg: var(--surface);
    --bs-pagination-border-color: rgba(0, 0, 0, 0.08);
    --bs-pagination-hover-bg: var(--bg-page);
    --bs-pagination-active-bg: var(--brand-cta);
    --bs-pagination-active-border-color: var(--brand-cta);
    --bs-pagination-active-color: #fff;
}
body.dark .page-event-index .pagination {
    --bs-pagination-border-color: rgba(255, 255, 255, 0.12);
}
.footer-arc-bg {
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--f1) 100%);
    height: clamp(80px, 12vw, 150px);
    width: 100%;
    position: relative;
    z-index: 1;
    clip-path: ellipse(100% 100% at 50% 100%);
}
.site-footer {
    background: linear-gradient(180deg, var(--f1) 0%, var(--f2) 100%);
    color: var(--text);
    padding: 26px 0 8px;
    position: relative;
    z-index: 0;
    margin-top: -1px;
    border-top: 0;
}
