/* Responsive CSS File */

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    /* No specific overrides needed - this is our default design */
}

/* Medium Desktops and Laptops (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
}

/* Tablets and Small Laptops (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Add dark overlay to hero section for better text readability over the flag */
    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 0;
    }
    
    /* Ensure hero content is above the overlay */
    .hero .container {
        position: relative;
        z-index: 2;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: var(--spacing-xs);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .footer-nav li {
        margin-bottom: 0;
    }
    
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .site-header {
        padding: var(--spacing-sm) 0;
    }
    
    /* Ensure desktop menu is hidden on mobile */
    .menu.menu-horizontal.hidden.lg\:flex {
        display: none !important;
    }
    
    /* Style mobile menu items */
    #mobile-menu .menu li {
        margin: var(--spacing-sm) 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .social-share {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-card {
        padding-left: var(--spacing-lg);
    }
    
    .step-number {
        position: static;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Show step titles on mobile */
    .step-card .badge {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .step-card .card-title {
        display: block;
        margin-top: 0.5rem;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .tweet-options {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        padding: var(--spacing-md);
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    section h2 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    /* Ensure hero CTA remains prominent on mobile */
    .btn-hero-cta {
        padding: 12px 24px;
        font-size: 1rem;
        margin: 15px auto;
        max-width: 250px;
        display: block;
    }
    
    .content-card {
        padding: var(--spacing-md);
    }
    
    .step-card {
        padding: var(--spacing-md);
    }
    
    .resource-actions {
        flex-direction: column;
    }
    
    .resource-actions .btn {
        width: 100%;
    }
}

/* Mobile Menu JavaScript Support */
.nav-links.active {
    display: flex;
}

/* Fullscreen Mobile Menu */
#mobile-menu:not(.hidden) {
    max-height: 100vh;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    background-image: none; /* Ensure no background image */
    opacity: 1; /* Ensure full opacity */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Add a solid background color overlay */
#mobile-menu:not(.hidden)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    z-index: -1;
}

#mobile-menu .text-center {
    width: 100%;
}

#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-menu ul li {
    margin: 1.5rem 0;
}

#mobile-menu ul li a {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    transition: transform 0.2s ease;
}

#mobile-menu ul li a:hover,
#mobile-menu ul li a:focus {
    transform: scale(1.05);
}

#mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}
