/* NomadOS - Backpacking Adventure Simulator Mobile CSS */

/* Base styles (mobile-first) */
#app .game-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin: 20px 0;
}

#app .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

#app .header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

#app .header p {
    font-size: 14px;
    opacity: 0.9;
}

#app .resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

#app .resource {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#app .resource-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

#app .resource-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

#app .resource-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

#app .resource-fill {
    height: 100%;
    transition: width 0.3s ease;
}

#app .scene-container {
    padding: 20px;
    min-height: 400px;
}

#app .scene-content {
    line-height: 1.6;
    color: #333;
}

#app .scene-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

#app .flashback {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-style: italic;
    color: #e65100;
}

#app .choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
}

#app .choice-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
}

#app .choice-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#app .choice-btn:active {
    transform: translateY(0);
}

#app .choice-icon {
    margin-right: 12px;
    font-size: 20px;
}

#app .controls {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

#app .control-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#app .reset-btn {
    background: #f44336;
    color: white;
}

#app .reset-btn:hover {
    background: #d32f2f;
}

#app .save-btn {
    background: #4caf50;
    color: white;
}

#app .save-btn:hover {
    background: #388e3c;
}

#app .location-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 15px;
}

#app .date-badge {
    background: #764ba2;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 15px;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    #app {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
    }

    #app .header h1 {
        font-size: 32px;
    }

    #app .scene-content p {
        font-size: 18px;
    }

    #app .choice-btn {
        padding: 18px 24px;
        font-size: 18px;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    #app {
        padding: 10px;
    }

    #app .header h1 {
        font-size: 24px;
    }

    #app .scene-content p {
        font-size: 15px;
    }

    #app .choice-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}
