/* Phonetics Page Specific Styles */

.phonetics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Learning Tips */
.learning-tips {
    padding: 4rem 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.cta-content h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-section .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Sound demonstration elements */
.sound-demo {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1rem 0;
    border-left: 4px solid var(--accent-color);
}

.sound-example {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.phonetic-symbol {
    font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 60px;
}

/* Animation for category cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: fadeInUp 0.6s ease forwards;
}

.category-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.category-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* IPA Transcription styles */
.ipa-container {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', sans-serif;
}

.ipa-symbol {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .phonetics-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .sound-example {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-card h3 {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .category-card {
        break-inside: avoid;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .cta-section {
        display: none;
    }
    
    .category-link {
        color: #000;
        text-decoration: underline;
    }
    
    .sound-demo {
        border-left: 2px solid #000;
    }
}