/* Responsive Design - Mobile First */

/* Tablet and larger (768px+) */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .wp-block-navigation {
        display: flex !important;
        gap: 2rem !important;
    }

    .wp-block-group[style*="grid"] {
        display: grid !important;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    /* Smooth animations on larger screens */
    a, button, .wp-block-button__link {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .alignwide {
        max-width: 1200px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .alignfull {
        padding: 0 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .wp-block-navigation {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .wp-block-buttons {
        flex-direction: column;
        width: 100%;
    }

    .wp-block-button {
        width: 100%;
    }

    .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    /* Grid layout adjustments */
    .wp-block-group[style*="grid"] {
        display: flex !important;
        flex-direction: column !important;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem;
    }

    /* Header adjustments */
    header {
        padding: 0.75rem 1rem;
    }

    header .wp-block-site-logo img {
        max-width: 40px;
    }

    header .wp-block-site-title {
        font-size: 1.25rem;
    }

    /* Footer adjustments */
    footer {
        padding: 1.5rem 1rem;
    }

    footer .wp-block-group[style*="grid"] {
        flex-direction: column;
    }

    /* Spacing on mobile */
    .wp-block-cover {
        min-height: 400px !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .wp-block-group {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Card adjustments */
    .wp-block-group[style*="border-radius"] {
        margin-bottom: 1rem;
    }

    /* Image adjustments */
    .wp-block-image {
        margin-bottom: 1rem;
    }

    /* List adjustments */
    ul, ol {
        margin-left: 1rem;
    }
}

/* Very small mobile (< 480px) */
@media (max-width: 479px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.9rem;
    }

    .wp-block-cover {
        min-height: 300px !important;
    }

    .wp-block-button__link {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .wp-block-cover {
        min-height: 300px;
    }

    h1 {
        margin-bottom: 0.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .wp-block-group {
        background-color: #2a2a2a;
    }

    input, textarea, select {
        background-color: #333333;
        color: #e0e0e0;
        border-color: #444444;
    }

    .wp-block-query-pagination a,
    .wp-block-query-pagination span {
        background-color: #333333;
        color: #e0e0e0;
    }
}
