/* ==========================================================
   VİLAYET SAVAŞLARI - GENEL RENK PALETİ VE TEMA DEĞİŞKENLERİ
   ========================================================== */

:root {
    /* Ana Tema Renkleri */
    --osmanli-yesil: #1b4332;
    --osmanli-yesil-dark: #081c15;
    --altin-sari: #d4af37;
    --altin-parlak: #f39c12;
    --al-kirmizi: #8b0000;
    --koyu-kart: #0f2017;
    --yazi-acik-krem: #d8f3dc;
    --yazi-soluk-yesil: #a3b18a;
}

/* Genel Arka Plan ve Yazı Tipi */
body {
    background-color: #0b1710;
    background-image: radial-gradient(var(--osmanli-yesil) 0.75px, transparent 0.75px);
    background-size: 15px 15px;
    font-family: 'Montserrat', sans-serif;
    color: #e0e0e0;
    padding-bottom: 90px !important;
}

/* Üst Sabit Bar */
.top-bar {
    background: rgba(15, 32, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--altin-sari);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.user-title {
    font-family: 'Cinzel', serif;
    color: var(--altin-sari);
    font-weight: 700;
}

.user-location-text {
    color: var(--yazi-acik-krem);
    font-weight: 500;
    font-size: 0.85rem;
}

/* Hammadde Kartları */
.resource-card {
    background: rgba(15, 32, 23, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-3px);
    border-color: var(--altin-sari);
}

.resource-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--yazi-soluk-yesil);
    text-transform: uppercase;
}

.resource-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 4px 0;
}

.resource-speed {
    font-size: 0.75rem;
    color: #2ec4b6;
    font-weight: 600;
}

/* Şehir Bina Kartları */
.building-card {
    background: rgba(15, 32, 23, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.building-card:hover {
    border-color: var(--altin-sari);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.building-title {
    font-family: 'Cinzel', serif;
    color: var(--altin-sari);
    font-weight: 700;
}

.building-desc {
    color: var(--yazi-acik-krem);
    font-size: 0.88rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Rozetler ve Butonlar */
.badge-level {
    background: linear-gradient(135deg, var(--altin-sari), var(--altin-parlak));
    color: #000;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
}

.cost-badge {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #fff;
    font-size: 0.82rem;
    padding: 5px 9px;
    border-radius: 6px;
    display: inline-block;
    margin: 2px;
    font-weight: 700;
}

.loss-badge {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff8585;
    font-size: 0.78rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px;
    font-weight: 600;
}

.kill-badge {
    background: rgba(25, 135, 84, 0.2);
    border: 1px solid rgba(25, 135, 84, 0.5);
    color: #75b798;
    font-size: 0.78rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px;
    font-weight: 600;
}

.btn-gold {
    background: linear-gradient(135deg, var(--altin-sari), #b8860b);
    color: #000;
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f39c12, var(--altin-sari));
    color: #000;
}

.btn-red {
    background: linear-gradient(135deg, #a71e1e, var(--al-kirmizi));
    color: #fff;
    font-weight: 700;
    border: none;
}

.btn-red:hover {
    background: linear-gradient(135deg, #c0392b, #a71e1e);
    color: #fff;
}

.section-header {
    font-family: 'Cinzel', serif;
    color: var(--altin-sari);
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 8px;
}

.sur-banner {
    background: linear-gradient(135deg, rgba(13, 26, 18, 0.95) 0%, rgba(40, 10, 10, 0.95) 100%);
    border: 2px solid #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.25);
}

/* ==========================================================
   MOBİL VE SABİT ALT NAVİGASYON (APP NAVBAR) STİLLERİ
   ========================================================== */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 65px !important;
    background-color: #0d1a12 !important;
    border-top: 2px solid var(--altin-sari) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 99999 !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.9) !important;
    padding: 0 5px !important;
    margin: 0 !important;
}

.bottom-nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #a3b18a !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    flex: 1 !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.bottom-nav a.active, 
.bottom-nav a:hover {
    color: var(--altin-parlak) !important;
}

.bottom-nav .nav-icon-box {
    font-size: 16px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CANLI KANLI YANIP SÖNEN ROZET STİLİ */
.badge-notify {
    background-color: #dc3545;
    color: white;
    font-size: 0.70rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    position: absolute;
    top: 4px;
    right: 18%;
    animation: pulse-red 1.2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* SWEETALERT2 OYUN TEMASI */
.swal2-popup-dark {
    background-color: #0d1a12 !important;
    border: 1px solid var(--altin-sari) !important;
    color: #e0e0e0 !important;
}

.swal2-title-dark {
    color: var(--altin-parlak) !important;
    font-family: 'Cinzel', serif !important;
}
/* Kaynak Ögesi Temel Hizalama */
.header-resources {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1a1e29;
    padding: 8px 16px;
    border-radius: 8px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #e2e8f0;
}

/* Sikke Özel Vurgu Alanı */
.sikke-item {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    color: #fbbf24;
}

.sikke-item .resource-value {
    color: #fef08a;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Sikke Ekle (+ / Mağaza) Butonu */
.btn-sikke-ekle {
    background: #f59e0b;
    color: #111827;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.btn-sikke-ekle:hover {
    background: #fbbf24;
    transform: scale(1.1);
}