@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('./root.css');

/* --- Base & Body Styles --- */
body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text);
    user-select: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- Typography & Text Styles --- */
.correct {
    color: var(--color-correct);
}

.incorrect {
    color: var(--color-incorrect);
}

.word-active .correct {
    color: #ffffff; /* Specific override for readability on active word */
}

.word-current {
    background-color: var(--color-surface);
    border-radius: 4px;
}

.word-hidden {
    display: none;
}

/* --- Components --- */
.timer-option {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: all 0.2s;
    cursor: pointer;
}

.timer-option:hover {
    background-color: #4a5568; /* A slightly lighter dark shade */
}

.timer-option.active {
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: bold;
}

.sound-btn.sound-on {
    background-color: var(--color-success);
    color: white;
}

.sound-btn.sound-on:hover {
    background-color: var(--color-success-hover);
}

.sound-btn.sound-off {
    background-color: var(--color-danger);
    color: white;
}

.sound-btn.sound-off:hover {
    background-color: var(--color-danger-hover);
}

.controls-bar {
    background-color: var(--color-surface);
    padding: 0.75rem 1.35rem;
    border-radius: 100px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.separator {
    color: var(--color-text-muted);
    font-size: 2rem;
    font-weight: 100;
    line-height: 1;
}

/* --- Page Transitions & Animations --- */
.wave-transition-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.wave-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-101%); /* Start off-screen */
}

/* Specific colors for the wave animation sequence */
.wave-overlay:nth-child(1) { background-color: #1a1a1a; }
.wave-overlay:nth-child(2) { background-color: #2d3748; }
.wave-overlay:nth-child(3) { background-color: #4a90e2; }
.wave-overlay:nth-child(4) { background-color: #f59e0b; }

#title {
    cursor: pointer;
}

#title:hover {
    animation: title-hover-wiggle 0.5s ease-in-out;
}

@keyframes title-hover-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}
