/*
 * Arabic Reading Accelerator - Setup Page Styles
 */

.setup-container {
    min-height: 100vh;
    background: var(--bg-light);
}

/* Header */
.setup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: var(--shadow-sm);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    font-size: 2rem;
}

.user-name {
    font-weight: 700;
    font-size: 1.25rem;
}

.user-points {
    color: var(--secondary-color);
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.header-btn {
    padding: 0.5rem 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}

.header-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Main Content */
.setup-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.setup-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* Sections */
.setup-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-icon {
    font-size: 1.5rem;
}

/* Mode Options */
.mode-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mode-option {
    cursor: pointer;
}

.mode-option input {
    display: none;
}

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 3px solid transparent;
    transition: all 0.2s;
    text-align: center;
}

.mode-option input:checked + .mode-card {
    border-color: var(--primary-color);
    background: rgba(0, 212, 170, 0.1);
}

.mode-option:hover .mode-card {
    border-color: var(--text-light);
}

.mode-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.mode-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.mode-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Timer Options */
.timer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.timer-option {
    cursor: pointer;
}

.timer-option input {
    display: none;
}

.timer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 3px solid transparent;
    transition: all 0.2s;
    min-width: 70px;
}

.timer-option input:checked + .timer-card {
    border-color: var(--accent-blue);
    background: rgba(52, 152, 219, 0.1);
}

.timer-icon {
    font-size: 1.5rem;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.timer-unit, .timer-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Level Options */
.level-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.level-option {
    cursor: pointer;
}

.level-option input {
    display: none;
}

.level-option input:disabled + .level-card {
    opacity: 0.5;
    cursor: not-allowed;
}

.level-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.level-option input:checked + .level-card {
    border-color: var(--accent-purple);
    background: rgba(155, 89, 182, 0.1);
}

.level-card.locked {
    background: #eee;
}

.level-lock {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.75rem;
}

.level-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-purple);
}

.level-count {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Material Options */
.material-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.material-option {
    cursor: pointer;
}

.material-option input {
    display: none;
}

.material-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 3px solid transparent;
    transition: all 0.2s;
}

.material-option input:checked + .material-card {
    border-color: var(--secondary-color);
    background: rgba(255, 107, 53, 0.1);
}

.material-icon {
    font-size: 1.5rem;
}

.material-title {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Start Button */
.start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    color: white;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
}

.start-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 600px) {
    .setup-main {
        padding: 1rem;
    }
    
    .mode-options {
        grid-template-columns: 1fr;
    }
    
    .level-options {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .material-options {
        grid-template-columns: 1fr;
    }
    
    .user-name {
        display: none;
    }
}
