
/* =====================================
   TYPE RACER
   Interface Stylesheet
   ===================================== */


/* Statistics Dashboard */

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;

    margin-bottom: 25px;
}


.stat-card {
    padding: 17px 20px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 7px;
}


.stat-label {
    display: block;

    margin-bottom: 7px;

    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


.stat-card strong {
    font-family: var(--font-heading);
    font-size: 29px;
    font-weight: 700;
}


/* Typing Section */

.typing-section {
    padding: 25px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}


.typing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}


.eyebrow {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


.typing-header h2 {
    margin-top: 5px;

    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}


#word-counter {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* Target Word */

.word-display {
    margin-bottom: 18px;

    color: var(--text);

    font-family: var(--font-heading);
    font-size: 43px;
    font-weight: 800;
    letter-spacing: 4px;
}


/* Typing Input */

#typing-input {
    width: 100%;
    height: 55px;

    padding: 0 17px;

    background: #090d14;
    border: 1px solid #343e50;
    border-radius: 5px;
    outline: none;

    color: white;

    font-family: var(--font-body);
    font-size: 16px;
    letter-spacing: 1px;

    transition: border-color 0.2s ease;
}


#typing-input:focus {
    border-color: var(--primary);
}


#typing-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.typing-hint {
    margin-top: 12px;

    color: var(--muted);
    font-size: 11px;
}


/* Race Controls */

.controls-section {
    display: flex;
    gap: 12px;

    margin-top: 20px;
}


.controls-section button {
    min-width: 145px;
    height: 46px;

    padding: 0 25px;

    border: none;
    border-radius: 5px;

    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;

    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}


.primary-button {
    background: var(--primary);
    color: white;
}


.primary-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}


.secondary-button {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border) !important;
}


.secondary-button:hover {
    background: #252e3e;
    transform: translateY(-2px);
}


.controls-section button:active {
    transform: translateY(0);
}


/* Responsive Layout */

@media (max-width: 700px) {

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card strong {
        font-size: 25px;
    }

    .typing-section {
        padding: 18px;
    }

    .word-display {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .typing-header h2 {
        font-size: 20px;
    }

    .controls-section button {
        min-width: 0;
        flex: 1;
        padding: 0 12px;
    }

}
