/* HOPn Models Homepage — premium dark/luxury + light mode */

:root {
    --home-surface: var(--hopn-surface);
    --home-text: var(--hopn-cream-muted);
    --home-heading: var(--hopn-cream);
}

[data-theme="light"] {
    --hopn-ink: #f8f6f2;
    --hopn-ink-soft: #ffffff;
    --hopn-surface: #ffffff;
    --hopn-surface-elevated: #f0ebe3;
    --hopn-cream: #1a1816;
    --hopn-cream-muted: #4a4540;
    --hopn-muted: #7a736a;
    --hopn-accent-rgb: 15, 76, 255;
    --hopn-accent-secondary-rgb: 0, 194, 255;
    --hopn-nav-bg: rgba(255, 255, 255, 0.92);
    --home-surface: #f0ebe3;
    --home-text: #4a4540;
    --home-heading: #1a1816;
}

[data-theme="premium"] {
    --home-surface: var(--hopn-surface);
    --home-text: var(--hopn-cream-muted);
    --home-heading: var(--hopn-cream);
}

[data-theme="light"] .hopn-nav { background: rgba(255,255,255,.92); }
[data-theme="light"] .navbar-toggler-icon { filter: none; }
[data-theme="premium"] .hopn-nav { background: rgba(0, 0, 0, 0.94); border-bottom-color: var(--hopn-border); }
[data-theme="premium"] .navbar-toggler-icon { filter: invert(1); }

.text-cream { color: var(--home-heading) !important; }
.bg-surface { background: var(--home-surface); }
.home-section { position: relative; }
@media (max-width: 767.98px) {
    .home-section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}
.tracking-wide { letter-spacing: .12em; }

/* Hero — reduced height so content appears above fold */
.home-hero {
    position: relative;
    min-height: 58vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-row { min-height: auto; padding: 2.5rem 0 1.5rem; }
.hero-title {
    font-size: clamp(1.65rem, 4.5vw, 2.75rem);
    line-height: 1.12;
}
.hero-lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
}
.hero-cta-row .btn-lg {
    font-size: clamp(0.9rem, 2vw, 1rem);
    padding: 0.65rem 1.1rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slides { width: 100%; height: 100%; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center top;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: .4; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.88) 100%);
}
[data-theme="light"] .hero-overlay {
    background: linear-gradient(135deg, rgba(248,246,242,.95), rgba(248,246,242,.72));
}
[data-theme="premium"] .hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.65) 45%, rgba(0,0,0,.92) 100%);
}
[data-theme="premium"] .hero-slide.active { opacity: 0.25; }
[data-theme="premium"] .hero-title {
    font-family: var(--hopn-font-display);
    letter-spacing: -0.01em;
}
.hero-search-input .form-control { border-radius: 0; }
.hero-search-input .input-group-text { background: var(--hopn-surface-elevated); border-color: var(--hopn-border); }
[data-theme="premium"] .hero-search-input .form-control {
    background: var(--hopn-surface-elevated);
    border-color: var(--hopn-border);
}
[data-theme="premium"] .filter-strip {
    background: rgba(0, 0, 0, 0.9);
    border-bottom-color: var(--hopn-border-subtle);
}
[data-theme="premium"] .discover-strip {
    background: linear-gradient(180deg, rgba(var(--hopn-accent-rgb), 0.06), transparent);
}
[data-theme="premium"] .discover-card,
[data-theme="premium"] .featured-carousel-btn,
[data-theme="premium"] .filter-pill,
[data-theme="premium"] .shorts-video-wrap,
[data-theme="premium"] .floating-btn {
    border-color: var(--hopn-border);
}
[data-theme="premium"] .filter-pill:hover,
[data-theme="premium"] .filter-pill.active {
    background: var(--hopn-accent-bg);
    border-color: var(--hopn-gold);
    color: var(--hopn-gold-light);
}
[data-theme="premium"] .featured-carousel-btn {
    background: rgba(0, 0, 0, 0.85);
    color: var(--hopn-gold-light);
}
[data-theme="premium"] .featured-carousel-btn:hover {
    background: var(--hopn-accent-bg);
}
[data-theme="premium"] .stats-section {
    background: linear-gradient(135deg, rgba(var(--hopn-accent-rgb), 0.08), transparent);
}
[data-theme="premium"] .floating-btn-primary {
    background: var(--hopn-btn-primary-bg);
    border-color: var(--hopn-gold);
    color: var(--hopn-btn-primary-text);
}
[data-theme="premium"] .floating-btn:hover {
    background: var(--hopn-accent-bg);
    color: var(--hopn-gold-light);
}
[data-theme="premium"] .hero-float-card:hover {
    border-color: var(--hopn-gold-light);
    box-shadow: 0 12px 32px rgba(var(--hopn-accent-rgb), 0.2);
}

