/* Skyblue Keyboard Theme Typing Test Styles */
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --skyblue-primary: #38bdf8;
    --skyblue-light: #7dd3fc;
    --skyblue-dark: #0ea5e9;
    --skyblue-bg: #f0f9ff;
    --skyblue-card: #e0f2fe;
    --skyblue-hover: #bae6fd;
    
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #64748b;
    
    --shadow-soft: 0 2px 8px rgba(56, 189, 248, 0.1);
    --shadow-medium: 0 4px 12px rgba(56, 189, 248, 0.15);
}

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

body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
}


header.entry-header {
    max-width: 1000px;
    margin: 30px auto;
}

/* Main Container */
#typing-test-container {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
}

/* Keyboard-inspired Controls */
.ttm-controls {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 20px 30px;
    background: white;
    border-radius: 16px 16px 0 0;
}

.ttm-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 600;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--skyblue-primary);
    box-shadow: var(--shadow-soft);
    min-width: 120px;
    text-align: center;
}

.ttm-mode-selector,
.ttm-level-selector {
    position: relative;
}

.ttm-mode-selector select,
.ttm-level-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--skyblue-card);
    background: white;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ttm-mode-selector select:focus,
.ttm-level-selector select:focus {
    border-color: var(--skyblue-primary);
    outline: none;
}

.ttm-close-btn {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

/* Test Area */
.ttm-test-area {
    padding: 30px;
    background: white;
}

.ttm-text-display {
    background: var(--skyblue-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1.6;
    min-height: 150px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dark);
    border: 2px solid var(--skyblue-card);
}

.ttm-typing-input {
    width: 100%;
    height: 120px;
    padding: 20px;
    border: 2px solid var(--skyblue-card);
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    font-family: 'JetBrains Mono', monospace;
    background: white;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.ttm-typing-input:focus {
    outline: none;
    border-color: var(--skyblue-primary);
    background: var(--skyblue-bg);
}

.ttm-personality {
    text-align: right;
    color: var(--text-gray);
    margin-top: 10px;
    font-size: 14px;
    font-style: italic;
}

/* Completion */
.ttm-completion {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 0 0 16px 16px;
}

.ttm-result-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-soft);
}

/* Text Highlighting */
.ttm-correct {
    background: var(--success);
    color: white;
   
   
    font-weight: 500;
}

.ttm-incorrect {
    background: var(--danger);
    color: white;
   
    border-radius: 4px;
    font-weight: 500;
}

.ttm-pending {
    color: var(--text-light);
}

/* Keyboard-inspired Page Links */
.ttm-page-links-section {
    max-width: 1000px;
    margin: 40px auto 30px;
    padding: 0 20px;
}

.ttm-tests-category {
    margin-bottom: 40px;
}

.ttm-category-title {
    font-family: 'Lilita One', cursive;
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.ttm-category-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--skyblue-primary);
    border-radius: 2px;
}

.ttm-page-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ttm-page-card {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: var(--text-dark);
    background: #b1e0ff;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
}

.ttm-page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--skyblue-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ttm-page-card:hover {
    background: var(--skyblue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--skyblue-light);
}

.ttm-page-card:hover::before {
    transform: scaleX(1);
}

.ttm-card-title {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

.ttm-card-description {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.4;
}

/* Color coding for different test types */
.ttm-page-card[href*="certificate-test"] {
    background: #dcfce7;
}

.ttm-page-card[href*="certificate-test"]::before {
    background: var(--success);
}

.ttm-page-card[href*="certificate-test"]:hover {
    background: #bbf7d0;
}

.ttm-page-card[href*="benchmark-test"] {
    background: #fef3c7;
}

.ttm-page-card[href*="benchmark-test"]::before {
    background: var(--warning);
}

.ttm-page-card[href*="benchmark-test"]:hover {
    background: #fde68a;
}

.ttm-page-card[href*="number-key-test"] {
    background: #f3e8ff;
}

.ttm-page-card[href*="number-key-test"]::before {
    background: var(--purple);
}

.ttm-page-card[href*="number-key-test"]:hover {
    background: #e9d5ff;
}

.ttm-page-card[href*="quote-test"] {
    background: #e8e0f7;
}

.ttm-page-card[href*="quote-test"]:hover {
    background: #bae6fd;
}

/* Result Cards */
.ttm-result-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-medium);
    max-width: 900px;
    margin: auto;
}

.ttm-result-card h2 {
    font-family: 'Lilita One', cursive;
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.ttm-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.ttm-stat {
    background: var(--skyblue-card);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.ttm-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--skyblue-dark);
}

.ttm-stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    #typing-test-container {
        margin: 20px;
    }
    
    .ttm-controls {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px 20px;
    }
    
    .ttm-timer {
        justify-self: center;
    }
    
    .ttm-test-area {
        padding: 20px;
    }
    
    .ttm-text-display {
        padding: 20px;
        font-size: 16px;
    }
    
    .ttm-typing-input {
        height: 100px;
        padding: 15px;
    }
    
    .ttm-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ttm-page-links-section {
        margin: 30px auto 20px;
        padding: 0 15px;
    }
    
    .ttm-page-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ttm-controls {
        padding: 12px 15px;
    }
    
    .ttm-test-area {
        padding: 15px;
    }
    
    .ttm-text-display {
        padding: 15px;
    }
    
    .ttm-page-links-section {
        padding: 0 10px;
    }
    
    .ttm-category-title {
        font-size: 24px;
    }
}
