/* ================================
   YSN - Simplified Responsive Styles
   ================================ */

/* Tablet and Below - 768px */
@media screen and (max-width: 768px) {
    /* Reduce spacing on mobile */
    :root {
        --spacing-xl: 2.5rem;
        --spacing-lg: 2rem;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    /* Section Titles */
    .section__title {
        font-size: 1.75rem;
    }

    .section__subtitle {
        font-size: 1rem;
    }

    /* Page Header */
    .page-header {
        padding: calc(70px + var(--spacing-md)) 0 var(--spacing-md);
    }

    .page-header__title {
        font-size: 2rem;
    }

    .page-header__subtitle {
        font-size: 1rem;
    }

    /* Navigation - Mobile Menu */
    .nav__menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: var(--spacing-md);
        overflow-y: auto;
        z-index: 999;
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav__item {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav__link {
        display: block;
        padding: var(--spacing-sm) var(--spacing-xs);
        border-bottom: none !important;
        font-size: 1.1rem;
        border-left: 4px solid transparent;
        transition: all var(--transition);
    }

    .nav__link:hover,
    .nav__link.active {
        background-color: var(--color-bg-light);
        border-left-color: var(--color-primary) !important;
        color: var(--color-primary-dark);
        padding-left: var(--spacing-sm);
    }

    .nav__link.active {
        font-weight: 600;
    }

    /* CTA Button in Mobile Menu */
    .nav__link--cta {
        margin-top: var(--spacing-sm);
        text-align: center;
        border-radius: var(--radius);
    }

    .nav__link--cta:hover,
    .nav__link--cta.active {
        border-left-color: transparent !important;
        padding-left: var(--spacing-xs);
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero */
    .hero {
        padding: 3rem 0;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__description {
        font-size: 1.1rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .hero__buttons .btn {
        width: 100%;
    }

    /* CTA Section */
    .cta {
        padding: var(--spacing-xl) 0;
    }

    .cta__title {
        font-size: 2rem;
    }

    .cta__description {
        font-size: 1.1rem;
    }

    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
    }

    /* Event Images - Stack on Mobile */
    .event-images {
        grid-template-columns: 1fr !important;
    }

    /* Member Cards */
    .leadership__grid {
        grid-template-columns: 1fr;
    }

    /* Adjust image margins for mobile */
    .card img {
        margin: -1rem -1rem 1rem -1rem !important;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile - 480px */
@media screen and (max-width: 480px) {
    /* Further reduce spacing */
    :root {
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }

    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    /* Navigation */
    .nav__logo-img {
        width: 40px;
        height: 40px;
    }

    .nav__logo-title {
        font-size: 1.125rem;
    }

    .nav__logo-subtitle {
        font-size: 0.625rem;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav__toggle,
    .cta,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
