/* ================================
   GYMANATHI - RESPONSIVE STYLESHEET
   ================================ */

/* Tablet (768px) */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }

    /* Typography */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--primary);
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: 500px;
        justify-content: center;
        padding: var(--spacing-xl);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    /* Grids */
    .services-grid,
    .blog-grid,
    .shop-grid,
    .trainers-grid,
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    /* Welcome Stats */
    .welcome-content {
        grid-template-columns: 1fr;
    }

    /* Blog Featured */
    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured img {
        height: 250px;
    }

    /* Contact Info */
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-newsletter {
        max-width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    /* Tables */
    .schedule-table {
        overflow-x: auto;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: var(--spacing-sm);
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Typography */
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Navbar */
    .navbar-container {
        padding: 0 var(--spacing-md);
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-menu {
        top: 50px;
        padding: var(--spacing-md);
    }

    .nav-menu.active {
        gap: var(--spacing-md);
    }

    .nav-link {
        font-size: 0.95rem;
    }

    /* Hero */
    .hero {
        min-height: 400px;
        padding: var(--spacing-lg);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Announcement */
    .announcement-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .announcement-icon {
        font-size: 1.5rem;
    }

    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }

    .btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }

    /* Service Cards */
    .services-grid,
    .blog-grid,
    .trainers-grid,
    .staff-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing */
    .pricing-card {
        padding: var(--spacing-lg);
    }

    .price {
        font-size: 2rem;
    }

    /* Welcome Stats */
    .welcome-stats {
        gap: var(--spacing-md);
    }

    .stat-card {
        padding: var(--spacing-md);
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    /* Blog Featured */
    .blog-featured {
        padding: var(--spacing-lg);
    }

    .blog-featured img {
        height: 180px;
    }

    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Info */
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    /* Registration */
    .registration-container {
        grid-template-columns: 1fr;
    }

    .registration-summary {
        margin-top: var(--spacing-lg);
        border-top: 1px solid var(--border);
        padding-top: var(--spacing-lg);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .footer-section h4 {
        font-size: 0.95rem;
    }

    .footer-section ul,
    .footer-section p {
        font-size: 0.9rem;
    }

    .newsletter-form {
        gap: var(--spacing-sm);
    }

    .newsletter-form input {
        font-size: 0.85rem;
    }

    /* CTA Section */
    .cta-section {
        padding: var(--spacing-xl);
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Forms */
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .form-group.checkbox {
        flex-direction: row;
    }

    /* Tables */
    table {
        font-size: 0.8rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }

    /* Service Detail */
    .service-content {
        flex-direction: column;
    }

    .service-image {
        height: 250px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: var(--spacing-md);
    }

    /* Shop Controls */
    .shop-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .filter-dropdown,
    .cart-indicator {
        width: 100%;
    }

    .filter-dropdown {
        text-align: left;
    }

    .cart-indicator {
        justify-content: space-between;
    }

    /* Cart Summary */
    .cart-summary {
        position: relative;
        margin-top: var(--spacing-lg);
    }

    /* Products */
    .product-card {
        width: 100%;
    }

    .product-image {
        height: 150px;
    }

    /* Annual Plans */
    .annual-grid {
        grid-template-columns: 1fr;
    }

    /* Social Grid */
    .social-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Updates Section */
    .updates-list {
        gap: var(--spacing-md);
    }

    .update-item {
        padding: var(--spacing-md);
    }

    /* Value Cards */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Facilities Grid */
    .facilities-grid {
        grid-template-columns: 1fr;
    }

    /* Payment & Checkout */
    .cart-content {
        flex-direction: column;
    }

    /* Scroll Behavior */
    html {
        scroll-padding-top: 60px;
    }

    /* Utility Spacing */
    .mt-lg {
        margin-top: var(--spacing-lg);
    }

    .mb-lg {
        margin-bottom: var(--spacing-lg);
    }
}

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .services-grid,
    .blog-grid,
    .shop-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .trainers-grid,
    .staff-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .btn,
    .hamburger {
        display: none;
    }

    .container {
        max-width: 100%;
    }

    body {
        background-color: #ffffff;
        color: #000000;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }

    img {
        page-break-inside: avoid;
        max-width: 100%;
    }
}

/* Accessibility - Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    :root {
        --border: #000000;
        --neutral-gray: #333333;
    }

    .btn,
    a {
        border: 2px solid currentColor;
    }
}

/* Dark Mode (Optional - if you want to add dark mode support) */
@media (prefers-color-scheme: dark) {
    /* Uncomment and adjust if implementing dark mode */
    /*
    :root {
        --neutral-light: #1a1a1a;
        --text-dark: #f5f5f5;
        --text-light: #cccccc;
        --border: #333333;
    }
    */
}
