/**
 * The Standard Arena Landing Page - Custom Styles
 *
 * @package StandardArena
 */

/* ========================================
   BASE STYLES
   ======================================== */

html {
    overflow-y: auto !important;
    height: auto !important;
    scroll-behavior: smooth;
    scroll-padding-top: 56px;
}

body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
}

/* ========================================
   NAVIGATION
   ======================================== */

#headernav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    transition: all 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

#mobile-menu {
    top: 56px !important;
    animation: slideDown 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

#hero video {
    min-width: 100%;
    min-height: 100%;
}

/* ========================================
   FIX MOBILE SCROLL GLITCH
   Sections with absolute-positioned backgrounds
   can glitch when overlapping the fixed nav on mobile.
   Force each section into its own compositing layer.
   ======================================== */

#how-it-works,
#how-it-works .absolute,
section[class*="overflow-hidden"] .absolute {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.zaumu-faq-toggle {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.zaumu-faq-toggle:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.zaumu-faq-body {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   CAROUSEL
   ======================================== */

.zaumu-carousel-slide {
    transition: opacity 0.4s ease;
}

/* ========================================
   BUTTON HOVER EFFECTS
   ======================================== */

a.bg-gradient-to-r {
    position: relative;
    overflow: hidden;
}

a.bg-gradient-to-r::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

a.bg-gradient-to-r:hover::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   CARD HOVER EFFECTS
   ======================================== */

.bg-gray-50.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-gray-50.rounded-2xl:hover {
    transform: translateY(-5px);
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    #hero h2 {
        font-size: 1.5rem;
    }

    .bg-gray-50.rounded-2xl:hover {
        transform: none;
    }

    /* Tab buttons: shrink padding and font on mobile */
    .zaumu-tab-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 380px) {
    .zaumu-tab-btn {
        padding: 7px 10px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

/* ========================================
   KILL THEME SPACING AROUND FOOTER
   ======================================== */

/* WordPress theme wrappers that add bottom padding/margin */
body.font-figtree,
body.font-figtree #page,
body.font-figtree .site-content,
body.font-figtree .content-area,
body.font-figtree .site-main,
body.font-figtree .page-content,
body.font-figtree .entry-content,
body.font-figtube .entry,
body.font-figtree .page,
body.font-figtree .main-navigation,
body.font-figtree #colophon,
body.font-figtree footer,
body.font-figtree .hentry,
body.font-figtree .hfeed {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Footer itself */
#zaumu-footer {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    #headernav,
    #mobile-menu,
    #mobile-menu-btn,
    .zaumu-tab-btn,
    #carousel-prev,
    #carousel-next {
        display: none !important;
    }

    .zaumu-tab-content {
        display: block !important;
    }

    section {
        page-break-inside: avoid;
    }
}
