/* Main Styles - Dao of the Endless Sky */

:root {
    /* Design System Colors — base (overridden by ui.css for visual polish) */
    --primary-bg: #0f0e17;
    --secondary-bg: #1a1625;
    --accent-color: #C084FC;
    --text-color: #FAFAFA;
    --secondary-text: #A1A1AA;
    
    /* Component Colors */
    --success-color: #22C55E;  /* HP bar green */
    --mana-color: #06B6D4;     /* Qi bar cyan */
    --exp-color: #F59E0B;      /* EXP bar amber */
    --danger-color: #EF4444;
    --border-color: rgba(192, 132, 252, 0.2);
    
    /* Typography */
    --font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    --font-size-base: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

#game-container {
    width: 100%;
    height: 100vh;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

header {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

/* Panels */
.panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Progress Bars */
.progress-bar {
    height: 25px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

/* Event Log */
.log-container {
    max-height: 150px;
    overflow-y: auto;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 10px;
}

.log-message {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.log-message:last-child {
    border-bottom: none;
}

.log-timestamp {
    color: var(--secondary-text);
    font-size: 12px;
    margin-right: 8px;
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Responsive Design - Mobile Friendly */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .panel {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .progress-bar {
        height: 20px;
    }
    
    .progress-text,
    .bar-text {
        font-size: 12px;
    }
    
    .log-container {
        max-height: 120px;
        font-size: 13px;
    }
}

/* Generic Progress Fill */
.progress-fill {
    background: linear-gradient(90deg, var(--accent-color) 0%, #ffed4e 50%, var(--accent-color) 100%);
}

.progress-text,
.bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.subtitle {
    color: var(--secondary-text);
    font-size: 1.1rem;
}

main {
    flex: 1;
    background: var(--secondary-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    main {
        padding: 15px;
    }
}
