/* =============================================
   FETİH - MOBİL STİLLER
   Sadece mobil cihazlar için (max-width: 768px)
   ============================================= */

/* =============================================
   TABLET (768px - 1024px)
   ============================================= */
@media screen and (max-width: 1024px) {
    .game-layout {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
        max-width: none;
        min-height: auto;
        padding: 10px;
    }
    
    .main-panel {
        width: 100%;
        padding: 10px;
    }
    
    #difficulty-select-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Header responsive - tablet */
    .header-row {
        padding: 0 10px;
        gap: 8px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .resources {
        gap: 8px;
    }
    
    .resource {
        padding: 5px 10px;
        gap: 4px;
    }
    
    .resource .icon {
        font-size: 14px;
    }
    
    .resource .amount {
        font-size: 12px;
    }
    
    .resource .rate,
    .resource .label {
        font-size: 9px;
    }
}

/* =============================================
   TELEFON (max 768px)
   ============================================= */
@media screen and (max-width: 768px) {
    /* Header - mobilde sadeleştirilmiş */
    .header-row {
        padding: 0 10px;
        height: 50px;
    }
    
    .header-center {
        display: none; /* Mobilde menü alt barda */
    }
    
    /* Mobilde ülke bilgisi kompakt */
    .my-country-header {
        padding: 4px 10px;
        gap: 6px;
    }
    
    .header-country-icon {
        font-size: 18px;
    }
    
    .header-country-name {
        font-size: 12px;
    }
    
    .header-country-stats {
        font-size: 10px;
    }
    
    .resources {
        gap: 6px;
    }
    
    .resource {
        padding: 4px 8px;
        border-radius: 12px;
    }
    
    .resource .amount {
        font-size: 11px;
    }
    
    .resource .rate,
    .resource .label {
        display: none;
    }
    
    :root {
        --header-total-height: 50px;
    }
    /* Genel */
    body {
        font-size: 14px;
    }
    
    #game-container {
        padding: 5px;
    }
    
    /* ===== BAŞLANGIÇ EKRANLARI ===== */
    .screen {
        padding: 15px;
    }
    
    .screen-content {
        padding: 10px;
        width: 100%;
    }
    
    .screen-content h1 {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .screen-content h2 {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    /* ===== ANA MENÜ ===== */
    .main-menu-content {
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
        box-sizing: border-box;
    }
    
    .game-logo {
        margin-bottom: 30px;
    }
    
    .game-logo .logo-icon {
        font-size: 50px;
        margin-bottom: 10px;
    }
    
    .game-logo h1 {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .game-logo h2 {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .menu-buttons {
        width: 100%;
        max-width: 280px;
        gap: 10px;
    }
    
    .menu-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .menu-footer {
        margin-top: 25px;
    }
    
    .menu-footer p {
        font-size: 11px;
    }
    
    /* ===== ZORLUK SEÇİMİ ===== */
    #difficulty-select-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
        width: 100%;
        padding: 10px;
    }
    
    .difficulty-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 18px 15px;
        border-radius: 12px;
        border-width: 2px;
        width: 100%;
        box-sizing: border-box;
        min-height: 85px;
    }
    
    .difficulty-card .diff-icon {
        font-size: 44px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .difficulty-card .diff-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .difficulty-card .diff-title {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .difficulty-card .diff-desc {
        font-size: 12px;
        margin-bottom: 6px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .difficulty-card .diff-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 11px;
        padding: 0;
        background: none;
    }
    
    .difficulty-card .diff-stats div {
        margin: 0;
        white-space: nowrap;
    }
    
    .btn-back {
        margin-top: 15px;
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* ===== ÜLKE SEÇİMİ ===== */
    #country-select-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-height: 60vh;
        padding: 10px;
        overflow-y: auto;
        width: 100%;
    }
    
    .select-country-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px 15px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        gap: 15px;
    }
    
    .select-country-card .flag {
        font-size: 40px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .select-country-card .card-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        flex: 1;
    }
    
    .select-country-card .name {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .select-country-card .stats {
        display: flex;
        gap: 12px;
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .select-country-card .stats .stat {
        opacity: 0.9;
    }
    
    .select-country-card .bonus {
        font-size: 11px;
        color: #f1c40f;
        opacity: 0.9;
    }
    
    .select-country-card .info {
        font-size: 12px;
        opacity: 0.8;
    }
    
    /* ===== TUTORIAL ===== */
    .tutorial-content {
        max-height: 90vh;
        width: 95%;
        border-radius: 15px;
    }
    
    .tutorial-header {
        padding: 12px 15px;
    }
    
    .tutorial-header h1 {
        font-size: 16px;
    }
    
    .tutorial-steps {
        padding: 15px;
    }
    
    .tutorial-step h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .tutorial-step p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .tutorial-step .tip,
    .tutorial-step .warning {
        padding: 10px;
        font-size: 12px;
    }
    
    .tutorial-nav {
        padding: 12px 15px;
    }
    
    .tutorial-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    /* ===== ZAFER EKRANI ===== */
    .victory-content {
        padding: 20px;
    }
    
    .victory-crown {
        font-size: 60px;
    }
    
    .victory-content h1 {
        font-size: 24px;
        margin: 10px 0 5px 0;
    }
    
    .victory-content h2 {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .victory-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .victory-stat .stat-icon {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .victory-stat .stat-value {
        font-size: 18px;
    }
    
    .victory-stat .stat-label {
        font-size: 10px;
    }
    
    .victory-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .victory-buttons .menu-btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* ===== CREDITS ===== */
    .credits-content {
        padding: 20px;
    }
    
    .credits-content h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .credits-info {
        padding: 20px;
    }
    
    .credits-info p {
        font-size: 14px;
    }
    
    /* ===== SOL PANEL ===== */
    .left-panel {
        padding: 8px;
    }
    
    .player-country {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .country-flag {
        font-size: 28px;
    }
    
    .country-name {
        font-size: 14px;
    }
    
    .stats-bar {
        padding: 8px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .stat-item {
        font-size: 11px;
        min-width: 60px;
    }
    
    /* ===== TAB BUTONLARI ===== */
    .tab-buttons {
        gap: 3px;
        padding: 4px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 6px 8px;
        font-size: 18px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 40px;
        min-height: 40px;
    }
    
    /* Tab butonlarında sadece emoji göster */
    .tab-btn span {
        display: none;
    }
    
    /* ===== ANA PANEL ===== */
    .main-panel {
        padding: 8px;
    }
    
    .main-panel h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .main-panel h3 {
        font-size: 14px;
    }
    
    /* ===== BİRİMLER ===== */
    .units-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .unit-card {
        padding: 8px;
    }
    
    .unit-card .icon {
        font-size: 24px;
    }
    
    .unit-card .name {
        font-size: 11px;
    }
    
    .unit-card .stats {
        font-size: 9px;
    }
    
    .unit-card button {
        padding: 5px;
        font-size: 10px;
        min-height: 32px;
    }
    
    /* ===== HARİTA ===== */
    .hex-map-container {
        max-height: 45vh;
        overflow: hidden;
        touch-action: none; /* Pinch zoom için */
    }
    
    .hex-map-container .hex-map {
        transition: transform 0.1s ease-out;
        transform-origin: center center;
    }
    
    .map-view-controls {
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 10px;
    }
    
    .view-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .map-bottom-bar {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }
    
    .map-zoom-slider {
        width: 120px;
    }
    
    .zoom-label {
        font-size: 11px;
    }
    
    .map-reset-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .hex-legend-bar {
        gap: 8px;
        font-size: 10px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .hex-legend-bar .legend-item {
        font-size: 10px;
    }
    
    /* ===== ÜLKELER LİSTESİ ===== */
    .countries-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .country-card {
        padding: 10px;
    }
    
    .country-flag-large {
        font-size: 24px;
    }
    
    /* ===== DİPLOMASİ ===== */
    .diplomacy-section {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .pact-members {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .pact-member {
        padding: 6px;
        font-size: 20px;
    }
    
    /* ===== ÜRETİM ===== */
    .factory-card {
        padding: 10px;
    }
    
    .factory-icon {
        font-size: 24px;
    }
    
    /* ===== ARAŞTIRMA ===== */
    .research-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .research-card {
        padding: 10px;
    }
    
    /* ===== KAYNAKLAR ===== */
    .resource-item {
        padding: 8px;
    }
    
    .resource-item .icon {
        font-size: 18px;
    }
    
    /* ===== BİLDİRİM PANELİ ===== */
    #notification-toggle {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    #notification-panel {
        width: 100%;
        right: -100%;
    }
    
    #notification-panel.open {
        right: 0;
    }
    
    .notification-panel-header {
        padding: 12px 15px;
    }
    
    .notification-panel-header h3 {
        font-size: 14px;
    }
    
    /* Bildirimler sekmesi mobil düzeltmesi */
    .notifications-container {
        max-height: calc(100vh - 250px);
        gap: 15px !important;
        padding: 10px !important;
    }
    
    .notifications-container .notification-item {
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .notification-item .notification-header {
        padding: 12px 15px !important;
    }
    
    .notification-item .notification-body {
        padding: 12px 15px !important;
    }
    
    .notification-item .notification-body pre {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    /* ===== DEV PANEL ===== */
    #dev-toggle {
        top: 8px;
        left: 8px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    #dev-panel {
        width: calc(100% - 16px);
        left: 8px;
        max-height: 70vh;
        top: 50px;
    }
    
    .dev-section {
        margin-bottom: 10px;
    }
    
    .dev-section h4 {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .dev-section button {
        padding: 5px 8px;
        font-size: 10px;
        margin: 2px;
    }
    
    /* ===== MODALLAR ===== */
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-large {
        max-width: 100%;
        width: 100%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* =============================================
   KÜÇÜK TELEFON (max 480px)
   ============================================= */
@media screen and (max-width: 480px) {
    /* Zorluk seçimi daha da küçük */
    #difficulty-select-grid {
        gap: 6px;
    }
    
    .difficulty-card {
        padding: 8px;
    }
    
    .difficulty-card .diff-icon {
        font-size: 20px;
    }
    
    .difficulty-card .diff-title {
        font-size: 11px;
    }
    
    .difficulty-card .diff-desc {
        font-size: 8px;
        -webkit-line-clamp: 1;
    }
    
    .difficulty-card .diff-stats {
        font-size: 8px;
        padding: 4px;
    }
    
    /* Ülke seçimi */
    #country-select-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .select-country-card .flag {
        font-size: 24px;
    }
    
    .select-country-card .name {
        font-size: 9px;
    }
    
    .select-country-card .info {
        display: none;
    }
    
    /* Birimler tek sütun */
    .units-grid {
        grid-template-columns: 1fr;
    }
    
    /* Pakt üyeleri */
    .pact-members {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Logo daha küçük */
    .game-logo .logo-icon {
        font-size: 40px;
    }
    
    .game-logo h1 {
        font-size: 26px;
    }
    
    .game-logo h2 {
        font-size: 12px;
    }
    
    /* Zafer istatistikleri */
    .victory-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* =============================================
   DOKUNMATIK CİHAZ OPTİMİZASYONU
   ============================================= */
@media (hover: none) and (pointer: coarse) {
    /* Hover efektlerini kaldır */
    .unit-card:hover,
    .country-card:hover,
    .difficulty-card:hover,
    .select-country-card:hover,
    .menu-btn:hover,
    .hex-btn:hover,
    .view-btn:hover {
        transform: none;
    }
    
    /* Tıklanabilir alanları büyüt */
    button, 
    .btn, 
    .tab-btn,
    .menu-btn,
    .view-btn {
        min-height: 44px;
    }
    
    /* Smooth scroll */
    .tab-buttons,
    #country-select-grid,
    #difficulty-select-grid,
    .countries-grid,
    .hex-map-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Aktif durumda feedback */
    button:active,
    .btn:active,
    .menu-btn:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

/* =============================================
   LANDSCAPE (Yatay Mod) DÜZELTME
   ============================================= */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .main-menu-content {
        padding: 10px;
    }
    
    .game-logo {
        margin-bottom: 15px;
    }
    
    .game-logo .logo-icon {
        font-size: 30px;
    }
    
    .game-logo h1 {
        font-size: 24px;
    }
    
    .game-logo h2 {
        font-size: 12px;
    }
    
    .menu-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        max-width: 100%;
    }
    
    .menu-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    #difficulty-select-grid {
        grid-template-columns: repeat(4, 1fr);
        max-height: 60vh;
        overflow-y: auto;
    }
    
    #country-select-grid {
        grid-template-columns: repeat(5, 1fr);
        max-height: 50vh;
    }
    
    .tutorial-content {
        max-height: 95vh;
    }
}

/* Double click/tap devre dışı bırak */
* {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Sadece harita için pinch zoom izin ver */
#world-map, .hex-map-container {
    touch-action: none; /* JS ile kontrol ediyoruz */
}

/* =============================================
   MOBİL ÜRETİM VE ORDU DÜZELTMELERİ
   ============================================= */
@media screen and (max-width: 768px) {
    /* Üretim kaynak grid - mobil responsive */
    .resource-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    
    .resource-card {
        flex-wrap: wrap;
        padding: 10px;
        gap: 8px;
    }
    
    .res-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3em;
    }
    
    .res-info {
        flex: 1;
        min-width: 60px;
    }
    
    .res-name {
        font-size: 0.8em;
    }
    
    .res-amount {
        font-size: 1em;
    }
    
    .res-rate {
        font-size: 0.7em;
    }
    
    /* Satış bölümü mobil */
    .res-sell {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        width: 100%;
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .sell-price {
        font-size: 0.75em;
        white-space: nowrap;
    }
    
    .sell-buttons {
        display: flex;
        gap: 4px;
        flex-wrap: nowrap;
    }
    
    .btn-sell, .btn-sell-all {
        padding: 6px 10px;
        font-size: 0.75em;
        min-width: 36px;
    }
    
    /* Askeri birimler - tam görünüm */
    .unit-category {
        margin-bottom: 15px;
    }
    
    .unit-category h3 {
        font-size: 14px;
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .units-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .unit-card {
        display: flex !important;
        flex-direction: column !important;
        padding: 12px !important;
        background: linear-gradient(135deg, rgba(52, 73, 94, 0.6), rgba(44, 62, 80, 0.4)) !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .unit-card .header {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 8px !important;
    }
    
    .unit-card .header .icon {
        font-size: 28px !important;
    }
    
    .unit-card .header .name {
        font-size: 14px !important;
        font-weight: bold !important;
    }
    
    .unit-card .stats {
        display: flex !important;
        gap: 12px !important;
        font-size: 12px !important;
        color: rgba(255,255,255,0.7) !important;
        margin-bottom: 8px !important;
    }
    
    .unit-card .price {
        font-size: 13px !important;
        color: #f1c40f !important;
        margin-bottom: 6px !important;
    }
    
    .unit-card .owned {
        font-size: 12px !important;
        color: #2ecc71 !important;
        margin-bottom: 10px !important;
    }
    
    .unit-card .buttons {
        display: flex !important;
        gap: 8px !important;
    }
    
    .unit-card .buttons button {
        flex: 1 !important;
        padding: 10px !important;
        font-size: 13px !important;
        font-weight: bold !important;
        border-radius: 6px !important;
        min-height: 40px !important;
    }
    
    /* Fabrika kartları mobil */
    .factory-card {
        padding: 12px;
    }
    
    .factory-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .factory-info h4 {
        font-size: 14px;
    }
    
    .factory-stats {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .factory-stat {
        font-size: 11px;
    }
    
    /* Üretim merkezi header */
    .production-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .prod-stat {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* =============================================
   MOBİL İSTATİSTİKLER SEKMESİ
   ============================================= */
@media screen and (max-width: 768px) {
    /* Tab-stats genel stili */
    #tab-stats {
        padding: 10px;
    }
    
    #tab-stats h2 {
        color: #f0e68c;
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    #tab-stats h3 {
        color: #9ecaed;
        font-size: 14px;
        margin-bottom: 10px;
        border-bottom: 1px solid #444;
        padding-bottom: 5px;
    }
    
    .mobile-stats-section {
        background: rgba(0,0,0,0.3);
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .mobile-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .mobile-stat-card {
        background: linear-gradient(135deg, rgba(44, 83, 100, 0.6), rgba(15, 52, 96, 0.6));
        border: 1px solid #3498db;
        border-radius: 8px;
        padding: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-stat-card .stat-icon {
        font-size: 24px;
    }
    
    .mobile-stat-card .stat-content {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-stat-card .stat-value {
        font-size: 20px;
        font-weight: bold;
        color: #f0e68c;
    }
    
    .mobile-stat-card .stat-label {
        font-size: 11px;
        color: #9ecaed;
    }
    
    /* Araştırma durumu */
    #mobile-active-research .no-research {
        color: #888;
        font-style: italic;
        text-align: center;
        padding: 10px;
    }
    
    #mobile-active-research .research-item {
        background: rgba(155, 89, 182, 0.2);
        border: 1px solid #9b59b6;
        border-radius: 6px;
        padding: 10px;
    }
    
    #mobile-active-research .research-name {
        font-weight: bold;
        color: #d0a9f5;
        margin-bottom: 5px;
    }
    
    #mobile-active-research .research-progress {
        background: #333;
        height: 6px;
        border-radius: 3px;
        overflow: hidden;
    }
    
    #mobile-active-research .research-progress-fill {
        background: #9b59b6;
        height: 100%;
        transition: width 0.3s ease;
    }
    
    /* Anlaşmalar listesi */
    #mobile-treaties-list .no-treaties {
        color: #888;
        font-style: italic;
        text-align: center;
        padding: 10px;
    }
    
    #mobile-treaties-list .treaty-item {
        background: rgba(39, 174, 96, 0.2);
        border: 1px solid #27ae60;
        border-radius: 6px;
        padding: 8px 10px;
        margin-bottom: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    #mobile-treaties-list .treaty-item:last-child {
        margin-bottom: 0;
    }
    
    #mobile-treaties-list .treaty-country {
        color: #9ecaed;
        font-weight: bold;
    }
    
    #mobile-treaties-list .treaty-type {
        color: #27ae60;
        font-size: 12px;
    }
    
    /* Lobiler listesi */
    #mobile-lobbies-list .no-lobbies {
        color: #888;
        font-style: italic;
        text-align: center;
        padding: 10px;
    }
    
    #mobile-lobbies-list .lobby-item {
        background: rgba(231, 76, 60, 0.2);
        border: 1px solid #e74c3c;
        border-radius: 6px;
        padding: 10px;
        margin-bottom: 6px;
    }
    
    #mobile-lobbies-list .lobby-item:last-child {
        margin-bottom: 0;
    }
    
    #mobile-lobbies-list .lobby-target {
        color: #e74c3c;
        font-weight: bold;
    }
    
    #mobile-lobbies-list .lobby-timer {
        font-size: 12px;
        color: #f39c12;
        margin-top: 5px;
    }
    
    #mobile-lobbies-list .lobby-progress {
        background: #333;
        height: 4px;
        border-radius: 2px;
        overflow: hidden;
        margin-top: 5px;
    }
    
    #mobile-lobbies-list .lobby-progress-fill {
        background: #e74c3c;
        height: 100%;
        transition: width 0.3s ease;
    }
}

@media screen and (max-width: 480px) {
    /* Çok küçük ekranlar için */
    .resource-card {
        padding: 8px;
    }
    
    .res-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1em;
    }
    
    .sell-buttons {
        gap: 3px;
    }
    
    .btn-sell, .btn-sell-all {
        padding: 5px 8px;
        font-size: 0.7em;
        min-width: 32px;
    }
    
    .unit-card .buttons button {
        padding: 8px !important;
        font-size: 12px !important;
    }
    
    /* Küçük ekranlarda mobil stat kartları */
    .mobile-stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .mobile-stat-card .stat-value {
        font-size: 18px;
    }
}

/* =============================================
   HATA BİLDİRİMİ MOBİL
   ============================================= */
@media screen and (max-width: 768px) {
    .bug-report-modal {
        max-width: 100%;
        width: 100%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .bug-report-modal h2 {
        font-size: 18px;
    }
    
    .bug-form .form-group {
        margin-bottom: 12px;
    }
    
    .bug-form select,
    .bug-form input,
    .bug-form textarea {
        padding: 12px;
        font-size: 16px; /* iOS zoom engellemek için */
    }
    
    .bug-actions {
        flex-direction: column;
    }
    
    .bug-actions .btn-cancel,
    .bug-actions .btn-submit {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
    
    .device-preview-content {
        font-size: 10px;
    }
    
    .bug-report-info {
        font-size: 13px;
        padding: 10px 12px;
    }
}
