/**
 * Responsive Styles
 * Theme: Masjid Nusantara
 */

/* ==========================================================================
   Tablet (max-width: 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Header */
    .primary-menu {
        gap: var(--spacing-sm);
    }

    /* Hero */
    .hero-section {
        height: 600px;
    }

    .hero-content {
        max-width: 600px;
    }

    /* About */
    .about-wrapper {
        gap: var(--spacing-md);
    }

    /* Contact */
    .contact-wrapper {
        gap: var(--spacing-md);
    }
}

/* ==========================================================================
   Mobile (max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

    section {
        padding: var(--spacing-lg) 0;
    }

    /* Header */
    .top-bar-content {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .site-branding {
        order: 1;
        flex: 1;
    }

    .main-navigation {
        order: 3;
        width: 100%;
        margin-top: var(--spacing-sm);
        justify-content: flex-start;
    }

    .primary-menu,
    #primary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--color-white);
        padding: var(--spacing-sm);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        gap: 0;
    }

    .primary-menu.active,
    #primary-menu.active {
        display: flex;
    }

    .primary-menu li,
    #primary-menu li,
    .main-navigation .page_item {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .primary-menu li:last-child,
    #primary-menu li:last-child,
    .main-navigation .page_item:last-child {
        border-bottom: none;
    }

    .primary-menu li a,
    #primary-menu li a,
    .main-navigation .page_item a {
        display: block;
        padding: var(--spacing-sm);
        width: 100%;
    }

    .primary-menu li a::after,
    #primary-menu li a::after,
    .main-navigation .page_item a::after {
        display: none;
    }

    .btn-donate {
        margin-top: var(--spacing-sm);
        margin-left: 0;
        text-align: center;
    }

    /* Hero */
    .hero-section,
    .hero-slider,
    .hero-slide {
        min-height: 500px;
        height: 500px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 16px 24px;
        font-size: 1.125rem;
    }

    /* Prayer Times */
    .prayer-times-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--spacing-sm);
    }

    .prayer-time-card {
        padding: var(--spacing-sm);
    }

    .prayer-icon {
        font-size: 2rem;
    }

    .prayer-name {
        font-size: 1rem;
    }

    .prayer-time {
        font-size: 1.25rem;
    }

    /* About */
    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-badge {
        bottom: 20px;
        right: 20px;
        min-width: 100px;
        padding: var(--spacing-sm);
    }

    .badge-number {
        font-size: 2rem;
    }

    /* Donation */
    .donation-grid {
        grid-template-columns: 1fr;
    }

    /* Events */
    .events-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-widgets-inner {
        grid-template-columns: 1fr;
    }

    .site-info-inner {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }

    .footer-menu li,
    .footer-menu .page_item {
        flex: 0 0 auto;
    }
}

/* ==========================================================================
   Small Mobile (max-width: 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {

    /* Typography */
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero-section,
    .hero-slider,
    .hero-slide {
        min-height: 450px;
        height: 450px;
    }

    .hero-content {
        padding: var(--spacing-sm) 0;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Prayer Times */
    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Donation Cards */
    .donation-card,
    .event-card {
        margin-bottom: var(--spacing-sm);
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9375rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {

    .site-header,
    .hero-buttons,
    .btn,
    .site-footer,
    .social-links {
        display: none !important;
    }

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

    a {
        text-decoration: underline;
    }

    img {
        max-width: 100% !important;
    }
}