/* --- TEMEL İSKELET VE LAYOUT --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0b0f19;
    color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.app-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    background: #0f172a;
}

/* --- YAN PANELLER --- */
.side-panel {
    width: 320px;
    background: #1e293b;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 100;
}

.side-panel-right {
    border-left: 1px solid #334155;
    border-right: none;
}

.panel-header {
    padding: 16px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 15px;
    color: #f1c40f;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.mobile-close-btn {
    display: none;
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* --- ANA İÇERİK --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: #0b0f19;
    overflow: hidden;
}

.bulten-header-info {
    padding: 12px 16px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-date {
    font-size: 13px;
    color: #38bdf8;
    font-weight: bold;
}

.clickable-date {
    cursor: pointer;
    padding: 4px 8px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 4px;
}

.header-title {
    font-size: 15px;
    font-weight: bold;
    color: #f1c40f;
}

/* --- MAÇ LİSTESİ --- */
.match-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.mac-row {
    display: flex;
    align-items: center;
    background: #1e293b;
    margin-bottom: 8px;
    border-radius: 6px;
    padding: 8px;
    gap: 8px;
    border: 1px solid #334155;
}

.mac-no-badge {
    background: #0f172a;
    color: #f1c40f;
    font-weight: bold;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
}

.match-buttons-container {
    display: flex;
    flex: 1;
    gap: 4px;
}

.btn-match-opt {
    background: #0f172a;
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 8px 4px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-match-opt:hover {
    border-color: #38bdf8;
}

.selected-kupon {
    background: #f1c40f !important;
    color: #000 !important;
    font-weight: bold;
    border-color: #f1c40f !important;
}

.winner-highlight {
    background: #2ecc71 !important;
    color: #fff !important;
    font-weight: bold;
}

.mac-result-badge {
    width: 32px;
    text-align: center;
    font-weight: bold;
    color: #f1c40f;
    font-size: 13px;
}

/* --- ALT BARS VE AKSİYONLAR --- */
.price-info-bar {
    display: none;
    background: #1e293b;
    padding: 8px 16px;
    justify-content: space-between;
    border-top: 1px solid #334155;
    font-weight: bold;
    font-size: 13px;
}

.price-green { color: #2ecc71; }
.price-yellow { color: #f1c40f; }

.action-buttons-row {
    display: none;
    background: #0f172a;
    padding: 10px;
    gap: 8px;
    border-top: 1px solid #334155;
    align-items: center;
}

.btn-action {
    flex: 1;
    background: #334155;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}

.btn-action:hover { opacity: 0.9; }
.btn-red { background: #ef4444; }
.btn-blue { background: #3b82f6; }
.btn-green { background: #2ecc71; }
.btn-icon { flex: 0 0 40px; font-size: 16px; }

/* --- ALT NAVİGASYON (MOBİL) --- */
.bottom-nav-tabs {
    display: none;
    background: #1e293b;
    border-top: 1px solid #334155;
    padding: 6px;
    justify-content: space-around;
}

.nav-tab-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.nav-tab-btn.active {
    color: #38bdf8;
    font-weight: bold;
}

/* --- KUPON TUTMA DURUMLARI --- */
.kupon-tutan-13 {
    border: 2px solid #f1c40f !important;
    background: #2a1f0a !important;
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.4);
}
.kupon-tutan-10 {
    border: 2px solid #2ecc71 !important;
    background: #0a2a1a !important;
}

.tutan-badge {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.badge-13 { background: #f1c40f; color: #000; }
.badge-10 { background: #2ecc71; color: #fff; }
.badge-low { background: #475569; color: #cbd5e1; }

.pred-correct {
    color: #2ecc71 !important;
    font-weight: 900;
}
.pred-wrong {
    color: #ef4444 !important;
    opacity: 0.6;
}

/* Özet bar */
.kupon-ozet-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    color: #cbd5e1;
}
.ozet-stat { font-weight: bold; }
.stat-15 { color: #f1c40f; }
.stat-14 { color: #2ecc71; }
.stat-13 { color: #3b82f6; }

/* TXT yükleme butonu */
.btn-txt-yukle {
    background: #8b5cf6 !important;
    color: #fff !important;
    border: none !important;
}
.btn-txt-yukle:hover { background: #7c3aed !important; }

/* --- MODAL --- */
.hafta-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.hafta-modal-content {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    border: 1px solid #334155;
}
.hafta-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #fff;
}
.hafta-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}
.hafta-item-btn {
    background: #0f172a;
    color: #fff;
    border: 1px solid #334155;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
}
.active-hafta {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .side-panel {
        position: fixed;
        top: 0; left: -100%;
        width: 85%;
        height: 100%;
        transition: left 0.3s ease;
    }
    .side-panel-right {
        left: auto; right: -100%;
        transition: right 0.3s ease;
    }
    .side-panel.open-mobile {
        left: 0 !important;
    }
    .side-panel-right.open-mobile {
        right: 0 !important;
    }
    .mobile-close-btn { display: inline-block; }
    .bottom-nav-tabs { display: flex; }
}