.hero-trust-badges { justify-content: center; }
.hero-trust-badge {
    display: inline-flex; align-items: center;
    font-size: .8rem; color: var(--hopn-cream-muted);
    background: var(--hopn-accent-bg-soft);
    border: 1px solid var(--hopn-border);
    border-radius: 999px; padding: .35rem .75rem;
}

.hero-floating-cards { position: relative; height: 320px; margin-top: 1rem; }
.hero-float-card {
    position: absolute;
    display: flex; align-items: center; gap: .65rem;
    background: rgba(26,26,26,.92);
    border: 1px solid var(--hopn-border);
    border-radius: 12px; padding: .45rem .85rem;
    text-decoration: none; color: var(--hopn-cream);
    animation: floatCard 6s ease-in-out infinite;
    backdrop-filter: blur(8px);
    transition: transform .25s, border-color .25s, box-shadow .25s;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.hero-float-card:hover {
    transform: translateY(-4px);
    border-color: var(--hopn-gold);
    box-shadow: 0 12px 32px rgba(var(--hopn-accent-rgb), 0.15);
}
.hero-float-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--hopn-gold); }
.hero-float-info { display: flex; flex-direction: column; font-size: .8rem; }
.hero-float-info span { color: var(--hopn-muted); font-size: .72rem; }
.hero-float-1 { top: 8%; right: 2%; animation-delay: 0s; }
.hero-float-2 { top: 32%; right: 18%; animation-delay: 1s; }
.hero-float-3 { top: 58%; right: 4%; animation-delay: 2s; }
.hero-float-4 { top: 18%; right: 38%; animation-delay: .5s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Discover Talent strip */
.discover-strip { background: linear-gradient(180deg, rgba(var(--hopn-accent-rgb), .06), transparent); }
.discover-carousel-wrap {
    position: relative;
}
@media (min-width: 992px) {
    .discover-carousel-wrap.is-scrollable {
        padding-left: 2.25rem;
        padding-right: 2.25rem;
    }
}
.discover-scroll,
.discover-talent-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.discover-scroll::-webkit-scrollbar,
.discover-talent-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.discover-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background: var(--hopn-surface-elevated);
    border: 1px solid rgba(var(--hopn-accent-rgb), .15);
    border-radius: 14px; overflow: hidden;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.discover-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--hopn-accent-rgb), .45);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.discover-card-photo {
    position: relative; display: block; aspect-ratio: 3/4; overflow: hidden;
}
.discover-card-photo img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.discover-card:hover .discover-card-photo img { transform: scale(1.05); }
.discover-verified {
    position: absolute; top: .5rem; right: .5rem;
    width: 22px; height: 22px; border-radius: 50%;
    background: #4e9e81; color: #fff; font-size: .65rem;
    display: flex; align-items: center; justify-content: center;
}
.discover-card-body { padding: .75rem; position: relative; z-index: 0; }
.discover-card-name { font-size: .95rem; margin-bottom: .25rem; }
.discover-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-indent: -9999px;
    overflow: hidden;
}
.discover-card-link:focus-visible {
    outline: 2px solid var(--hopn-gold);
    outline-offset: 2px;
}
.discover-card:has(.discover-card-link) { cursor: pointer; }
.discover-card-book { position: relative; z-index: 2; }

