﻿:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --accent: #1a73e8;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(31,41,55,0.08);
    --transition: 240ms;
}

[data-theme="dark"] {
    --bg: #0b0c0d;
    --surface: #0f1113;
    --text: #e6eef8;
    --muted: #9aa4b2;
    --accent: #4f7cff;
    --shadow: 0 6px 24px rgba(0,0,0,0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html, body {
    height: 100%
}

body {
    font-family: "Inter",system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden; /* İçerik kaydığında yatay scroll oluşmasını engellemek için */
}

.topbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 40;
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02));
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg,var(--accent),#6aa0ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700
}

.brand-text .title {
    font-weight: 700;
    font-size: 14px
}

.brand-text .subtitle {
    font-size: 11px;
    color: var(--muted)
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.icon-btn {
    padding: 8px;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px
}

.profile-btn img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover
}

.stats-container {
    margin-top: 30px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

    .stat-card.large {
        grid-column: span 1;
        height: 280px;
    }

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-top: 10px;
}

#ms_rakip li {
    padding: 4px 0;
}

/* === SAĞDAN AÇILAN AYARLAR MENÜSÜ (DRAWER) === */
.drawer-right {
    position: fixed;
    top: 0;
    right: -350px; /* Başlangıçta gizli */
    width: 320px;
    height: 100%;
    background: var(--surface);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.3s ease-in-out;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0,0,0,0.05);
}

    .drawer-right.active {
        right: 0; /* Aktif olunca görünür */
    }

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .drawer-header h3 {
        margin: 0;
        font-size: 18px;
    }

.icon-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--muted);
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 25px;
}

    .setting-group label {
        display: block;
        margin-bottom: 10px;
        font-weight: 600;
        color: var(--text);
    }

/* RENK BUTONLARI */
.color-options {
    display: flex;
    gap: 10px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
}

    .color-btn:hover {
        transform: scale(1.1);
    }

/* IOS TARZI SWITCH (AÇMA KAPAMA BUTONU) */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: var(--accent);
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

/* TEHLİKE BUTONU */
.btn-danger {
    width: 100%;
    padding: 10px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* === SÜRÜM GÜNLÜĞÜ (VERSION LOG) STİLLERİ === */
.version-log-container {
    margin-top: 10px;
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

.version-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

    .version-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.version-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(26,115,232,0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.version-date {
    font-size: 11px;
    color: var(--muted);
}

.version-desc {
    font-size: 12px;
    color: var(--text);
    line-height: 1.4;
    opacity: 0.9;
}


/* === DASHBOARD YENİ TASARIM === */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.divider {
    border: 0;
    border-top: 1px solid var(--muted);
    opacity: 0.2;
    margin: 20px 0;
}

/* KART STİLİ */
.dashboard-card {
    background: var(--surface); /* Tema rengine uyumlu */
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    border: 1px solid rgba(255,255,255,0.05);
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

    /* Kartın içine resim gelirse */
    .dashboard-card.has-bg {
        color: white;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }

        .dashboard-card.has-bg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5); /* Resmi karartmak için */
            z-index: 1;
        }

    .dashboard-card > * {
        position: relative;
        z-index: 2; /* Yazılar resmin üstünde kalsın */
    }

.card-icon {
    font-size: 32px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.dashboard-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.dashboard-card p {
    font-size: 14px;
    opacity: 0.8;
}

.delete-card-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,0,0,0.2);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: none; /* Sadece hover olunca görünsün */
    z-index: 10;
}

.dashboard-card:hover .delete-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HAZIR GRADYANLAR (Standart kartlar için) */
.gradient-blue {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(26, 115, 232, 0.1) 100%);
    border-left: 4px solid #1a73e8;
}

.gradient-purple {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(142, 68, 173, 0.1) 100%);
    border-left: 4px solid #8e44ad;
}

@media(max-width: 1000px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-card.large {
        height: auto;
    }
}

.menu-btn {
    display: none;
    padding: 8px;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px
}


/* DÜZELTME YAPILAN ALAN */
.sidebar {
    width: 240px;
    position: fixed;
    top: 64px;
    left: 12px;
    bottom: 18px;
    padding: 18px;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: auto;
    z-index: 999 !important;
    transition: transform 0.3s ease; /* Menü animasyonlu gelsin */
}


.nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 0
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
    transition: all var(--transition)
}

    .nav-item:hover {
        background: rgba(26,115,232,0.06);
        color: var(--text)
    }

    .nav-item.active {
        background: linear-gradient(90deg,var(--accent),rgba(26,115,232,0.08));
        color: var(--text);
        font-weight: 600
    }

.settings-area {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0,0,0,0.04);
    color: var(--muted)
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0
}

.accent-palette {
    display: flex;
    gap: 8px
}

.accent-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06)
}

.content {
    position: relative;
    z-index: 1;
    margin-left: 280px;
    padding: 100px 32px 40px 32px;
    transition: margin-left 0.3s ease, width 0.3s ease, padding 0.3s ease; /* Geçiş animasyonu */
}

.grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px
}

.card {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform var(--transition)
}

    .card:hover {
        transform: translateY(-6px)
    }

.welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px
}

.actions {
    display: flex;
    gap: 10px
}

.btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition)
}

    .btn.primary {
        background: var(--accent);
        color: #fff;
        box-shadow: 0 8px 20px rgba(26,115,232,0.12)
    }

    .btn.ghost {
        background: transparent;
        border: 1px solid rgba(0,0,0,0.06);
        color: var(--text)
    }

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px
}

    .stat .num {
        font-size: 22px;
        font-weight: 700
    }

.pill {
    background: rgba(26,115,232,0.08);
    padding: 6px 8px;
    border-radius: 999px;
    color: var(--accent);
    font-weight: 600;
    font-size: 12px
}

.drawer-content label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.drawer-content .input {
    margin-top: 6px !important;
}

.drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    height: 100%;
    background: var(--surface);
    padding: 20px;
    border-left: 1px solid rgba(0,0,0,0.06);
    transition: right 0.35s ease,z-index;
    z-index: 2000;
    overflow: auto
}

    .drawer.open {
        right: 0
    }

.drawer-content h2 {
    margin-bottom: 12px
}

.img-preview-box {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px dashed rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

input[type="file"] {
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    cursor: pointer;
}

.save-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer
}

.close-drawer {
    margin-top: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    background: transparent;
    cursor: pointer
}

/* modal */
.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 3000
}

    .modal-bg.show {
        display: flex
    }

.modal {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow)
}

/* small */
@media (max-width:900px) {
    .grid {
        grid-template-columns: 1fr
    }

    .content {
        margin-left: 0;
        padding: 100px 18px
    }

    .sidebar {
        left: 10px;
        right: 10px
    }
}

@media (max-width:600px) {
    :root {
        --shadow: 0 4px 12px rgba(0,0,0,0.18);
    }

    .sidebar {
        transform: translateX(-120%); /* Menü varsayılan olarak solda gizli */
        opacity: 0;
        left: 0; /* Mobilde tam sola yasla */
        border-radius: 0 14px 14px 0; /* Sadece sağ köşeleri yuvarla */
        height: calc(100% - 64px); /* Topbar hariç yükseklik */
        bottom: 0;
    }

        .sidebar.show {
            transform: translateX(0); /* Açılınca görünür */
            opacity: 1;
        }

    /* YENİ: Menü açıldığında içeriği sağa it ve daralt */
    .content.menu-active {
        margin-left: 240px !important; /* Sidebar genişliği kadar it */
        width: calc(100% - 240px); /* Kalan alana sığdır */
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

        /* Menü açıldığında kartların o dar alana sığması için özel kurallar */
        .content.menu-active .card-grid-container,
        .content.menu-active .match-stats-grid,
        .content.menu-active .stats-row {
            grid-template-columns: 1fr !important; /* Tek sütun yap */
            gap: 10px !important;
        }

        .content.menu-active .dashboard-card,
        .content.menu-active .mini-stat-card,
        .content.menu-active .timeline-container,
        .content.menu-active .hero-match-card {
            min-width: 0 !important; /* Min-width kısıtlamasını kaldır */
            padding: 15px !important; /* Paddingi biraz azalt */
        }

            .content.menu-active .hero-match-card h2 {
                font-size: 20px !important; /* Başlıkları küçült */
            }

    .menu-btn {
        display: block;
    }

    .content {
        padding: 90px 12px;
    }
}

/* login styles */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(180deg,#0f1724,#071022);
    color: #fff
}

.login-container {
    width: 320px;
    padding: 28px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6)
}

    .login-container h2 {
        margin-bottom: 10px;
        font-size: 20px
    }

    .login-container input, .login-container select {
        width: 100%;
        padding: 10px;
        margin: 8px 0;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.06);
        background: transparent;
        color: #fff
    }

    .login-container .switch-text {
        margin-top: 10px;
        font-size: 13px;
        color: #cbd5e1
    }

