/* hero-revamp.css */
/* Re-bases the body styling for the homepage to match the light theme design */

body.hero-revamp-active {
    background-color: #fcfcfc !important; /* Very light gray/white background */
    color: #111111 !important;
    font-family: 'Inter Tight', sans-serif !important;
}

/* Hide existing dark theme elements if they leak */
.hero-revamp-active .deep-space-glow,
.hero-revamp-active .blueprint-dot-grid {
    display: none !important;
}

/* === Top Navigation Pill === */
.nav-pill-wrapper {
    position: fixed;
    top: 2.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.desktop-logo-fixed {
    position: absolute;
    left: 4.5rem; /* Match the page padding */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.4rem;
    color: #111;
}

.site-logo-wordmark {
    display: block !important;
    width: clamp(142px, 11vw, 178px) !important;
    max-width: 178px !important;
    height: auto !important;
    max-height: 48px !important;
    object-fit: contain !important;
}

.desktop-logo-fixed .site-logo-wordmark {
    width: clamp(150px, 12vw, 190px) !important;
    max-width: 190px !important;
}

.mobile-logo .site-logo-wordmark {
    width: 138px !important;
    max-width: 138px !important;
    max-height: 42px !important;
}

.nav-pill {
    background-color: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    gap: 2.5rem;
    border: 1px solid rgba(0,0,0,0.03);
}

.nav-pill-links {
    display: flex;
    gap: 1.5rem;
}

.nav-pill-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-pill-link:hover {
    color: #2534f9; /* Vibrant blue hover */
}

.nav-pill-btn {
    background-color: #2534f9;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(37, 52, 249, 0.3);
    border: none;
    cursor: pointer;
}

.nav-pill-btn:hover {
    background-color: #1e2bcc;
    transform: translateY(-1px);
}

/* === Main Split Layout === */
.hero-revamp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 4.5rem 0 4.5rem;
    display: flex;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-left {
    flex: 1.1;
    max-width: 550px;
}

.hero-right {
    flex: 1.3;
    position: relative;
}

/* === Left Side Typography & Tags === */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #111;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.hero-tag-icon {
    color: #2534f9;
}

