/* ============================================= */
/*           KULÜPLER SAYFASI STİLLERİ           */
/* ============================================= */

/* Glass + vars */
:root {
    --glass-bg: rgba(255, 255, 255, 0.42);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 12px 28px rgba(31, 38, 135, 0.12);
    --placeholder-color: rgba(0, 0, 0, 0.45);
    --cta-text-color: var(--brand-cta);
    --border-color: #e6e9ef;
    --hero-bg-h: clamp(420px, 48vw, 640px);
    --f1: #eaf4ff;
    --f2: #ffffff;
}
body.dark {
    --glass-bg: rgba(16, 16, 16, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    --placeholder-color: rgba(255, 255, 255, 0.45);
    --cta-text-color: #fff;
    --border-color: #2a2a2a;
    --f1: #0f1216;
    --f2: #0b0c0d;
}

body {
    background: var(--bg-page);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

/* ========================================================== */
/*           CSS İLE SABİT ÜST ARKA PLAN                      */
/* ========================================================== */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--hero-bg-h);
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
            ellipse 55% 55% at 25% 20%,
            #f4a48a90,
            transparent
        ),
        radial-gradient(ellipse 50% 50% at 66% 12%, #c2a5f780, transparent),
        radial-gradient(ellipse 50% 50% at 90% 38%, #abebff80, transparent);
    opacity: 0.95;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
body.dark::before {
    opacity: 0.9;
}

.page-club-index {
    position: relative;
    z-index: 1;
}

/* ===== HERO ===== */
.page-hero {
    position: relative;
    padding: clamp(56px, 9vw, 84px) 0 24px;
    background: transparent;
}
.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.page-title {
    font-weight: 800;
    font-size: clamp(2.2rem, 4.4vw, 3rem);
    margin: 0;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
}
.page-cta {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    background: var(--glass-bg);
    color: var(--cta-text-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.page-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(31, 38, 135, 0.16);
    color: var(--cta-text-color);
}

/* ===== FİLTRELER ===== */
.club-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.search-field,
.filter-field {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.club-filters .search-field:focus-within,
.club-filters .filter-field:focus-within {
    border-color: var(--brand-cta);
    box-shadow: 0 0 0 3px rgba(255, 166, 49, 0.28), var(--glass-shadow);
}
.search-field {
    position: relative;
    width: 100%;
}
.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--muted);
    opacity: 0.7;
}
.search-icon svg {
    width: 100%;
    height: 100%;
}
.search-field input {
    width: 100%;
    height: 64px;
    padding: 1rem 1.25rem 1rem 60px;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-weight: 600;
    font-size: 1.06rem;
}
.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-field {
    flex: 1 1 220px;
}
.filter-field select {
    width: 100%;
    height: 58px;
    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 .filter-field select {
    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");
}

/* YENİ VE KESİN ÇÖZÜM: Dark modda select kutusu ve seçenekleri için stiller */
body.dark .filter-field select {
    color-scheme: dark; /* Tarayıcıya genel bir ipucu verir, destekleyenler için iyidir */
}
/* Bu kural sorunu kökünden çözer: seçeneklere doğrudan stil verir */
body.dark .filter-field select option {
    background: var(--surface, #161b22); /* Koyu tema yüzey rengi */
    color: var(--text, #c9d1d9); /* Koyu tema metin rengi */
}

.btn-events-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 28px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(90deg, #ffa631, #ffb457);
    color: #fff;
    border: 0;
    box-shadow: 0 10px 24px rgba(255, 166, 49, 0.28);
    transition: transform 0.2s;
}
.btn-events-link:hover {
    transform: translateY(-2px);
    color: #fff;
}
input::placeholder {
    color: var(--placeholder-color);
}

/* GÜNCELLENDİ: Placeholder renginin dark modda doğru çalışması için */
select:has(option[disabled][selected]) {
    color: var(--placeholder-color);
}
body.dark select:has(option[disabled][selected]) {
    color: var(
        --placeholder-color
    ); /* Dark modda beyaz-opak bir renk kullanır */
}

/* ===== LİSTE / KARTLAR ===== */
.club-listing-section {
    padding: 24px 0 64px;
    position: relative;
    background: transparent;
    z-index: 1;
}
.club-card {
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.club-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}
.card-header {
    position: relative;
    height: 92px;
}
.card-header a {
    display: block;
}
.club-avatar {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--surface);
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    box-shadow: var(--shadow);
    background: #fff1;
}
.card-body {
    padding: 54px 16px 10px;
    text-align: center;
    flex-grow: 1;
}
.club-name {
    font-weight: 800;
    font-size: 1.08rem;
    margin: 0 0 4px;
}
.club-university {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 8px;
}
.club-description {
    font-size: 0.92rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border-color);
}
.club-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 12px;
    font-size: 0.92rem;
}
.meta-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}
.meta-icon svg {
    width: 18px;
    height: 18px;
}
.club-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.btn-details,
.btn-follow {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.18s;
    border: 1px solid var(--border-color);
    background: var(--bg-page);
    color: var(--text);
}
.btn-details:hover {
    border-color: var(--brand-cta);
    color: var(--brand-cta);
    background: rgba(255, 166, 49, 0.08);
}
.btn-follow {
    background: var(--brand-cta);
    color: #fff;
    border-color: var(--brand-cta);
    box-shadow: 0 6px 14px rgba(255, 166, 49, 0.22);
}
.btn-follow:hover {
    background: var(--brand-cta-hover);
}
.btn-follow.is-following {
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}
.btn-follow.is-following:hover {
    border-color: var(--muted);
    background: var(--bg-page);
}

/* ===== PAGINATION (Bootstrap) ===== */
.pagination {
    --bs-pagination-color: var(--text);
    --bs-pagination-bg: var(--surface);
    --bs-pagination-border-color: var(--border-color);
    --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;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .page-hero {
        padding: 56px 0 20px;
    }
}
@media (max-width: 576px) {
    .hero-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-title {
        text-align: left;
    }
}

/* ============================================= */
/*           FOOTER GEÇİŞİ VE FOOTER             */
/* ============================================= */
.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;
}
.sf-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px;
}
@media (max-width: 900px) {
    .sf-wrap {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .sf-wrap {
        grid-template-columns: 1fr;
    }
}
.sf-logo {
    height: 46px;
}
.sf-col h4 {
    margin: 0 0 10px;
    font-weight: 800;
}
.sf-col p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}
.sf-links a {
    display: block;
    font-size: 14px;
    margin: 6px 0;
    color: var(--text);
    text-decoration: none;
}
.sf-links a:hover {
    color: #ffa631;
}
.sf-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.sf-social img {
    width: 22px;
    height: 22px;
    transition: transform 0.2s;
}
.sf-social img:hover {
    transform: scale(1.08);
}
.sf-bottom {
    max-width: 1140px;
    margin: 14px auto 0;
    padding: 10px 16px 0;
    text-align: center;
    opacity: 0.75;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
body.dark .sf-bottom {
    border-top-color: rgba(255, 255, 255, 0.08);
}
