/* === WASTELAND SETTLEMENT - MODULAR STYLES === */
/* This file imports all component stylesheets */

@import url('components/base.css');
@import url('components/topbar.css');
@import url('components/sidebar.css');
@import url('components/button.css');
@import url('components/settlement.css');
@import url('components/inventory.css');
@import url('components/combat.css');
@import url('components/character-creator.css');
@import url('components/quest.css');
@import url('components/achievement.css');
@import url('components/craft.css');
@import url('components/modal.css');
@import url('components/title-screen.css');
@import url('components/intro-cutscene.css');
@import url('components/map.css');

/* === GAME MENU & SAVE/LOAD FIXES (User Requested) === */

/* 1. Game Menu Overlay (Pause Menu) */
#game-menu-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

/* FIX: Ensure Inputs can track caret correctly on Mobile Landscape */
input, textarea {
    -webkit-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    -webkit-user-modify: read-write-plaintext-only !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: left !important;
    touch-action: manipulation !important;
}

/* 3. FORCE AUDIO BUTTON CONSISTENCY (User Requested) */
/* Takes priority over button.css and title-screen.css */
.audio-mute-button {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 2px solid #334155 !important;
    border-radius: 8px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    color: #cbd5e1 !important;
    /* Icon color */
}

.audio-mute-button:hover {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

/* Ensure no red background sneaks in */
.audio-mute-button.muted,
.audio-mute-button[data-muted="true"] {
    background: rgba(30, 41, 59, 0.6) !important;
}

/* Overrides for in-game save slots to ensure they match main menu */
.save-slot-item {
    background: rgba(30, 41, 59, 0.5) !important;
    border: 2px solid #334155 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.save-slot-item:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
    transform: translateX(5px) !important;
}

.save-slot-button {
    background: transparent !important;
    border: none !important;
    text-align: left !important;
    padding: 0 !important;
    width: 100% !important;
    cursor: pointer !important;
}

.save-slot-header {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
    border-bottom: none !important;
}

.save-slot-label {
    font-weight: 700 !important;
    color: #3b82f6 !important;
    font-size: 1.1rem !important;
    text-transform: none !important;
}

.save-slot-name {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.save-slot-info {
    font-size: 0.9rem !important;
    color: #94a3b8 !important;
    line-height: normal !important;
}

.save-slot-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.save-action-button {
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-transform: none !important;
    border: 1px solid transparent !important;
}

.save-action-button.export {
    background: rgba(59, 130, 246, 0.2) !important;
    border: 1px solid #3b82f6 !important;
    color: #3b82f6 !important;
}

.save-action-button.import {
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid #10b981 !important;
    color: #10b981 !important;
}

.save-action-button.delete {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid #ef4444 !important;
    color: #ef4444 !important;
}

/* 3. MENU OVERLAY FIXES */
/* Previously targeted .save-load-content, now using ID-based modals (#game-save-overlay, etc) */
/* Styling is handled by .title-modal class */

.save-load-list,
.settings-list {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px !important;
}