/* Global Styles */
:root {
    --primary-color: #7b68ee;
    --primary-dark: #473c8b;
    --primary-light: #9685f4;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --background-color: #1e1e2e;
    --card-bg-color: #2d2d3f;
    --text-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --correct-color: #69b16e;
    --correct-dark: #4d8c51;
    --wrong-color: #e66d65;
    --wrong-dark: #c85752;
    --pass-color: #e0a44c;
    --pass-dark: #be8b41;
    --correct-accent: rgba(105, 177, 110, 0.4);
    --wrong-accent: rgba(230, 109, 101, 0.4);
    --pass-accent: rgba(224, 164, 76, 0.4);
    --correct-glow: rgba(105, 177, 110, 0.3);
    --wrong-glow: rgba(230, 109, 101, 0.3);
    --pass-glow: rgba(224, 164, 76, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#app {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.screen {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0;
}

.screen.active {
    display: flex;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    text-align: center;
    margin-top: 30px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin: 10px 0;
    min-width: 200px;
    text-align: center;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
    background-color: var(--primary-light);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.primary-button:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.secondary-button {
    background: linear-gradient(135deg, var(--card-bg-color), #3d3d55);
}

.secondary-button:hover {
    background: linear-gradient(135deg, #3d3d55, #4d4d65);
}

.reset-button {
    background: linear-gradient(135deg, var(--card-bg-color), #3d3d55);
    margin-top: 20px;
    font-size: 0.9rem;
    padding: 10px 20px;
    min-width: auto;
}

.reset-button:hover {
    background: linear-gradient(135deg, #3d3d55, #4d4d65);
}

/* Start Screen */
.game-instructions {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px var(--shadow-color);
    width: 100%;
}

.game-instructions ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.game-instructions li {
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Game Screen */
.game-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.timer-container {
    background: linear-gradient(145deg, #262638, #2a2a3e);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px var(--shadow-color), 
                inset 2px 2px 5px rgba(255, 255, 255, 0.1),
                inset -2px -2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

#timer {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timer-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.score-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.score-box, .passes-box {
    background: linear-gradient(145deg, #262638, #2a2a3e);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    box-shadow: 0 2px 4px var(--shadow-color),
                inset 1px 1px 3px rgba(255, 255, 255, 0.1),
                inset -1px -1px 3px rgba(0, 0, 0, 0.1);
}

.score-label, .passes-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

#score, #passes {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.word-container {
    background: linear-gradient(145deg, #262638, #2a2a3e);
    border-radius: 12px;
    padding: 30px 20px;
    width: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    box-shadow: 0 4px 8px var(--shadow-color),
                inset 1px 1px 3px rgba(255, 255, 255, 0.1),
                inset -1px -1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.word-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 60%);
    opacity: 0.03;
    top: -50%;
    left: -50%;
    animation: none;
}

@keyframes pulsate {
    0% { opacity: 0.03; }
    50% { opacity: 0.06; }
    100% { opacity: 0.03; }
}

.word {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 10px 20px;
    z-index: 1;
}

.word::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: none;
    bottom: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
}

.controls-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.control-button {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.control-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-button:hover::before {
    opacity: 1;
}

.control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px var(--shadow-color);
}

.control-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.control-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.control-button:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: transform 0s, opacity 0.1s;
}

.continue-button {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border: 2px solid var(--primary-light);
    box-shadow: 0 4px 6px var(--shadow-color), 0 0 15px rgba(123, 104, 238, 0.3);
    font-size: 1.2rem;
    padding: 15px 20px;
    width: 100%;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.continue-button .btn-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.continue-button span {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.continue-button:active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark));
    transform: translateY(2px);
    box-shadow: 0 2px 3px var(--shadow-color);
}

.pause-button {
    background-color: #2196F3;
    border: 2px solid #1976D2;
    box-shadow: 0 4px 6px var(--shadow-color), 0 0 5px rgba(33, 150, 243, 0.4);
}

.pause-button:active {
    background-color: #1976D2;
    transform: translateY(2px);
    box-shadow: 0 2px 3px var(--shadow-color);
}

.correct-button {
    background: var(--correct-color);
    border: 2px solid var(--correct-dark);
    box-shadow: 0 4px 6px var(--shadow-color), 0 0 5px var(--correct-accent);
}

.correct-button .btn-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.correct-button span {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.correct-button:active {
    background: var(--correct-dark);
    transform: translateY(2px);
    box-shadow: 0 2px 3px var(--shadow-color);
}

.wrong-button {
    background: var(--wrong-color);
    border: 2px solid var(--wrong-dark);
    box-shadow: 0 4px 6px var(--shadow-color), 0 0 5px var(--wrong-accent);
}

.wrong-button .btn-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.wrong-button span {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wrong-button:active {
    background: var(--wrong-dark);
    transform: translateY(2px);
    box-shadow: 0 2px 3px var(--shadow-color);
}

.pass-button {
    background: var(--pass-color);
    border: 2px solid var(--pass-dark);
    box-shadow: 0 4px 6px var(--shadow-color), 0 0 5px var(--pass-accent);
}

.pass-button .btn-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.pass-button span {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pass-button:active {
    background: var(--pass-dark);
    transform: translateY(2px);
    box-shadow: 0 2px 3px var(--shadow-color);
}

/* Game Over Screen */
.final-score-container {
    background: linear-gradient(145deg, #262638, #2a2a3e);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0 30px;
    width: 200px;
    height: 200px;
    box-shadow: 0 4px 8px var(--shadow-color),
                inset 2px 2px 5px rgba(255, 255, 255, 0.1),
                inset -2px -2px 5px rgba(0, 0, 0, 0.1);
}

.final-score-label {
    font-size: 1rem;
    margin-bottom: 15px;
}

.final-score {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(123, 104, 238, 0.3);
}

.hidden {
    display: none;
}

/* Media Queries */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
        margin-top: 40px;
    }
    
    #app {
        padding: 30px;
    }
    
    .controls-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .control-button {
        flex: 1;
        min-width: 30%;
    }
    
    .continue-button {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }
    
    .word {
        font-size: 2.8rem;
    }
} 