/* Filter strip */
.filter-strip {
    position: static;
    padding: .75rem 0; background: rgba(10,10,10,.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--hopn-accent-rgb), .12);
}
[data-theme="light"] .filter-strip { background: rgba(255,255,255,.92); }
.filter-strip-inner { padding: .85rem 1rem; margin-bottom: 0; }
.filter-pills-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .65rem; }
.filter-pills-label { flex: 0 0 auto; min-width: 4.5rem; }
.filter-pills, .scroll-x {
    display: flex;
    gap: .4rem;
}
.filter-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid rgba(var(--hopn-accent-rgb), .2);
    background: transparent; color: var(--hopn-cream-muted);
    border-radius: 999px; padding: .3rem .75rem;
    font-size: .78rem; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.filter-pill:hover, .filter-pill.active {
    background: rgba(var(--hopn-accent-rgb), .18);
    color: var(--hopn-gold);
    border-color: var(--hopn-gold);
}
.filter-controls-row {
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
.filter-search-input { flex: 1 1 160px; min-width: 140px; }
.filter-controls-row .form-control { max-width: 110px; }
.filter-toggle {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .78rem; color: var(--hopn-cream-muted);
    margin: 0; white-space: nowrap;
}
.filter-count { margin-left: auto; }

/* Featured carousel */
.featured-carousel-wrap { position: relative; }
.featured-carousel {
    display: flex;
    gap: 1rem;
    padding: .25rem 2.5rem 1rem;
}
.featured-carousel-item {
    flex: 0 0 260px;
    scroll-snap-align: start;
}
.featured-carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(var(--hopn-accent-rgb), .35);
    background: rgba(10,10,10,.75); color: var(--hopn-cyan);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2;
    transition: background .2s, transform .2s;
}
.featured-carousel-btn:hover { background: rgba(var(--hopn-accent-rgb), .25); transform: translateY(-50%) scale(1.05); }
.featured-carousel-prev { left: 0; }
.featured-carousel-next { right: 0; }

/* Talent card */
.talent-card {
    transition: transform .25s, box-shadow .25s, border-color .25s;
    overflow: hidden;
}
.talent-card:has(.talent-card-link) { cursor: pointer; }
.talent-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-indent: -9999px;
    overflow: hidden;
}
.talent-card-link:focus-visible {
    outline: 2px solid var(--hopn-gold);
    outline-offset: 2px;
}
.talent-card:hover,
.talent-card:has(.talent-card-link:focus-visible) {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.28);
    border-color: rgba(var(--hopn-accent-rgb), .35) !important;
}
.talent-card-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; height: auto; }
.talent-card-cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.talent-card:hover .talent-card-cover-img { transform: scale(1.04); }
.talent-card-avatar-wrap { position: absolute; bottom: -28px; left: 1rem; }
.talent-card-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    border: 3px solid var(--hopn-gold); object-fit: cover;
}
.talent-card-verified {
    position: absolute; bottom: 0; right: -4px;
    background: #4e9e81; color: #fff;
    width: 18px; height: 18px; border-radius: 50%;
    font-size: .6rem; display: flex; align-items: center; justify-content: center;
}
.talent-card-available {
    position: absolute; top: .5rem; right: .5rem;
    background: rgba(78,158,129,.9); color: #fff;
    font-size: .65rem; padding: 2px 8px; border-radius: 4px;
}
.talent-card-body { padding-top: 2rem !important; position: relative; z-index: 0; }
.talent-card-actions { position: relative; z-index: 2; }
.talent-card-actions .btn { padding: .25rem .5rem; }
.search-result-item .talent-card,
.filter-result-item .talent-card { height: 100%; width: 100%; }

