/* Mobile Responsiveness Fixes for SmashBoys */

/* ============================================
   HERO SECTION - EST BADGE & TITLE FIXES
   ============================================ */

/* Fix EST badge positioning on mobile to prevent overlap */
@media (max-width: 640px) {

    /* EST badge - move it downwards and center it above "Smash Boys" */
    .absolute.top-\[25\%\].left-1\/2.-translate-x-1\/2,
    [class*="EST"] {
        top: 230px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) scale(0.9) !important;
        z-index: 50 !important;
    }

    /* Slow down the pulse-glow animation for the tag */
    .animate-pulse-glow,
    [class*="pulse-glow"] {
        animation-duration: 4s !important;
    }

    /* Hero title - prevent wrapping and adjust size */
    .text-\[15vw\],
    .font-display.font-black.text-\[15vw\] {
        font-size: 14vw !important;
        white-space: nowrap !important;
        line-height: 0.9 !important;
        letter-spacing: -0.05em !important;
        overflow: visible !important;
    }

    /* Ensure title container doesn't overflow */
    h1,
    .text-\[15vw\] {
        max-width: 100vw !important;
        overflow: visible !important;
    }

    /* Adjust hero section padding for better mobile spacing */
    .min-h-svh {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Hero subtitle spacing */
    .text-xl.tracking-\[0\.3em\] {
        margin-top: 1rem !important;
        font-size: 0.875rem !important;
        letter-spacing: 0.2em !important;
    }

    /* Hero description text */
    .text-gold\/20 {
        font-size: 0.75rem !important;
        margin-top: 0.5rem !important;
    }
}

/* ============================================
   STORY SECTION REMOVAL
   ============================================ */

/* Hide navigation STORY link (first button in nav) */
.flex.items-center.gap-1.sm\:gap-4>button:first-child {
    display: none !important;
}

/* Hide SEE THE STORY button in hero section */
button.group.relative.px-10.py-4.bg-gold.text-black.font-display.font-bold.text-sm.uppercase.tracking-wider.rounded-full.overflow-hidden.transition-all.duration-300.hover\:shadow-glow-lg.hover\:scale-105 {
    display: none !important;
}

/* Hide the entire STORY section (The Kitchen, The Farm, The Butcher, etc.) */
#story {
    display: none !important;
}

/* ============================================
   GRAPHICS SMOOTHNESS IMPROVEMENTS
   ============================================ */

/* Enable hardware acceleration for smooth animations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    will-change: transform;
}

/* Smooth transitions with GPU acceleration */
button,
a,
[class*="transition"] {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize scroll performance */
@media (max-width: 640px) {
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Reduce motion for better performance on mobile, but keep it smooth */
    * {
        transition-duration: 0.3s !important;
    }

    /* Target flame/fire icons to ensure they don't shake rapidly */
    svg,
    [class*="fire"],
    [class*="flame"],
    .animate-pulse {
        animation-duration: 4s !important;
        animation-timing-function: ease-in-out !important;
    }
}

/* ============================================
   ADDITIONAL MOBILE LAYOUT FIXES
   ============================================ */

@media (max-width: 640px) {

    /* Fix stats section spacing */
    .flex.items-center.gap-12 {
        gap: 2rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Improve button sizing on mobile */
    button {
        min-height: 44px !important;
        padding: 0.75rem 1.5rem !important;
    }

    /* Better touch targets */
    a,
    button {
        min-height: 44px !important;
    }

    /* Adjust navigation for mobile */
    nav {
        padding: 1rem !important;
    }

    /* Fix menu items spacing - 2 columns on mobile */
    .grid-cols-1 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Adjust menu card sizing for 2-column layout */
    .grid-cols-1>* {
        font-size: 0.875rem !important;
    }

    /* Smaller images in menu cards */
    .grid-cols-1 img {
        max-height: 150px !important;
        object-fit: cover !important;
    }
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (max-width: 640px) {

    /* Scale down large text appropriately */
    .text-4xl {
        font-size: 1.875rem !important;
    }

    .text-3xl {
        font-size: 1.5rem !important;
    }

    .text-2xl {
        font-size: 1.25rem !important;
    }

    /* Ensure readable body text */
    body {
        font-size: 16px !important;
    }
}

/* ============================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   ============================================ */

@media (max-width: 640px) {

    /* Larger tap targets for mobile */
    button,
    a,
    input,
    select {
        min-width: 44px !important;
        min-height: 44px !important;
    }

    /* Better focus states for mobile */
    button:focus,
    a:focus {
        outline: 3px solid gold !important;
        outline-offset: 2px !important;
    }
}