/* TisT Hero Frontend Styles */

.tist-hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: white;
    background-color: transparent;
background-image: linear-gradient(241deg, var( --e-global-color-1ff5dff ) 26%, var( --e-global-color-primary ) 100%);
}

/* BACKGROUND LAYER - Contains all images */
.tist-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Desktop: Interactive Images */
.tist-desktop-images {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 2 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.tist-trail-image {
    position: absolute !important;
    width: 250px !important;
    height: 250px !important;
    border-radius: 20px !important;
    object-fit: cover !important;
    object-position: center center !important;
    pointer-events: none !important;
    opacity: 0;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4) !important;
    transform: scale(0.5);
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    display: block !important;
    will-change: transform, opacity !important;
    backface-visibility: hidden !important;
    transform-style: preserve-3d !important;
}

/* Mobile: Static Images */
.tist-mobile-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.tist-static-image {
    position: absolute !important;
    width: 150px !important;
    height: 150px !important;
    border-radius: 24px !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 0.9 !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6) !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    display: block !important;
}

/* TOP ROW - 3 images above the header */
.tist-static-image:nth-child(1) {
    top: 10%;
    left: 15%;
    transform: rotate(-8deg);
}

.tist-static-image:nth-child(2) {
    top: 8%;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
}

.tist-static-image:nth-child(3) {
    top: 12%;
    right: 15%;
    transform: rotate(12deg);
}

/* BOTTOM ROW - 3 images below the header */
.tist-static-image:nth-child(4) {
    bottom: 12%;
    left: 20%;
    transform: rotate(6deg);
}

.tist-static-image:nth-child(5) {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
}

.tist-static-image:nth-child(6) {
    bottom: 10%;
    right: 20%;
    transform: rotate(-15deg);
}

/* FOREGROUND LAYER - Contains all content */
.tist-hero-foreground {
    position: relative;
    z-index: 100;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    padding: 2em 0 10em 0 !important;
    max-width: 920px !important;
    margin: 0 auto !important;
}

.tist-logo-container {
    position: relative;
}

.tist-main-logo {
    width: clamp(200px, 20vw, 300px);
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.tist-tagline {
    font-family: "League Spartan Bold", Sans-serif;
    font-size: 2.2em;
    line-height: 1.3em;
    font-size: clamp(2.2em, 3vw, 1.5rem);
    font-weight: 400;
    text-align: center;
    opacity: 0.9;
    color: white;
    margin-bottom: 0 !important;
}

.tist-navigation-buttons {
    display: flex;
    gap: 1.2rem;
}

.tist-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.tist-nav-button:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.tist-nav-button:focus {
    color: white;
    text-decoration: none;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.tist-nav-button:visited {
    color: white;
}

.tist-arrow {
    margin-left: 8px;
    font-style: normal;
    transition: transform 0.3s ease;
}

.tist-nav-button:hover .tist-arrow {
    transform: translateX(4px);
}

/* Responsive behavior */
@media (min-width: 1024px) {
    .tist-hero-section {
        cursor: crosshair;
    }
    
    .tist-mobile-images {
        display: none;
    }
}

@media (max-width: 1023px) {
    .tist-desktop-images {
        display: none;
    }
    
    .tist-navigation-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .tist-nav-button {
        width: 100%;
        font-size: 1rem;
        padding: 14px 24px;
        min-width: auto;
    }
    
    .tist-static-image {
        width: 25vw;
        height: 25vw;
    }
}

@media (max-width: 640px) {
    .tist-static-image {
        width: 30vw;
        height: 30vw;
    }
    
    .tist-hero-foreground {
        padding: 60px 20px;
    }
    
    /* Tighten spacing for smaller screens */
    .tist-static-image:nth-child(1) {
        left: 10%;
        top: 8%;
    }
    
    .tist-static-image:nth-child(3) {
        right: 10%;
        top: 10%;
    }
    
    .tist-static-image:nth-child(4) {
        left: 15%;
        bottom: 10%;
    }
    
    .tist-static-image:nth-child(6) {
        right: 15%;
        bottom: 8%;
    }
}

/* WordPress theme compatibility - High specificity overrides */
.tist-hero-section * {
    box-sizing: border-box !important;
}

/* Ensure the hero section doesn't inherit unwanted styles */
.tist-hero-section,
.tist-hero-section * {
    margin: 0;
    padding: 0;
}

.tist-hero-section {
    margin: 0 !important;
    padding: 0 !important;
}

/* Force image container overrides */
.tist-hero-section .tist-desktop-images,
.tist-hero-section .tist-mobile-images {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Force all images in hero section to display properly */
.tist-hero-section img.tist-trail-image {
    max-width: none !important;
    width: 250px !important;
    height: 250px !important;
    vertical-align: baseline !important;
    line-height: normal !important;
}

.tist-hero-section img.tist-static-image {
    max-width: none !important;
    width: 150px !important;
    height: 150px !important;
    vertical-align: baseline !important;
    line-height: normal !important;
}

/* Override theme link styles */
.tist-hero-section a.tist-nav-button {
    color: white !important;
    text-decoration: none !important;
    font-family: "League Spartan Bold", Sans-serif;
    font-size: 2.2em;
    line-height: 1.3em;
    font-size: clamp(2.2em, 3vw, 1.5rem);
    font-weight: 400;
    text-align: center;
}
.tist-hero-section a.tist-nav-button,
.tist-hero-section a.tist-nav-button:link,
.tist-hero-section a.tist-nav-button:visited,
.tist-hero-section a.tist-nav-button:hover,
.tist-hero-section a.tist-nav-button:active {
    color: white !important;
    text-decoration: none !important;
}
