/* ==================== Daily Word Challenge Styles ==================== */

:root {
    --spacing: 24px;
    --card-padding: 32px;
    --border-radius: 16px;
}

/* ==================== Card Base ==================== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ==================== Stat Badges ==================== */
.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 12px 24px;
    min-width: 120px;
}

.stat-badge-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-badge-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.stat-badge-value.learned {
    color: #10b981;
}

.stat-badge-value.review {
    color: #f59e0b;
}

/* ==================== Progress Container ==================== */
.progress-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 32px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

#progress-percent {
    font-size: 18px;
    color: var(--accent);
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 8px;
    transition: width 0.5s ease;
    width: 0%;
}

/* ==================== Word Cards ==================== */
.word-cards-container {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.word-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
}

.word-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.word-card.learned {
    border-color: #10b981;
    background: linear-gradient(to right, var(--bg-secondary), rgba(16, 185, 129, 0.05));
}

.word-card.review {
    border-color: #f59e0b;
    background: linear-gradient(to right, var(--bg-secondary), rgba(245, 158, 11, 0.05));
}

.word-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.word-main {
    flex: 1;
}

.word-number {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.word-english {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.word-phonetic {
    font-size: 16px;
    color: var(--text-secondary);
    font-style: italic;
}

.word-audio-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.word-audio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.word-audio-btn:active {
    transform: scale(0.95);
}

.word-meaning {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 8px;
}

.word-example {
    margin-bottom: 20px;
}

.word-example-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.word-example-en {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 4px;
    font-style: italic;
}

.word-example-cn {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.word-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-learned {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-learned:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-learned.active {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.btn-review {
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-review:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-review.active {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* ==================== Completion Message ==================== */
.completion-message {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 48px;
    text-align: center;
    margin-bottom: 32px;
}

.completion-message.hidden {
    display: none;
}

.completion-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.completion-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.completion-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.completion-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 400px;
    margin: 0 auto 32px;
}

.completion-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.completion-stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
}

.completion-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ==================== How to Use ==================== */
.how-to-use ol {
    list-style: none;
    padding: 0;
}

.how-to-use li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.how-to-use li:last-child {
    border-bottom: none;
}

/* ==================== Tips Section ==================== */
.tips-section ul {
    list-style: none;
    padding: 0;
}

.tips-section li {
    padding: 8px 0;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    :root {
        --spacing: 16px;
        --card-padding: 20px;
    }

    .stat-badge {
        min-width: 100px;
        padding: 10px 16px;
    }

    .stat-badge-value {
        font-size: 24px;
    }

    .word-english {
        font-size: 28px;
    }

    .word-actions {
        grid-template-columns: 1fr;
    }

    .completion-stats {
        grid-template-columns: 1fr;
    }
}
