/* Practice Page Styles */

/* Practice Header */
.practice-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.practice-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.practice-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Tests Section */
.tests-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.test-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #667eea;
    position: relative;
    overflow: hidden;
}

.test-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.test-card.listening {
    border-left-color: #28a745;
}

.test-card.reading {
    border-left-color: #007bff;
}

.test-card.full-test {
    border-left-color: #ffc107;
}

.test-card.quick {
    border-left-color: #17a2b8;
}

.test-card.vocab {
    border-left-color: #6f42c1;
}

.test-card.business {
    border-left-color: #fd7e14;
}

.test-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.test-card.listening .test-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.test-card.reading .test-icon {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.test-card.full-test .test-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.test-card.quick .test-icon {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.test-card.vocab .test-icon {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.test-card.business .test-icon {
    background: linear-gradient(135deg, #fd7e14, #dc3545);
}

.test-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.test-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.test-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.detail-item i {
    width: 16px;
    color: #667eea;
}

.test-parts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.part-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.part-tag.featured {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.part-tag.popular {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.part-tag.premium {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    color: white;
}

.test-actions {
    display: flex;
    gap: 1rem;
}

.test-actions button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.test-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.test-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Quick Stats */
.quick-stats {
    padding: 3rem 0;
    background: white;
}

.quick-stats h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #667eea;
    background: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Test Preview Modal */
.preview-modal .modal-content {
    max-width: 600px;
}

.preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    margin: -2rem -2rem 2rem;
}

.preview-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-content {
    padding: 0 0.5rem;
}

.preview-item {
    padding: 1rem;
    border-left: 3px solid #667eea;
    background: #f8f9fa;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.preview-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.preview-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Difficulty Indicators */
.difficulty-easy {
    color: #28a745;
}

.difficulty-medium {
    color: #ffc107;
}

.difficulty-hard {
    color: #dc3545;
}

.difficulty-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.difficulty-indicator i {
    font-size: 0.7rem;
}

/* Responsive for Practice Page */
@media (max-width: 768px) {
    .tests-grid {
        grid-template-columns: 1fr;
    }
    
    .test-actions {
        flex-direction: column;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .practice-header h1 {
        font-size: 2rem;
    }

    .quick-stats h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .test-card {
        padding: 1.5rem;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .test-details {
        font-size: 0.85rem;
    }

    .practice-header {
        padding: 2rem 0;
    }

    .practice-header h1 {
        font-size: 1.8rem;
    }

    .test-info h3 {
        font-size: 1.2rem;
    }

    .preview-header {
        padding: 1rem;
        margin: -2rem -2rem 1.5rem;
    }
} 