/* ============================================================
   HOMEPAGE REDESIGN - Matching New Mockup Design
   ============================================================ */

/* ============================================================
   UPDATED COLOR VARIABLES
   ============================================================ */
:root {
    --hero-bg-dark: #1a0a1f;
    --hero-bg-purple: #2d1040;
    --cta-chat-color: #00d4aa;
    --cta-chat-hover: #00b894;
    --cta-call-color: #e040fb;
    --cta-call-hover: #d500f9;
    --story-ring-live: linear-gradient(135deg, #e040fb, #ff4081);
    --story-ring-new: linear-gradient(135deg, #7c4dff, #e040fb);
    --story-ring-default: linear-gradient(135deg, #6c63ff, #e040fb);
}

/* ============================================================
   REDESIGNED NAVBAR
   ============================================================ */
.navbar {
    background: rgba(26, 10, 31, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    -webkit-text-fill-color: initial;
    background: none;
}

.nav-brand a i {
    display: none;
}

/* Logo image */
.nav-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu li a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.nav-menu li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Dropdown styling */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 10, 31, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(224, 64, 251, 0.15);
    color: #fff;
}

.dropdown-menu li a i {
    width: 18px;
    color: var(--cta-call-color);
}

.btn-login {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.btn-register {
    background: #fff !important;
    color: #1a0a1f !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border: none !important;
}

.btn-register:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* ============================================================
   REDESIGNED HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--hero-bg-dark) 0%, var(--hero-bg-purple) 50%, var(--hero-bg-dark) 100%);
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
}

/* Background image with blur */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center top;
    filter: blur(12px);
    opacity: 0.4;
    transform: scale(1.1);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 10, 31, 0.8) 0%, rgba(45, 16, 64, 0.7) 50%, rgba(26, 10, 31, 0.8) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Hide the old brand title */
.brand-title-wrapper {
    display: none !important;
}

/* New hero headline styles */
.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #fff;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Hide old hero stats */
.hero-stats {
    display: none !important;
}

/* New CTA Buttons Container */
.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 220px;
}

.hero-cta-btn.chat-btn {
    background: var(--cta-chat-color);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
}

.hero-cta-btn.chat-btn:hover {
    background: var(--cta-chat-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.5);
}

.hero-cta-btn.call-btn {
    background: var(--cta-call-color);
    color: #fff;
    box-shadow: 0 4px 20px rgba(224, 64, 251, 0.4);
}

.hero-cta-btn.call-btn:hover {
    background: var(--cta-call-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 64, 251, 0.5);
}

/* ============================================================
   REDESIGNED STORIES SECTION
   ============================================================ */
.stories-section {
    padding: 0.5rem 0;
    background: linear-gradient(180deg, var(--hero-bg-dark) 0%, #0d0612 100%);
    border-bottom: none;
}

.stories-header {
    margin-bottom: 0.5rem;
}

.stories-header h2 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stories-header h2 i {
    color: var(--cta-call-color);
}

.stories-cta-text {
    display: none;
}

.stories-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
}

.story-item {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.story-item:hover {
    transform: scale(1.05);
}

.story-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: var(--story-ring-default);
    position: relative;
}

.story-avatar.has-story-new {
    background: var(--story-ring-live);
    animation: story-ring-pulse 2s infinite;
}

.story-avatar.has-story {
    background: var(--story-ring-new);
}

@keyframes story-ring-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(224, 64, 251, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(224, 64, 251, 0);
    }
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0d0612;
}

.story-live-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff0050, #ff4081);
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #0d0612;
}

/* New Story badge for stories without live status */
.story-new-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c4dff, #536dfe);
    color: white;
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 2px solid #0d0612;
    white-space: nowrap;
}

.story-username {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-top: 2px;
}

/* ============================================================
   RECENTLY LIVE CAMS SECTION
   ============================================================ */
.recently-live-section {
    padding: 0.5rem 0;
    background: #0d0612;
}

.recently-live-section h2 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recently-live-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.3rem 0;
    scrollbar-width: none;
}

.recently-live-grid::-webkit-scrollbar {
    display: none;
}

.recently-live-item {
    flex-shrink: 0;
    width: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
}

.recently-live-item:hover {
    transform: scale(1.03);
}

.recently-live-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.recently-live-item .live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0050;
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Recently Live */
@media (max-width: 768px) {
    .recently-live-item {
        width: 140px;
    }
    
    .recently-live-item img {
        height: 190px;
    }
    
    .recently-live-section h2 {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }
}

/* ============================================================
   UPDATED FILTERS SECTION
   ============================================================ */
.filters {
    padding: 0.8rem 0;
    background: #0d0612;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
   UPDATED MODELS GRID
   ============================================================ */
.models-grid {
    padding: 1rem 0;
    background: #0d0612;
}

.model-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(224, 64, 251, 0.2);
    border-color: rgba(224, 64, 251, 0.3);
}

