/* Color Palette */
:root {
    --bg-dark: #1a1a1a;
    --bg-warm: #2a1f1a;
    --gold-accent: #d4af37;
    --warm-peach: #e8a87c;
    --text-white: #ffffff;
    --text-gold: #c9a876;
    --text-warm: #f4e6d7;
    --overlay-dark: rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-warm) 100%);
    color: var(--text-white);
    line-height: 1.6;
}

.main-container {
    width: 100%;
    /* max-width: 800px; */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0 auto;
    /* padding: 20px; */
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.user-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.user-card h2 {
    margin-top: 0;
    color: var(--text-gold);
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Health Bar Styles */
.health-bar-container {
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    /* padding: 10px; */
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
    width: 100%;
    margin: 2rem 0;
}

.health-bar {
    display: flex;
    gap: 1px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.segment {
    flex: 1;
    min-width: 0;
    height: 40px;
    background-color: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.segment.filled {
    background-color: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

.segment.freeze-used {
    background-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

.segment:hover {
    transform: scaleY(1.2);
}

.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0.5rem 0 1.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.legend-item {
    display: inline-flex;
    align-items: center;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--gold-accent);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-unit {
    font-size: 1rem;
    color: #666;
}

/* Freeze Info Box */
.freeze-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.freeze-count {
    font-size: 2.5rem;
    color: var(--gold-accent);
    font-weight: bold;
    margin: 0.5rem 0;
}

.freeze-details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Streak Display */
.streak-display {
    font-size: 1.3rem;
    color: #666;
    margin: 1.5rem 0;
    font-weight: 500;
}

.streak-count {
    color: var(--gold-accent);
    font-weight: bold;
    font-size: 1.6rem;
}

/* Buttons */
button {
    font-size: 1.4rem;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 250px;
    font-weight: 600;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.active {
    background: linear-gradient(135deg, #ffc107 0%, #f39c12 100%);
    color: white;
}

.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5);
}

.disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

/* Messages */
.message {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    min-height: 1.5rem;
    font-weight: 500;
}

.success {
    color: var(--gold-accent);
}

.error {
    color: #f44336;
}

.loading {
    color: #666666;
}

.last-checkin {
    font-size: 1rem;
    color: #888;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }

    .user-card {
        padding: 2rem;
    }

    .user-card h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .freeze-count {
        font-size: 2rem;
    }

    button {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        display: unset
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .user-card {
        padding: 1.5rem;
    }

    .health-bar {
        gap: 1px;
    }

    .segment {
        width: 6px;
        height: 30px;
    }

    .legend {
        font-size: 0.8rem;
        gap: 20px;
    }

    button {
        min-width: 200px;
        font-size: 1.1rem;
    }
}