.switch-link {
    color: var(--accent);
    cursor: pointer
}

.workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.workout-card {
    background: var(--card);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: 0.2s;
}

    .workout-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

    .workout-card .icon {
        font-size: 38px;
    }

.start-btn {
    margin-top: 10px;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

    .start-btn:hover {
        opacity: 0.9;
    }

.menu li {
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: 0.25s;
}

    .menu li:hover {
        background: #f0f4ff;
    }

    .menu li.active {
        background: linear-gradient(90deg, #1877ff, #b9d6ff);
        color: white;
        font-weight: bold;
        box-shadow: 0 3px 8px rgba(24, 119, 255, 0.3);
    }

.sidebar.collapsed {
    width: 70px;
}

#workoutInner {
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
}

.close-btn {
    margin-top: 14px;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

    .close-btn:hover {
        opacity: 0.8;
    }

/* === KART BOYUTLARI VE DÜZENİ === */
.card-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Kart Genişlikleri */
.card-span-1 {
    grid-column: span 1;
}

.card-span-2 {
    grid-column: span 2;
}

/* Mobil Uyum (768px altı) */
@media (max-width: 768px) {
    .card-grid-container {
        grid-template-columns: 1fr;
    }

    .card-span-1, .card-span-2 {
        grid-column: span 1 !important; /* Mobil görünümde daima tek sütun */
    }
}

/* === YENİ KART VE INPUT STİLLERİ (Veri Girişi İçin) === */
.dashboard-card {
    /* (Mevcut stillerini koru) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .dashboard-card .card-header {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .dashboard-card .card-header h3 {
            margin: 0;
            flex-grow: 1;
        }

    /* Ayar İkonu (⚙️) */
    .dashboard-card .edit-layout-btn {
        font-size: 16px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--muted);
        transition: color 0.2s;
    }

.card-input-area {
    display: flex;
    gap: 8px;
    margin-top: auto; /* İçerik boyutu farklı olsa bile input'ları alta hizalar */
}

    .card-input-area .input {
        flex-grow: 1;
        padding: 8px;
        border-radius: 8px;
        border: 1px solid var(--muted);
        background: var(--bg);
        color: var(--text);
    }

    .card-input-area textarea.input {
        min-height: 50px; /* Textarea için daha küçük başlangıç boyutu */
        resize: vertical;
    }

    .card-input-area .small-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 80px;
    }

/* Kartların Izgara Yapısı */
.card-grid-container {
    display: grid;
    /* Otomatik sığdır: En az 260px, sığmazsa alt satıra geç */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Kartın iç düzeni */
.dashboard-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px; /* Kartların boyunu eşitlemek için */
    transition: transform 0.2s;
}

    .dashboard-card:hover {
        transform: translateY(-3px);
    }

/* Input ve Buton Alanı */
.card-input-area {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

    .card-input-area .input {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: var(--bg);
        color: var(--text);
    }

.small-btn {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: white;
}

/* Yeni Vücut Metrikleri Kartı Stilleri */
.metrik-ozet-grid {
    display: grid;
    /* İki metrik bilgisi için eşit genişlikte iki sütun */
    grid-template-columns: 1fr 1px 1fr;
    gap: 15px;
    text-align: center;
    align-items: center;
    margin-top: 15px;
}

/* İki metriği ayıran ince çizgi */
.metrik-divider {
    height: 60px;
    width: 1px;
    background-color: var(--muted);
    opacity: 0.2;
}

.metrik-ozet-grid .value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--accent); /* Ana renk ile vurgulama */
}

.metrik-ozet-grid .label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

/* Boş Durum (Empty State) Kartı Stili */
.empty-state-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 400px;
    margin: 40px auto; /* Ortalamak için */
    border: 1px solid rgba(0,0,0,0.05);
}

    .empty-state-card .empty-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .empty-state-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .empty-state-card p {
        font-size: 14px;
        color: var(--muted);
    }

@media (max-width: 600px) {
    .content {
        margin-left: 0 !important;
        padding: 90px 12px !important;
    }
}

/* === SAYFA İÇİ ÖZEL STİLLER VE ANİMASYONLAR === */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Hero Kart */
.hero-match-card {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    opacity: 0.05;
    pointer-events: none;
}

