/* Simon Says Styles - Orange/Yellow Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #F59E0B;
    --primary-dark: #D97706;
    --simon-green: #10B981;
    --simon-red: #EF4444;
    --simon-yellow: #FBBF24;
    --simon-blue: #3B82F6;
    --background: #FFFBEB;
    --surface: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #FDE68A;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

header {
    margin-bottom: 25px;
    text-align: center;
}

.back-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
    margin-bottom: 10px;
}

.back-btn:hover {
    color: var(--primary-dark);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-box {
    background: var(--surface);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
    border: 2px solid var(--border-color);
    text-align: center;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
}

.info-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.instructions {
    background: var(--surface);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    text-align: center;
}

#game-status {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.game-board {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 30px;
}

.simon-pad {
    position: absolute;
    width: 180px;
    height: 180px;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid #111827;
}

.simon-pad:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.simon-pad.active {
    filter: brightness(1.5);
    transform: scale(0.98);
    box-shadow: 0 0 30px currentColor;
}

.simon-pad.green {
    top: 0;
    left: 0;
    background: var(--simon-green);
    border-radius: 200px 0 0 0;
}

.simon-pad.red {
    top: 0;
    right: 0;
    background: var(--simon-red);
    border-radius: 0 200px 0 0;
}

.simon-pad.yellow {
    bottom: 0;
    left: 0;
    background: var(--simon-yellow);
    border-radius: 0 0 0 200px;
}

.simon-pad.blue {
    bottom: 0;
    right: 0;
    background: var(--simon-blue);
    border-radius: 0 0 200px 0;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--surface);
    border-radius: 50%;
    border: 5px solid #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.start-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FB923C 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.controls-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Game Over Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    background: var(--surface);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--primary-color);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.overlay-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.stats {
    background: #FEF3C7;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.stats p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.stat-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.overlay-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FB923C 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.overlay-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .game-board {
        width: 320px;
        height: 320px;
    }
    
    .simon-pad {
        width: 145px;
        height: 145px;
    }
    
    .center-circle {
        width: 100px;
        height: 100px;
    }
    
    .start-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .overlay-content {
        margin: 20px;
        padding: 30px 20px;
    }
}
