/* Practice Pages CSS - 練習模式頁面專用樣式 */

/* ========================================
   Practice Container
   ======================================== */

.practice-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ========================================
   Practice Header
   ======================================== */

.practice-header {
    text-align: center;
    margin-bottom: 3rem;
}

.practice-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.practice-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ========================================
   Practice Mode Card
   ======================================== */

.practice-mode-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.practice-mode-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.practice-mode-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.practice-mode-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

/* ========================================
   Section Titles
   ======================================== */

.practice-section-title {
    text-align: center;
    color: var(--text-primary);
    margin: 2rem 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ========================================
   Range Selection Grid
   ======================================== */

.practice-range-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.practice-range-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.practice-range-item:hover {
    border-color: var(--accent-primary);
    background: rgba(74, 105, 133, 0.05);
}

.practice-range-item.checked {
    border-color: var(--accent-primary);
    background: rgba(74, 105, 133, 0.05);
}

.practice-range-item input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.practice-range-content {
    flex: 1;
}

.practice-range-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.practice-range-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   Question Count Selection
   ======================================== */

.practice-question-count {
    text-align: center;
    margin-bottom: 2rem;
}

.practice-question-count label {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-right: 1rem;
}

.practice-question-count select {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
}

/* ========================================
   Start Button
   ======================================== */

.practice-start-btn {
    display: block;
    margin: 0 auto;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 105, 133, 0.3);
    transition: all 0.3s ease;
}

.practice-start-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 105, 133, 0.4);
}

/* ========================================
   Alternative Link
   ======================================== */

.practice-alt-link {
    text-align: center;
    margin-top: 1.5rem;
}

.practice-alt-link a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.practice-alt-link a:hover {
    opacity: 0.8;
}

/* ========================================
   Practice Amount Selection
   ======================================== */

.practice-amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.practice-amount-option {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.practice-amount-option:hover {
    border-color: var(--accent-primary);
    background: rgba(74, 105, 133, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.practice-amount-option:has(.amount-radio:checked) {
    border-color: var(--accent-primary);
    background: rgba(74, 105, 133, 0.1);
    box-shadow: 0 4px 12px rgba(74, 105, 133, 0.2);
}

.amount-radio {
    display: none;
}

.amount-content {
    text-align: center;
}

.amount-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.amount-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .practice-container {
        padding: 0 1rem;
    }

    .practice-header h1 {
        font-size: 2rem;
    }

    .practice-mode-card {
        padding: 1.5rem;
    }

    .practice-range-grid {
        grid-template-columns: 1fr;
    }

    .practice-amount-grid {
        grid-template-columns: 1fr;
    }

    .practice-start-btn {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }
}