/* AI Search */
.ai-search-box { position: relative; }
.ai-search-textarea { resize: none; padding-right: 3rem; }
.ai-search-submit { position: absolute; bottom: .5rem; right: .5rem; }
.ai-msg { padding: .75rem 1rem; border-radius: 8px; margin-bottom: .5rem; font-size: .9rem; }
.ai-msg-bot { background: var(--hopn-surface-elevated); }
.ai-msg-user { background: rgba(var(--hopn-accent-rgb), .15); text-align: right; }
.ai-suggestions-dropdown {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--hopn-surface-elevated);
    border: 1px solid rgba(var(--hopn-accent-rgb), .2);
    border-radius: 8px; z-index: 100; max-height: 280px; overflow-y: auto;
}
.ai-suggestion-item {
    display: block; padding: .5rem 1rem; color: var(--hopn-cream-muted);
    text-decoration: none; border-bottom: 1px solid rgba(var(--hopn-accent-rgb), .08);
}
.ai-suggestion-item:hover { background: rgba(var(--hopn-accent-rgb), .1); color: var(--hopn-gold); }
.ai-prompt-chip { font-size: .8rem; }

/* Category / City cards */
.category-card:hover, .city-card:hover, .blog-card:hover {
    border-color: var(--hopn-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.category-card, .city-card { transition: transform .25s, border-color .25s, box-shadow .25s; }
.city-card-img { height: 100px; background-size: cover; background-position: center; }
.brand-card .brand-logo { max-height: 48px; max-width: 100%; object-fit: contain; filter: grayscale(30%); }
.brand-card:hover .brand-logo { filter: none; }

/* Trending tabs */
.trending-tabs { flex-wrap: wrap; gap: .25rem; }
.trending-tabs .nav-link {
    color: var(--hopn-muted); background: transparent;
    border: 1px solid rgba(var(--hopn-accent-rgb), .15); border-radius: 20px;
    padding: .35rem .85rem; font-size: .85rem; cursor: pointer;
}
.trending-tabs .nav-link.active, .trending-tabs .nav-link:hover {
    background: rgba(var(--hopn-accent-rgb), .15); color: var(--hopn-gold); border-color: var(--hopn-gold);
}

/* Shorts */
.shorts-scroll {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
}
.shorts-stack { display: grid; gap: 1rem; }
.shorts-item { flex: 0 0 200px; scroll-snap-align: start; }
.shorts-video-wrap {
    position: relative; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden;
    background: var(--hopn-surface-elevated);
    border: 1px solid rgba(var(--hopn-accent-rgb), .15);
    transition: transform .25s, border-color .25s;
}
.shorts-item:hover .shorts-video-wrap {
    transform: translateY(-3px);
    border-color: rgba(var(--hopn-accent-rgb), .4);
}
.shorts-video, .shorts-thumb { width: 100%; height: 100%; object-fit: cover; }
.shorts-placeholder { height: 100%; background: var(--hopn-surface); }
.shorts-play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; transition: opacity .2s, transform .2s;
}
.shorts-item:hover .shorts-play-icon { opacity: .85; transform: translate(-50%, -50%) scale(1.08); }
.shorts-video-wrap.is-playing .shorts-play-icon { opacity: 0; }
.shorts-profile-link { padding-left: 2px; }
.shorts-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,.88));
    color: #fff; font-size: .85rem;
}

/* Stats */
.stats-section { background: linear-gradient(135deg, rgba(var(--hopn-accent-rgb), .08), transparent); }
.stat-number { font-size: 2.5rem; display: block; line-height: 1.2; }

/* Steps */
.step-card { position: relative; }
.step-number {
    position: absolute; top: -10px; right: 1rem;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--hopn-gold); color: var(--hopn-ink);
    font-weight: 700; font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
}

/* Testimonials */
.testimonial-card { border-left: 3px solid var(--hopn-gold); }
.testimonial-avatar { object-fit: cover; border: 2px solid rgba(var(--hopn-accent-rgb), .35); }

