/* Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Small screens (768px and down) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: 70vh;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-placeholder {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Categories */
    .categories {
        padding: 60px 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    /* Featured Speeches */
    .featured-speeches {
        padding: 60px 0;
    }

    .speeches-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .speech-card {
        margin: 0 auto;
        max-width: 400px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1rem;
    }
}

/* Extra small screens (480px and down) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-placeholder {
        width: 150px;
        height: 150px;
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .category-card h3 {
        font-size: 1.25rem;
    }

    .speech-content {
        padding: 1.25rem;
    }

    .speech-title {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding: 80px 0 40px;
    }

    .hero-container {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-placeholder {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-placeholder {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .hero-buttons,
    .footer {
        display: none;
    }

    .hero {
        background: white;
        color: black;
        padding: 20px 0;
    }

    .category-card,
    .speech-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e5e5e5;
    }

    .header {
        background: rgba(26, 26, 26, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        color: #a1a1aa;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #60a5fa;
    }

    .categories {
        background: #262626;
    }

    .category-card {
        background: #1f1f1f;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .category-card h3 {
        color: #e5e5e5;
    }

    .category-card p {
        color: #a1a1aa;
    }

    .speech-card {
        background: #1f1f1f;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .speech-title {
        color: #e5e5e5;
    }

    .speech-speaker,
    .speech-excerpt {
        color: #a1a1aa;
    }

    .speech-category {
        background: #374151;
        color: #d1d5db;
    }

    .section-title {
        color: #e5e5e5;
    }
} 