.status-badge.online {
    background: linear-gradient(135deg, #ff0050, #ff4081);
    color: white;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 6px;
}

/* HIDE OFFLINE BADGE COMPLETELY */
.status-badge.offline {
    display: none !important;
}

/* ============================================================
   FLOATING MESSAGE BUTTON - NEW DESIGN COLORS
   ============================================================ */
.floating-message-btn a {
    background: linear-gradient(135deg, #6c63ff 0%, #e040fb 100%) !important;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4), 0 6px 25px rgba(0, 0, 0, 0.3) !important;
}

.floating-message-btn a:hover {
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5), 0 10px 35px rgba(0, 0, 0, 0.4) !important;
}

.floating-message-btn.has-unread a {
    animation: none !important;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4), 0 6px 25px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(108, 99, 255, 0.6), 0 6px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(108, 99, 255, 0.3);
    }
}

/* ============================================================
   MOBILE BOTTOM CTA BAR
   ============================================================ */
.mobile-bottom-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem 1rem;
    background: linear-gradient(180deg, rgba(13, 6, 18, 0.95) 0%, rgba(13, 6, 18, 1) 100%);
    backdrop-filter: blur(10px);
    z-index: 998;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-bottom-cta a {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--cta-call-color), #ff4081);
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(224, 64, 251, 0.4);
}

/* ============================================================
   MOBILE RESPONSIVE STYLES
   ============================================================ */
@media (max-width: 768px) {
    /* Mobile navbar - fix the stuck issue */
    .navbar {
        padding: 0.6rem 0;
    }
    
    .nav-brand a {
        font-size: 1.2rem;
    }
    
    .nav-logo {
        width: 28px;
        height: 28px;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        z-index: 1002;
    }
    
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #e040fb;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Mobile menu - hidden by default, shown when active */
    .nav-menu {
        display: none;
        position: fixed;
        top: 55px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 55px);
        background: rgba(26, 10, 31, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem 0;
        z-index: 999;
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* When menu is active, show it */
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu li a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        color: #fff;
        width: 100%;
    }
    
    /* Mobile dropdown */
    .nav-menu .dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.3);
        box-shadow: none;
        border-radius: 0;
        border: none;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .nav-menu .dropdown.open .dropdown-menu {
        max-height: 500px;
    }
    
    .nav-menu .dropdown .dropdown-menu li a {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        justify-content: center;
    }
    
    /* Mobile buttons */
    .btn-login,
    .btn-register {
        width: 90% !important;
        margin: 0.5rem auto !important;
        justify-content: center !important;
        display: block !important;
        text-align: center !important;
    }
    
    /* Mobile hero */
    .hero {
        padding: 1.5rem 0 1rem;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile CTA buttons - card style */
    .hero-cta-buttons {
        flex-direction: row;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .hero-cta-btn {
        flex: 1;
        flex-direction: column;
        padding: 1.5rem 1rem;
        min-width: 0;
        border-radius: 16px;
        font-size: 0.85rem;
    }
    
    .hero-cta-btn i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-cta-btn .btn-text {
        display: block;
    }
    
    /* Mobile stories */
    .stories-section {
        padding: 0.8rem 0;
    }
    
    .story-avatar {
        width: 70px;
        height: 70px;
    }
    
    .story-username {
        font-size: 0.75rem;
        max-width: 75px;
    }
    
    /* Mobile bottom CTA */
    .mobile-bottom-cta {
        display: block;
    }
    
    /* Add padding to main content for bottom bar */
    .footer {
        padding-bottom: 100px;
    }
    
    /* Adjust floating message button position for mobile bottom CTA */
    .floating-message-btn {
        bottom: 90px !important;
    }
    
    /* Model grid mobile */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .model-card {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-cta-btn {
        padding: 1.2rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero-cta-btn i {
        font-size: 1.8rem;
    }
    
    .story-avatar {
        width: 65px;
        height: 65px;
    }
}

/* ============================================================
   FOOTER UPDATES
   ============================================================ */
.footer {
    background: #0a0510;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
   BODY BACKGROUND UPDATE
   ============================================================ */
body {
    background: #0d0612;
}

/* ============================================================
   FILTER SECTION UPDATES
   ============================================================ */
.filter-bar-enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.filter-group label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label i {
    color: var(--cta-call-color);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--cta-call-color);
    border-color: var(--cta-call-color);
    color: #fff;
}

/* ============================================================
   VIEW PROFILE BUTTON STYLE
   ============================================================ */
.view-profile-btn-wrapper {
    margin-top: 0.8rem;
}

.view-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--cta-call-color), #ff4081);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.model-card:hover .view-profile-btn {
    box-shadow: 0 4px 15px rgba(224, 64, 251, 0.4);
}
