:root {
    --yesil: #0b6e4f;
    --yesil-koyu: #094e38;
    --accent: #f4b400;
    --bg: #f7f7f5;
    --kart-bg: #ffffff;
    --metin: #1a1a1a;
    --gri: #666;
    --sinir: #e2e2e2;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--metin);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 24px;
    background: var(--yesil);
    color: white;
}

.site-header .logo {
    color: white;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: "Outfit", "Manrope", sans-serif;
}

.site-header nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-header nav a,
.auth-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.site-header nav a:hover,
.auth-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.link-button {
    background: none;
    border: none;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    min-height: 60vh;
}

.site-footer {
    text-align: center;
    padding: 20px;
    color: var(--gri);
    font-size: 0.85rem;
}

/* Başlıklar — Outfit, gövde metninden görsel olarak ayrışsın diye */
h1, h2, h3, .hero-baslik, .istatistik-sayi, .adim-no {
    font-family: "Outfit", "Manrope", sans-serif;
}

/* Sayfa başlığı — tüm sayfalarda tutarlı üst boşluk/tipografi (hero hariç) */
main.container > h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--yesil-koyu);
    margin: 4px 0 20px;
    letter-spacing: -0.01em;
}

.kart {
    background: var(--kart-bg);
    border: 1px solid var(--sinir);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.kart:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.07);
}

.kart h3 { margin-top: 0; }

