/* ===================================
   Draw List Lotto - Responsive Styles
   Mobile & Tablet Optimizations
   =================================== */

/* ========== Tablet (max-width: 992px) ========== */
@media screen and (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 15px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

/* ========== Mobile (max-width: 768px) ========== */
@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    /* Header & Navigation */
    .header-content {
        padding: 15px 0;
        position: relative;
    }
    
    .site-name {
        font-size: 22px;
    }
    
    .site-tagline {
        font-size: 11px;
    }
    
    .logo-image {
        width: 45px;
        height: 45px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
        position: fixed;
        top: 20px;
        right: 20px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 80px 20px 20px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--secondary-color);
    }
    
    .nav-link {
        display: block;
        padding: 15px 10px;
        width: 100%;
        border-radius: 0;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-cta {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .hero-subtext {
        font-size: 13px;
    }
    
    /* Content Sections */
    .content-section {
        padding: 30px 0;
        margin-bottom: 25px;
    }
    
    .section-inner {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .section-content {
        font-size: 15px;
    }
    
    /* License Info Box */
    .license-info-box {
        padding: 20px;
        margin: 30px 0;
    }
    
    .license-info-box h3 {
        font-size: 20px;
    }
    
    .license-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* CTA Banner */
    .cta-banner {
        padding: 30px 20px;
        margin: 35px 0;
    }
    
    .cta-banner h3 {
        font-size: 22px;
    }
    
    .cta-banner p {
        font-size: 15px;
    }
    
    .cta-button {
        padding: 12px 28px;
        font-size: 15px;
    }
    
    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .card {
        padding: 25px;
    }
    
    .card h3 {
        font-size: 20px;
    }
    
    /* Footer */
    .main-footer {
        padding: 40px 0 20px;
        margin-top: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .disclaimer-text {
        font-size: 11px;
    }
    
    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* FAQ Accordion */
    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
        gap: 10px;
    }
    
    .faq-question i:first-child {
        font-size: 1.1rem;
    }
    
    .faq-answer p,
    .faq-answer ul {
        padding: 0 20px 15px 55px;
        font-size: 14px;
    }
    
    .faq-answer ul {
        padding-left: 70px;
    }
    
    /* CTA Banner */
    .cta-banner {
        padding: 40px 20px;
    }
    
    .cta-banner h3 {
        font-size: 1.5rem;
    }
    
    .cta-banner p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* About Page */
    .lead-text {
        font-size: 1.1rem;
    }
    
    .about-hero-image {
        max-height: 300px;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -20px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-year {
        font-size: 1rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .value-card {
        padding: 25px;
    }
    
    .value-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
    
    .value-card h3 {
        font-size: 1.2rem;
    }
    
    .operation-step {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-card i {
        font-size: 2.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-card p {
        font-size: 1rem;
    }
    
    .commitment-box {
        padding: 30px 20px;
    }
    
    .commitment-box h2 {
        font-size: 1.6rem;
    }
    
    .commitment-box > p {
        font-size: 1rem;
    }
    
    .commitment-list li {
        font-size: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    /* Age Banner */
    .age-banner {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .age-banner-link {
        display: block;
        margin-top: 5px;
        margin-left: 0;
    }
    
    /* Alert boxes mobile */
    .alert {
        padding: 15px;
        gap: 10px;
        font-size: 14px;
        flex-direction: column;
    }
    
    .alert i {
        font-size: 18px;
    }
}

/* ========== Small Mobile (max-width: 480px) ========== */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .site-name {
        font-size: 18px;
    }
    
    .site-tagline {
        font-size: 10px;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .hero-cta {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-inner {
        padding: 20px 15px;
    }
    
    .cta-banner h3 {
        font-size: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    /* Content Images */
    .impact-image,
    .draw-ceremony-image,
    .winner-celebration-image,
    .responsible-gaming-image,
    .helpline-support-image,
    .privacy-security-image,
    .legal-documents-image {
        max-height: none;
    }
    
    .license-badge-img {
        width: 100px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .main-nav {
        width: 100%;
        right: -100%;
    }
}

/* ========== Landscape Mobile ========== */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .main-nav {
        padding: 70px 20px 20px;
        overflow-y: auto;
    }
}

/* ========== Print Styles ========== */
@media print {
    .age-banner,
    .main-header,
    .main-footer,
    .cookie-consent,
    .mobile-menu-toggle,
    .cta-banner,
    .hero-cta {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-inner {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        text-decoration: underline;
    }
    
    .section-title::after {
        background-color: #333;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-section,
    .main-footer {
        border: 2px solid currentColor;
    }
    
    .card,
    .section-inner {
        border: 1px solid currentColor;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Users can implement dark mode styles if desired */
    /* For now, maintaining light theme for official charity appearance */
}