.countdown-container {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.countdown-item {
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    min-width: 70px;
}

.countdown-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* İstatistik Grid */
.match-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mini-stat-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

    .mini-stat-card:hover {
        transform: translateY(-3px);
        border-color: var(--accent);
    }

.mini-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Timeline Listesi */
.timeline-container {
    background: var(--surface);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    position: relative;
    border-left: 2px solid rgba(0,0,0,0.05);
    margin-left: 10px;
    padding-left: 25px;
}

    .timeline-item:last-child {
        border-left: 2px solid transparent;
        padding-bottom: 0;
    }

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--surface);
}

.timeline-date {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    width: 90px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.timeline-time {
    font-size: 11px;
    opacity: 0.7;
    font-weight: normal;
}

.timeline-content {
    flex-grow: 1;
}

.timeline-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-meta {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Sonuç Butonları */
.result-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn-result {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

    .btn-result:hover {
        opacity: 0.8;
    }

.btn-win {
    background: #10b981;
    color: white;
}

.btn-loss {
    background: #ef4444;
    color: white;
}

/* Sonuç Etiketleri */
.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 5px;
}

.badge-win {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-loss {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tag {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-blue {
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

.tag-gray {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.5;
}

    .delete-btn:hover {
        opacity: 1;
    }

/* Modal */
.modal-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

    .modal-bg.show {
        display: flex;
    }

.modal {
    background: var(--surface);
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.field {
    margin-bottom: 15px;
    text-align: left;
}

    .field label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
        color: var(--muted);
        font-size: 14px;
    }

.input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: var(--bg);
    color: var(--text);
}





/* Yumuşak geçiş */
* {
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

/* ========== Genel ========== */
body {
    background: var(--bg);
    color: var(--text);
}

/* Başlık */
.changelog-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Grup Container */
.changelog-container {
    width: 100%;
    margin-top: 15px;
}

/* Ana Grup */
.changelog-group {
    margin-bottom: 20px;
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 12px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Grup Header */
.changelog-group-header {
    font-size: 22px;
    font-weight: 700;
    padding: 14px;
    cursor: pointer;
    user-select: none;
    position: relative;
    color: var(--text);
}

    .changelog-group-header::after {
        content: "▾";
        position: absolute;
        right: 12px;
        transition: transform var(--transition);
    }

    .changelog-group-header.open::after {
        transform: rotate(-180deg);
    }

.changelog-group-content {
    display: none;
    padding: 10px 15px;
    color: var(--text-muted);
}

/* Alt Sürüm Kartları */
.changelog-item {
    margin-bottom: 12px;
    background: var(--card);
    border-radius: 8px;
    padding: 10px;
    border-left: 3px solid var(--accent);
    box-shadow: 0 0 8px rgba(0,0,0,0.04);
}

.changelog-item-header {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
    position: relative;
    user-select: none;
    color: var(--text);
}

    .changelog-item-header::after {
        content: "▾";
        position: absolute;
        right: 12px;
        transition: transform var(--transition);
    }

    .changelog-item-header.open::after {
        transform: rotate(-180deg);
    }

.changelog-item-content {
    display: none;
    padding: 8px 14px 12px 16px;
    color: var(--text-muted);
}

    .changelog-item-content li {
        margin-bottom: 6px;
    }

.sound-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: var(--btn-bg);
    font-size: 24px;
    cursor: pointer;
    color: var(--btn-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--shadow);
    transition: background var(--transition), transform var(--transition);
}

    .sound-btn:hover {
        background: var(--btn-bg-hover);
        transform: translateY(-2px);
    }

    .sound-btn:active {
        transform: scale(0.85);
        box-shadow: 0 2px 4px var(--shadow);
    }

    /* İkon Animasyonu */
    .sound-btn .icon {
        transition: transform 0.15s ease, opacity 0.15s ease;
    }

    .sound-btn.change .icon {
        transform: scale(0.6);
        opacity: 0.3;
    }



.coin-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.15);
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
}

.coin-icon {
    width: 20px;
    height: 20px;
}

.coin {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: 700;
    color: #ffd700;
}


#coinAnimationContainer {
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.coin-fly {
    position: absolute;
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}



.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30,30,30,0.95);
    padding: 25px;
    border-radius: 14px;
    color: #fff;
    font-size: 18px;
    display: none;
}