.etiket {
    display: inline-block;
    padding: 3px 12px;
    margin: 0 6px 6px 0;
    border-radius: 20px;
    background: #eef7f2;
    color: var(--yesil-koyu);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.buton {
    display: inline-block;
    background: var(--yesil);
    color: white;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(11,110,79,0.25);
    transition: background 0.15s ease, transform 0.15s ease;
}

.buton:hover { background: var(--yesil-koyu); transform: translateY(-1px); }

/* Sayfada/kartta ikincil, daha düşük vurgulu buton */
.buton-ikincil {
    background: var(--bg);
    color: var(--yesil-koyu);
    border: 1px solid var(--sinir);
    box-shadow: none;
}
.buton-ikincil:hover { background: #eef7f2; }

form.form-alan { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
form.form-alan label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
form.form-alan input, form.form-alan select, form.form-alan textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--sinir);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease;
}
form.form-alan input[type="checkbox"] { width: auto; }
form.form-alan input:focus, form.form-alan select:focus, form.form-alan textarea:focus {
    outline: none;
    border-color: var(--yesil);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--kart-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
table th {
    background: var(--yesil-koyu);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}
table th, table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--sinir);
}
table tbody tr:hover { background: #f7fbf9; }
table tbody tr:last-child td { border-bottom: none; }

/* Boş durum mesajları ("henüz X yok" tarzı) */
.bos-durum {
    text-align: center;
    padding: 32px 16px;
    color: var(--gri);
    background: var(--kart-bg);
    border: 1px dashed var(--sinir);
    border-radius: 10px;
}

/* Uyarı/dikkat kartı — hukuki taslak notları gibi vurgulanması gereken metinler için */
.uyari-kart {
    background: #fff6f6;
    border: 1px solid #e3a8a8;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.uyari-kart p:last-child { margin-bottom: 0; }

.filtre-bar select {
    padding: 8px 12px;
    border: 1px solid var(--sinir);
    border-radius: 6px;
    background: var(--kart-bg);
    font-size: 0.9rem;
}

.filtre-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

ul.messages { list-style: none; padding: 0; }
ul.messages .message {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #eef7f2;
    color: var(--yesil-koyu);
}
ul.messages .message.error { background: #fdecea; color: #b3261e; }

/* --- Ana sayfa: hero --- */
.hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -24px;
    margin-bottom: 40px;
    padding: 56px 20px 64px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(244,180,0,0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255,255,255,0.08) 0%, transparent 40%),
        linear-gradient(135deg, var(--yesil-koyu), var(--yesil) 70%);
    color: white;
}

.hero-kicker {
    display: inline-block;
    margin: 0 0 14px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-baslik {
    margin: 0 0 16px;
    font-size: 2.6rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hero-baslik span { color: var(--accent); }

.hero-alt {
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.buton-buyuk {
    padding: 13px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.buton-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: none;
}
.buton-outline:hover { background: rgba(255,255,255,0.12); }

/* --- İstatistik şeridi --- */
.istatistik-seridi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 44px;
    text-align: center;
}

.istatistik {
    background: var(--kart-bg);
    border: 1px solid var(--sinir);
    border-radius: 12px;
    padding: 20px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.istatistik-sayi {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--yesil-koyu);
}

.istatistik-etiket {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--gri);
}

@media (max-width: 600px) {
    .hero-baslik { font-size: 1.9rem; }
    .istatistik-seridi { grid-template-columns: repeat(2, 1fr); }
}

/* --- Nasıl çalışır --- */
.nasil-calisir h2 {
    text-align: center;
    margin-bottom: 24px;
}

.adim-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.adim-kart {
    background: var(--kart-bg);
    border: 1px solid var(--sinir);
    border-radius: 12px;
    padding: 22px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.adim-kart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.adim-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--yesil);
    color: white;
    font-weight: 700;
}

.adim-kart p { margin: 0; color: var(--metin); line-height: 1.5; }

@media (max-width: 700px) {
    .adim-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Açık Masa ilan kartları --- */
.ilan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
.ilan-grid > .bos-durum { grid-column: 1 / -1; }

.ilan-kart { margin-bottom: 0; }

.ilan-ust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.avatar-daire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--yesil);
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.ilan-kullanici {
    display: block;
    font-weight: 700;
    color: var(--metin);
    text-decoration: none;
}
.ilan-kullanici:hover { color: var(--yesil-koyu); }

.ilan-zaman {
    display: block;
    font-size: 0.78rem;
    color: var(--gri);
}

.ilan-rozetler { margin-bottom: 8px; }

.ilan-meta {
    color: var(--gri);
    font-size: 0.9rem;
}

.rozet-ucretsiz {
    background: #fff8e6;
    color: #8a6100;
}

.etiket.seviye-baslangic { background: #eef7f2; color: var(--yesil-koyu); }
.etiket.seviye-orta { background: #fff4e0; color: #a15c00; }
.etiket.seviye-ileri { background: #fdeee9; color: #b3441e; }
.etiket.seviye-rekabetci { background: #f3e9fb; color: #6a2a9c; }

.etiket.durum-kayit_aciyor { background: #eef7f2; color: var(--yesil-koyu); }
.etiket.durum-ertelendi { background: #fff4e0; color: #a15c00; }
.etiket.durum-aktif { background: #e8f0fe; color: #1a56c4; }
.etiket.durum-tamamlandi { background: #eee; color: #555; }
.etiket.durum-iptal { background: #fdeee9; color: #b3441e; }
.etiket.durum-kapandi { background: #eee; color: #555; }
.etiket.durum-suresi_gecti { background: #fdeee9; color: #b3441e; }

.etiket.odeme-bekliyor { background: #fff4e0; color: #a15c00; }
.etiket.odeme-odendi { background: #eef7f2; color: var(--yesil-koyu); }
.etiket.odeme-iade_edildi { background: #eee; color: #555; }

.etiket.mac-durum-bekliyor { background: #fff4e0; color: #a15c00; }
.etiket.mac-durum-oynandi { background: #eef7f2; color: var(--yesil-koyu); }
.etiket.mac-durum-anlasmazlik { background: #fdeee9; color: #b3441e; }
.etiket.mac-durum-hukmen { background: #eee; color: #555; }

/* --- Maç detayı: oyuncu vs oyuncu --- */
.mac-oyuncular {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 8px 0 20px;
}
.mac-oyuncu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.mac-vs {
    color: var(--gri);
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- Giriş/Kayıt/Şifre sayfaları --- */
.auth-kart {
    max-width: 420px;
    margin: 32px auto 0;
    background: var(--kart-bg);
    border: 1px solid var(--sinir);
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.auth-baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.auth-ikon { font-size: 1.6rem; }
.auth-kart h1 { margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--yesil-koyu); }
.auth-kart .form-alan { max-width: none; }
.auth-kart p { margin: 14px 0 0; font-size: 0.9rem; }

.parola-alani { position: relative; }
.parola-alani input { padding-right: 68px; }
.parola-goster {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--yesil-koyu);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 8px;
}
.parola-goster:hover { text-decoration: underline; }

/* --- PWA yükleme banner'ı --- */
.pwa-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 20px;
    background: var(--accent);
    color: #4a3800;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}
.pwa-banner .buton-ikincil {
    background: white;
    border-color: transparent;
    padding: 6px 14px;
    font-size: 0.85rem;
}
.pwa-banner-kapat {
    background: none;
    border: none;
    color: #4a3800;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    opacity: 0.7;
}
.pwa-banner-kapat:hover { opacity: 1; }

/* --- Engelle / Şikayet Et --- */
.engel-sikayet-kontrolleri {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 10px 0 20px;
    font-size: 0.85rem;
}
.link-button-kucuk {
    background: none;
    border: none;
    color: var(--gri);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}
.link-button-kucuk:hover { color: #b3441e; }
.sikayet-detay summary {
    color: var(--gri);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    list-style: none;
}
.sikayet-detay summary::-webkit-details-marker { display: none; }
.sikayet-detay .form-alan { margin-top: 8px; max-width: 320px; }
.sikayet-detay textarea { font-family: inherit; }

/* --- Mesaj dizisi listesinde okunmamış rozeti --- */
.okunmamis-rozet {
    display: inline-block;
    background: var(--yesil);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}
.mini-liste li.okunmamis-satir { font-weight: 700; }

/* --- Profil üst bilgisi --- */
.profil-ust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.profil-avatar { width: 56px; height: 56px; font-size: 1.4rem; }
.profil-isim {
    font-family: "Outfit", "Manrope", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--yesil-koyu);
}

/* --- Panel içi kompakt satır listeleri --- */
.mini-liste { list-style: none; padding: 0; margin: 0; }
.mini-liste li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sinir);
}
.mini-liste li:last-child { border-bottom: none; }
.mini-liste li a { font-weight: 600; color: var(--metin); text-decoration: none; }
.mini-liste li a:hover { color: var(--yesil-koyu); }
.mini-liste .mini-meta { color: var(--gri); font-size: 0.9rem; }

/* --- Kurallar: açılır/kapanır SSS --- */
.kart details summary {
    font-family: "Outfit", "Manrope", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--metin);
    cursor: pointer;
    list-style: none;
}
.kart details summary::-webkit-details-marker { display: none; }
.kart details summary::after {
    content: "+";
    float: right;
    font-weight: 800;
    color: var(--yesil);
    margin-left: 12px;
}
.kart details[open] summary::after { content: "–"; }
.kart details p { margin: 10px 0 0; color: var(--metin); }

/* --- Lig kapasite/eşik çubuğu --- */
.kapasite-bar {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: #eee;
    margin: 4px 0 8px;
    overflow: visible;
}
.kapasite-dolu {
    height: 100%;
    border-radius: 4px;
    background: var(--accent);
    transition: width 0.2s ease;
}
.kapasite-dolu.esik-gecti { background: var(--yesil); }
.kapasite-esik {
    position: absolute;
    top: -2px;
    width: 2px;
    height: 12px;
    background: var(--gri);
}

.kapasite-uyari {
    color: #b3441e;
    font-weight: 700;
    font-size: 0.9rem;
}

.ilan-kart { position: relative; }
.sampiyon-avatar { background: var(--accent); font-size: 1.1rem; }
.ilan-kart .ilan-rozetler { padding-right: 90px; }
.fiyat-etiketi {
    position: absolute;
    top: 16px;
    right: 20px;
    background: var(--yesil-koyu);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.fiyat-etiketi-ucretsiz { background: var(--accent); color: #4a3800; }

/* --- Sıralama tablosu --- */
.avatar-kucuk {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
    vertical-align: middle;
    margin-right: 8px;
}
.siralama-satiri.madalya-altin td:first-child { font-size: 1.1rem; }
.siralama-satiri.madalya-altin { background: #fff9e6; }
.siralama-satiri.madalya-gumus { background: #f5f5f5; }
.siralama-satiri.madalya-bronz { background: #fdf1e6; }
.siralama-satiri.kendi-satirim { background: #eef7f2 !important; font-weight: 700; }
.siralama-satiri.kendi-satirim small { font-weight: 400; color: var(--gri); }

@media (max-width: 700px) {
    .ilan-grid { grid-template-columns: 1fr; }
}
