/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 1.3rem;
        font-weight: 600;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: flex;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    /* Travel module responsive */
    .columns-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .column-card {
        padding: 1rem;
    }
    
    .column-title {
        font-size: 1.1rem;
    }
    
    .column-description {
        font-size: 0.9rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-item {
        padding: 1rem;
    }
    
    .item-title {
        font-size: 1.1rem;
    }
    
    .item-description {
        font-size: 0.9rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-item {
        padding: 1rem;
    }
    
    .hero-icon {
        min-width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .hero-item-title {
        font-size: 1.1rem;
    }
    
    .hero-item-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-description-item {
        padding: 1rem;
    }
    
    .hero-description-item p {
        font-size: 0.9rem;
    }
    
    .hero-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-main {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .hero-icon-inline {
        font-size: 2.8rem;
        margin-right: 0.8rem;
        flex-shrink: 0;
    }
    
    .hero-title {
        font-size: 1.2rem !important;
        white-space: nowrap;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-toggle-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .module-card {
        padding: 1rem;
    }
    
    .module-image {
        top: 1.5rem;
        width: 150px;
        height: 120px;
    }
    
    .module-left {
        padding-top: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .progress-section,
    .modules-section {
        padding: 2rem 0;
    }
    
    .language-options {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 20px;
    }
}

/* Mobile Medium */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1rem !important;
        white-space: nowrap;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-item {
        padding: 0.8rem 1.5rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .module-card {
        padding: 1rem;
    }
    
    .module-title {
        font-size: 1.1rem;
    }
    
    .module-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Travel module mobile responsive */
    .columns-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .column-card {
        padding: 0.8rem;
    }
    
    .column-title {
        font-size: 1rem;
    }
    
    .column-description {
        font-size: 0.8rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .content-item {
        padding: 0.8rem;
    }
    
    .item-title {
        font-size: 1rem;
    }
    
    .item-description {
        font-size: 0.8rem;
    }
    
    .english-text {
        font-size: 1.1rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-logo .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 0.3rem;
    }
    
    .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    .language-btn,
    .profile-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .module-card {
        padding: 1rem;
    }
    
    .module-title {
        font-size: 1rem;
    }
    
    .module-description {
        font-size: 0.9rem;
    }
    
    .stat-item {
        padding: 0.6rem 1rem;
    }
    
    .stat-icon {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .nav-menu {
        gap: 0.2rem;
    }
    
    .nav-link {
        padding: 0.2rem 0.4rem;
        font-size: 1.3rem;
        font-weight: 600;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        margin-top: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .module-icon {
        border-radius: 12px;
    }
    
    .progress-bar {
        border-radius: 8px;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-actions,
    .modal {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .module-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility */
@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: #ffffff;
    }
    
    .progress-section,
    .module-card {
        background-color: #2d2d2d;
        color: #ffffff;
    }
    
    .module-title {
        color: #ffffff;
    }
    
    .module-description {
        color: #cccccc;
    }
    
    .progress-bar {
        background-color: #404040;
    }
    
    .modal-content {
        background-color: #2d2d2d;
        color: #ffffff;
    }
    
    .language-option {
        background-color: #2d2d2d;
        color: #ffffff;
        border-color: #404040;
    }
} 