/* Floating actions */
.floating-actions {
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    z-index: 1035;
    pointer-events: none;
}
.floating-actions > * {
    pointer-events: auto;
}
.floating-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hopn-surface-elevated);
    border: 1px solid rgba(var(--hopn-accent-rgb), 0.3);
    color: var(--hopn-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    font-size: 1rem;
}
.floating-btn-primary {
    background: linear-gradient(135deg, var(--hopn-blue), #0a3dd4);
    border-color: var(--hopn-blue);
    color: #fff;
}
.floating-btn-secondary {
    opacity: 0.92;
}
.floating-btn:hover {
    transform: scale(1.06);
    background: rgba(var(--hopn-accent-rgb), 0.2);
    color: var(--hopn-gold-light);
}
.floating-btn-primary:hover {
    filter: brightness(1.1);
    color: #fff;
}
.floating-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}
.floating-whatsapp:hover {
    background: #1fb855;
    color: #fff;
}
#backToTop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}
body.has-cookie-banner .floating-actions {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0));
}
body.page-home.has-cookie-banner .floating-actions {
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0));
}

/* Nav search — homepage override removed; hopn.css owns sizing */
.nav-search-form {
    min-width: 0;
}

/* Pricing anchor stub */
#pricing { scroll-margin-top: 80px; }

@media (prefers-reduced-motion: reduce) {
    .hero-float-card, .hero-slide, .talent-card, .discover-card, .shorts-item { animation: none !important; transition: none !important; }
    .featured-carousel { scroll-behavior: auto; }
}

@media (min-width: 992px) {
    .hero-trust-badges { justify-content: flex-start; }
    .home-hero { min-height: 62vh; }
    .hero-floating-cards { height: 380px; margin-top: 0; }
    .discover-card { flex-basis: 200px; }
    .featured-carousel-item { flex-basis: 280px; }
}

@media (min-width: 1200px) {
    .discover-carousel-wrap .discover-scroll {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        overflow-x: visible;
        scroll-snap-type: none;
    }
    .discover-carousel-wrap .discover-card {
        flex: none;
        width: auto;
    }
}

@media (max-width: 991px) {
    .hero-floating-cards {
        height: auto; display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem; margin-top: 1.25rem;
    }
    .hero-float-card {
        position: relative !important; top: auto !important; right: auto !important;
        animation: none; padding: .4rem .65rem;
    }
    .hero-float-card img { width: 36px; height: 36px; }
    .shorts-scroll-desktop { display: none; }
}

@media (min-width: 768px) {
    .shorts-stack { display: none; }
}

@media (max-width: 575.98px) {
    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-cta-row .btn {
        width: 100%;
    }
    .floating-btn-secondary {
        display: none !important;
    }
    .floating-actions {
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
        gap: 0.35rem;
    }
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .home-hero { min-height: auto; }
    .hero-row { padding: 1.75rem 0 1rem; text-align: center; }
    .filter-controls-row .form-control { max-width: none; flex: 1 1 45%; }
    .filter-count { flex-basis: 100%; margin-left: 0; text-align: right; }
    .featured-carousel { padding-left: .5rem; padding-right: .5rem; }
    .featured-carousel-btn { display: none; }
    .shorts-item { flex: 0 0 160px; }
    .stat-number { font-size: 1.75rem; }
    .discover-card { flex-basis: 150px; }
}

[dir="rtl"] .talent-card-avatar-wrap { left: auto; right: 1rem; }
[dir="rtl"] .floating-actions { right: auto; left: 1.5rem; }

/* Filter areas scroll with page — only navbar may stay sticky */
.filter-strip,
.filter-bar,
.sticky-filter-section .filter-bar,
.sticky-filter-section.filter-strip,
.search-toolbar,
.search-quick-filters,
.search-sidebar-col,
.search-sidebar,
.search-compact-bar,
#trending .section-header,
#filter-results-section {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}
