/* =================================================================
   UNDERGROUND FARMER - SETTINGS STYLES
   ================================================================= */

/* =================================================================
   1. SETTINGS AND CHEATS BUTTONS (replaces language selector)
   ================================================================= */
.settings-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.settings-btn, .cheats-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid;
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
}

.settings-btn {
    background: linear-gradient(135deg, #654321, #8b4513);
    border-color: #8b4513;
    color: #f5deb3;
}

.cheats-btn {
    background: linear-gradient(135deg, #ff4444, #cc3333);
    border-color: #ff4444;
}

.settings-btn:hover {
    background: linear-gradient(135deg, #8b4513, #cd853f);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.cheats-btn:hover {
    background: linear-gradient(135deg, #ff6666, #ff4444);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.settings-icon {
    font-size: 16px;
    animation: settingsRotate 4s linear infinite;
}

.cheats-icon {
    font-size: 16px;
    animation: cheatsGlow 2s ease-in-out infinite alternate;
}

@keyframes settingsRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes cheatsGlow {
    from { 
        text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
    }
    to { 
        text-shadow: 0 0 15px rgba(255, 68, 68, 1);
    }
}

.settings-text, .cheats-text {
    font-weight: bold;
}

/* =================================================================
   2. SETTINGS DIALOG
   ================================================================= */
.settings-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: settingsDialogAppear 0.3s ease-out;
}

@keyframes settingsDialogAppear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.settings-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.settings-content {
    position: relative;
    background: linear-gradient(145deg, #2c1810, #1a0f0a);
    border: 3px solid #8b4513;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 400px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: settingsContentSlide 0.3s ease-out;
}

@keyframes settingsContentSlide {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* =================================================================
   3. SETTINGS HEADER
   ================================================================= */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 2px solid #8b4513;
    background: linear-gradient(135deg, #654321, #8b4513);
}

.settings-header h3 {
    color: #f5deb3;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.settings-close-btn {
    background: none;
    border: none;
    color: #f5deb3;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.settings-close-btn:hover {
    background: rgba(245, 222, 179, 0.2);
}

/* =================================================================
   4. SETTINGS BODY
   ================================================================= */
.settings-body {
    padding: 20px 25px;
    color: #e0d0c0;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h4 {
    color: #daa520;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 15px 0;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h4::before {
    content: "▶";
    color: #8b4513;
}

/* =================================================================
   5. LANGUAGE BUTTONS
   ================================================================= */
.settings-language-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lang-btn {
    background: linear-gradient(135deg, #654321, #8b4513);
    border: 2px solid #8b4513;
    border-radius: 8px;
    color: #f5deb3;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
    flex: 1;
    min-width: 110px;
}

.lang-btn:hover {
    background: linear-gradient(135deg, #8b4513, #cd853f);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.lang-btn.active {
    background: linear-gradient(135deg, #daa520, #ffd700);
    color: #2c1810;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.lang-btn.active:hover {
    background: linear-gradient(135deg, #ffd700, #ffec8c);
}

/* =================================================================
   6. SETTINGS OPTIONS
   ================================================================= */
.settings-option {
    margin-bottom: 15px;
}

.settings-option label {
    display: block;
    color: #e0d0c0;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

/* =================================================================
   7. CUSTOM CHECKBOX
   ================================================================= */
.settings-checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.settings-checkbox input[type="checkbox"] {
    display: none;
}

.settings-checkbox .checkmark {
    width: 20px;
    height: 20px;
    background: #654321;
    border: 2px solid #8b4513;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.settings-checkbox input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #daa520, #ffd700);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.settings-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #2c1810;
    font-size: 14px;
    font-weight: bold;
}

/* =================================================================
   8. SELECT DROPDOWN
   ================================================================= */
.settings-option select {
    background: linear-gradient(135deg, #654321, #8b4513);
    border: 2px solid #8b4513;
    border-radius: 6px;
    color: #f5deb3;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.settings-option select:hover {
    background: linear-gradient(135deg, #8b4513, #cd853f);
    border-color: #cd853f;
}

.settings-option select:focus {
    outline: none;
    border-color: #daa520;
    box-shadow: 0 0 8px rgba(218, 165, 32, 0.3);
}

.settings-option select option {
    background: #2c1810;
    color: #e0d0c0;
    padding: 5px;
}

/* =================================================================
   9. VOLUME CONTROL
   ================================================================= */
.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-control input[type="range"] {
    flex: 1;
    height: 6px;
    background: #654321;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #daa520, #ffd700);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    background: linear-gradient(135deg, #ffd700, #ffec8c);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #daa520, #ffd700);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#volume-display {
    color: #daa520;
    font-weight: bold;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

/* =================================================================
   10. SETTINGS FOOTER
   ================================================================= */
.settings-footer {
    padding: 15px 25px 20px;
    border-top: 2px solid #8b4513;
    background: linear-gradient(135deg, rgba(101, 67, 33, 0.3), rgba(139, 69, 19, 0.3));
    text-align: center;
}

.settings-save-btn {
    background: linear-gradient(135deg, #228b22, #32cd32);
    border: 2px solid #32cd32;
    border-radius: 8px;
    color: #ffffff;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
    min-width: 120px;
}

.settings-save-btn:hover {
    background: linear-gradient(135deg, #32cd32, #98fb98);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

.settings-save-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* =================================================================
   11. RESPONSIVE DESIGN
   ================================================================= */
@media (max-width: 768px) {
    .settings-content {
        min-width: 320px;
        max-width: 90vw;
        margin: 20px;
    }

    .settings-header {
        padding: 15px 20px 10px;
    }

    .settings-body {
        padding: 15px 20px;
    }

    .settings-footer {
        padding: 10px 20px 15px;
    }

    .settings-language-buttons {
        flex-direction: column;
    }

    .lang-btn {
        min-width: auto;
    }

    .settings-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .settings-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .settings-content {
        min-width: 280px;
        max-width: 95vw;
    }

    .settings-header h3 {
        font-size: 16px;
    }

    .settings-section h4 {
        font-size: 14px;
    }
}

/* =================================================================
   12. SCROLLBAR STYLES
   ================================================================= */
.settings-content::-webkit-scrollbar {
    width: 8px;
}

.settings-content::-webkit-scrollbar-track {
    background: #2c1810;
    border-radius: 4px;
}

.settings-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #654321, #8b4513);
    border-radius: 4px;
}

.settings-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b4513, #cd853f);
} 