.hero-tag span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-title {
    font-size: 5.2rem !important;
    font-weight: 800 !important;
    line-height: 0.95 !important;
    color: #111 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.04em !important;
    text-transform: none !important;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.madlibs-form {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.6;
    color: #111;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.custom-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 2rem;
    font-weight: 700;
    padding: 0.2rem 2.5rem 0.2rem 1.2rem;
    user-select: none;
}

.custom-dropdown::after {
    content: "";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-color: #fff;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    mask-size: contain;
    mask-repeat: no-repeat;
    pointer-events: none;
}

.dropdown-selected {
    color: #fff;
}
.pill-green .dropdown-selected {
    color: #111;
}
.pill-green.custom-dropdown::after {
    background-color: #111;
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    min-width: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown.open {
    z-index: 2000;
}

.dropdown-option {
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    color: #111;
    transition: background 0.2s;
    white-space: nowrap;
}

.dropdown-option:hover {
    background: #f5f5f5;
    color: #2534f9;
}

.madlibs-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.madlibs-pill:hover {
    transform: scale(1.02);
}

.pill-blue {
    background-color: #2534f9;
    box-shadow: 0 6px 16px rgba(37, 52, 249, 0.3);
}

.pill-green {
    background-color: #c5f930;
    box-shadow: 0 6px 16px rgba(197, 249, 48, 0.3);
}

.hero-action-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #2534f9;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 52, 249, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.hero-submit:hover {
    transform: translateY(-2px);
    background-color: #1e2bcc;
}

.hero-arrow-svg {
    width: 100px;
    height: auto;
    color: #444;
}

/* === Social Proof === */
.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.avatars-stack {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #eee;
    margin-left: -12px;
    object-fit: cover;
}
.avatar:first-child { margin-left: 0; }

.social-stars {
    display: flex;
    flex-direction: column;
}

.stars {
    color: #c5f930;
    font-size: 1.2rem;
    letter-spacing: -2px;
    margin-bottom: 0.2rem;
}
.social-text {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

/* === Bento Box Grid === */
.bento-grid {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.bento-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bento-col-left {
    flex: 1.25;
}

.bento-col-right {
    flex: 1;
}

.bento-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.bento-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.tag-blue { background-color: #e5ebff; color: #2534f9; }
.tag-green { background-color: #f1fcc4; color: #4d6800; }
.tag-yellow { background-color: #fff8c4; color: #8a6d00; }
.tag-purple { background-color: #f3e5ff; color: #6200ea; }

.bento-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.bento-title span { display: block; font-weight: 500; font-size: 1.1rem; color: #444; }

.bento-rating {
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #111;
}

.bento-rating .star { color: #2534f9; }
.bento-card:nth-child(2) .bento-rating .star { color: #84cc16; }
.bento-card:nth-child(3) .bento-rating .star { color: #eab308; }
.bento-card:nth-child(4) .bento-rating .star { color: #a855f7; }


.bento-img {
    width: 100%;
    object-fit: contain;
    transform: scale(1.05);
    margin-top: 1rem;
}

.bento-col-left .bento-card:first-child .bento-img { height: 240px; }
.bento-col-left .bento-card:last-child .bento-img { height: 180px; }
.bento-col-right .bento-card:first-child .bento-img { height: 200px; }
.bento-col-right .bento-card:last-child .bento-img { height: 240px; }

/* Specific Card Adjustments based on screenshot */

/* Hand-drawn arrow overlay on R9 */
.r9-arrow {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 40px;
    height: 40px;
    color: #2534f9;
    z-index: 2;
}

/* === Features Bar === */
.features-bar {
    background: #ffffff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    width: 100%;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #111;
}

.feature-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.icon-blue { background: #e5ebff; color: #2534f9; }
.icon-green { background: #f1fcc4; color: #65a30d; }
.icon-yellow { background: #fff8c4; color: #ca8a04; }
.icon-purple { background: #f3e5ff; color: #9333ea; }

/* === New Card Details (Hidden on Desktop) === */
.bento-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.review-count {
    font-weight: 500;
    color: #666;
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.bento-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-col {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-icon {
    width: 20px;
    height: 20px;
    color: #444;
}

.stat-text {
    font-size: 0.65rem;
    line-height: 1.2;
    color: #666;
}

.stat-text strong {
    display: block;
    font-size: 0.75rem;
    color: #111;
    font-weight: 800;
}

.bento-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #eef2ff;
    color: #2534f9;
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.r9-arrow-text {
    display: none;
    position: absolute;
    top: 5%;
    right: 5%;
    background: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mobile-nav {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: #111;
}

.mobile-menu-btn {
    background: #2534f9;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-panel {
    display: none;
}

.mobile-menu-link {
    text-decoration: none;
}

.mobile-pagination {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
}

.dot.active {
    background: #2534f9;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-revamp-container {
        flex-direction: column;
        padding: 8rem 2rem 0 2rem;
    }
    .hero-left, .hero-right { max-width: 100%; width: 100%; }
}

@media (max-width: 768px) {
    .desktop-logo-fixed { display: none; }
    .hero-title { font-size: 3.5rem !important; }
    .madlibs-form { font-size: 1.5rem; }
    .madlibs-select { font-size: 1.3rem; }

    .nav-pill-wrapper {
        top: 1.25rem;
        padding: 0 1.25rem;
        box-sizing: border-box;
    }
    
    .desktop-nav { display: none; }
    .mobile-nav {
        display: flex;
        width: 100%;
        min-height: 64px;
        padding: 0.5rem 0.55rem 0.5rem 1rem;
        box-sizing: border-box;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.07);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    .mobile-menu-btn {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-menu-panel {
        position: absolute;
        top: calc(100% + 0.65rem);
        left: 1.25rem;
        right: 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem;
        box-sizing: border-box;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 20px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .mobile-menu-panel.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-menu-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.8rem 0.9rem;
        border-radius: 13px;
        color: #111827;
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1;
        transition: color 0.2s ease, background-color 0.2s ease;
    }

    .mobile-menu-link iconify-icon {
        width: 22px;
        height: 22px;
        font-size: 22px;
        flex-shrink: 0;
    }

    .mobile-menu-link:hover,
    .mobile-menu-link:focus-visible {
        color: #2534f9;
        background: #eef2ff;
        outline: none;
    }

    .mobile-menu-link.mobile-menu-cta {
        color: #ffffff;
        background: #2534f9;
    }

    .mobile-menu-link.mobile-menu-cta:hover,
    .mobile-menu-link.mobile-menu-cta:focus-visible {
        color: #ffffff;
        background: #1e2bcc;
    }

    .nav-pill { 
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        gap: 0;
        width: 90%;
        margin: 0 auto;
    }

    .bento-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        margin-right: -2rem; /* bleed out */
        padding-right: 2rem;
    }
    .bento-grid::-webkit-scrollbar { display: none; }
    
    .bento-col {
        display: contents; /* Unpack columns to allow horizontal scroll */
    }
    
    .bento-card {
        min-width: 85%;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
    
    .bento-details { display: block; }
    
    .bento-card-header { order: 1; }
    .bento-img-wrapper { order: 2; display: flex; justify-content: center; position: relative; margin-top: 1rem; margin-bottom: 1rem; }
    .bento-title-row { order: 3; }
    .bento-rating { order: 4; }
    .bento-details { order: 5; }
    
    .bento-title { font-size: 1.8rem; margin-bottom: 0.2rem; }
    .bento-title span { font-size: 1.2rem; display: inline-block; }
    
    .bento-img { margin-top: 0; }
    
    .mobile-pagination { display: flex; }
    
    .features-bar { 
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 1rem;
        gap: 1.5rem;
        border-radius: 100px;
        justify-content: flex-start;
    }
    .features-bar::-webkit-scrollbar { display: none; }
    
    .r9-arrow {
        top: 0;
        right: 0;
        width: 30px;
        height: 30px;
        transform: rotate(45deg);
    }
    .r9-arrow-text {
        display: block;
    }
}
