/**
 * Layout CSS
 * Layout and structural styles for AsteroidWP theme
 *
 * @package AsteroidWP
 */

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 0;
    padding: 2rem 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Create visual with CSS when spacer is used */
.hero .wp-block-spacer {
    position: relative;
}

.hero .wp-block-spacer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--orange-primary), var(--orange-accent));
    border-radius: 50% 40% 60% 30%;
    animation: asteroidFloat 4s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    z-index: 2;
}

/* Trail for asteroid */
.hero .wp-block-spacer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--orange-primary), transparent);
    transform: translateY(-50%);
    animation: trailPulse 2s ease-in-out infinite;
    z-index: 1;
}

/* Section Backgrounds */
.why-asteroid {
    background: rgba(15, 52, 96, 0.3);
    backdrop-filter: blur(10px);
}

.plugins {
    background: rgba(22, 33, 62, 0.4);
}

.social-proof {
    background: rgba(15, 52, 96, 0.3);
    padding: 4rem 0;
}

.final-cta {
    background: linear-gradient(45deg, var(--dark-secondary), var(--dark-accent));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

/* Entering asteroid in final CTA */
.final-cta {
    position: relative;
    overflow: hidden;
}

.final-cta::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--orange-primary), var(--orange-accent));
    border-radius: 50% 40% 60% 30%;
    animation: enterAtmosphere 6s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.7);
    pointer-events: none;
}

/* Asteroid Belt Visual */
.asteroid-belt-visual {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Styles */
.logo,
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo-img {
    width: 40px;
    height: 40px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
}

/* Footer Text */
.footer-text {
    text-align: right;
    opacity: 0.7;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Section Content Wrapper */
.section-content {
    position: relative;
    z-index: 1;
}

/* Teaser Text */
.teaser-text {
    position: relative;
    z-index: 1;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        margin-top: 0;
        padding: 1rem 1rem;
    }

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

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .footer-text {
        text-align: center;
    }
}

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

    .hero-content {
        padding: 2rem 1rem;
    }
}

/* Mobile Navigation Overlay */
@media (max-width: 768px) {
    .wp-block-navigation__responsive-container.is-menu-open {
        position: fixed;
        left: 0;
        top: 80px;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        z-index: 999;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .wp-block-navigation-item {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }

    .wp-block-navigation-item a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    }
}
