/* ==========================================================================
   ENHANCED PREMIUM STYLES - HostessAdvisor UI/UX Redesign
   Phase 6: Modern, Premium Design System
   ========================================================================== */

/* --- CSS Variables Enhancement --- */
:root {
    /* Premium Color Palette */
    --premium-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    --premium-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --premium-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --premium-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Animation Timings */
    --anim-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --anim-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --anim-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Category Strip Enhancement --- */
.category-strip {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.category-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--premium-purple);
}

.category-item {
    position: relative;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s var(--anim-smooth);
}

.category-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--premium-purple);
    transition: all 0.3s var(--anim-bounce);
    transform: translateX(-50%);
}

.category-item:hover::after,
.category-item.active::after {
    width: 80%;
}

.category-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f6f8fb, #e9ecef);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1),
                -4px -4px 12px rgba(255, 255, 255, 0.9);
    transition: all 0.3s var(--anim-spring);
}

.category-item:hover .category-icon-circle,
.category-item.active .category-icon-circle {
    background: var(--premium-purple);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
}

.category-item:hover .category-icon-circle i,
.category-item.active .category-icon-circle i {
    color: white !important;
}

.category-label {
    transition: all 0.3s var(--anim-smooth);
}

.category-item:hover .category-label,
.category-item.active .category-label {
    color: #667eea !important;
    font-weight: 700 !important;
}

/* --- Premium Filters Section --- */
.filters-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 1.5rem 0;
}

.filter-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.filter-bar .btn-outline-secondary {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px !important;
    transition: all 0.3s var(--anim-spring);
    position: relative;
    overflow: hidden;
}

.filter-bar .btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--premium-purple);
    transition: left 0.3s var(--anim-smooth);
    z-index: -1;
}

.filter-bar .btn-outline-secondary:hover::before,
.filter-bar .btn-outline-secondary.active::before {
    left: 0;
}

.filter-bar .btn-outline-secondary:hover,
.filter-bar .btn-outline-secondary.active {
    color: white !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* --- Featured Section Premium --- */
.featured-section {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.featured-section::before {
    content: '✨';
    position: absolute;
    top: -15px;
    left: 30px;
    font-size: 28px;
    background: white;
    padding: 0 10px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.featured-section h4 {
    background: var(--premium-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* --- Sidebar Premium Ads --- */
.advertisements-sidebar {
    padding: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.advertisement-card {
    position: relative;
    background: white;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.4s var(--anim-spring);
}

.advertisement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--premium-gold);
    opacity: 0;
    transition: opacity 0.3s var(--anim-smooth);
}

.advertisement-card:hover::before {
    opacity: 1;
}

.advertisement-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.advertisement-card .ad-title {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.advertisement-card img {
    transition: transform 0.5s var(--anim-smooth);
}

.advertisement-card:hover img {
    transform: scale(1.05);
}

/* --- Statistics Widget Premium --- */
.statistics-widget {
    background: var(--premium-dark) !important;
    position: relative;
    overflow: hidden;
    border-radius: 20px !important;
}

.statistics-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.statistics-widget .card-body {
    position: relative;
    z-index: 1;
}

/* --- Premium Modal Enhancements --- */
.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 1.5rem 2rem;
}

.modal-title {
    background: var(--premium-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.modal-body {
    padding: 2rem;
}

/* Nationality Button Premium */
.nationality-btn {
    border-radius: 16px !important;
    background: linear-gradient(145deg, #ffffff, #f5f5f5) !important;
    border: 2px solid transparent !important;
    transition: all 0.3s var(--anim-spring) !important;
    position: relative;
    overflow: hidden;
}

.nationality-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: var(--premium-purple);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s var(--anim-smooth);
}

.nationality-btn:hover::before,
.nationality-btn.selected::before {
    opacity: 1;
}

.nationality-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
}

.nationality-btn:hover span:first-child {
    animation: bounce-emoji 0.6s var(--anim-bounce);
}

@keyframes bounce-emoji {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* --- Hostess Card Premium Upgrade --- */
.hostess-card {
    position: relative;
    border-radius: 20px !important;
    overflow: hidden;
    border: none !important;
    background: white;
}

.hostess-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s var(--anim-smooth);
}

.hostess-card:hover::before {
    opacity: 1;
}

.hostess-card:hover {
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15) !important;
}

.vip-badge {
    background: var(--premium-gold) !important;
    animation: shine 3s infinite;
    font-weight: 900 !important;
    letter-spacing: 0.5px;
}

@keyframes shine {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
}

/* --- Loading Animation --- */
.hostess-card-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- View Toggle Premium --- */
#listViewBtn.active,
#mapViewBtn.active {
    background: var(--premium-purple) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* --- Active Filters Chips --- */
.active-filters .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.25rem;
    animation: fadeInScale 0.3s var(--anim-spring);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.filter-chip .remove-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s var(--anim-smooth);
}

.filter-chip .remove-filter:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

/* --- Responsive Enhancements --- */
@media (max-width: 992px) {
    .advertisements-sidebar {
        margin-top: 2rem;
    }
    
    .featured-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        border-radius: 20px 20px 0 0;
        margin: 0;
    }
    
    .modal-dialog {
        margin: auto 0 0 0;
        max-width: 100%;
    }
    
    .filter-bar {
        border-radius: 16px;
    }
    
    .category-icon-circle {
        width: 48px;
        height: 48px;
    }
}

/* --- Hover Lift Effect --- */
.hover-lift {
    transition: all 0.4s var(--anim-spring) !important;
}

.hover-lift:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

/* --- Premium Button Styles --- */
.btn-premium {
    background: var(--premium-purple);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s var(--anim-spring);
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    color: white;
}

/* --- Smooth Page Transitions --- */
.view-container {
    animation: fadeInUp 0.4s var(--anim-smooth);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   ENHANCED FEATURED CAROUSEL STYLES
   ========================================================================== */

/* Featured Carousel Premium Wrapper */
#featuredCarousel {
    position: relative;
    padding: 0;
}

#featuredCarousel .carousel-inner {
    border-radius: 16px;
    overflow: visible;
}

/* Premium Carousel Indicators */
#featuredCarousel .carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
}

#featuredCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid white;
    opacity: 0.4;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#featuredCarousel .carousel-indicators .active {
    opacity: 1;
    transform: scale(1.3);
}

/* Carousel Control Buttons Premium */
#featuredCarousel .carousel-control-prev,
#featuredCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.featured-section:hover #featuredCarousel .carousel-control-prev,
.featured-section:hover #featuredCarousel .carousel-control-next {
    opacity: 1;
}

#featuredCarousel .carousel-control-prev:hover,
#featuredCarousel .carousel-control-next:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

#featuredCarousel .carousel-control-prev-icon,
#featuredCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Premium Featured Badge */
.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
    z-index: 10;
    animation: featuredPulse 2s infinite;
}

@keyframes featuredPulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4); }
    50% { box-shadow: 0 8px 30px rgba(255, 165, 0, 0.7); }
}

/* Hostess Card in Carousel - Enhanced */
.featured-section .hostess-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-section .hostess-card:hover {
    transform: translateY(-12px) scale(1.02);
    z-index: 10;
}

/* Swipe Animation for Carousel Items */
.carousel-item {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger animation for cards entering view */
.carousel-item.active .col-md-4:nth-child(1) { animation-delay: 0s; }
.carousel-item.active .col-md-4:nth-child(2) { animation-delay: 0.1s; }
.carousel-item.active .col-md-4:nth-child(3) { animation-delay: 0.2s; }

.carousel-item.active .col-md-4 {
    animation: slideInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auto-scroll pause on hover */
.featured-section:hover #featuredCarousel {
    --bs-carousel-interval: 999999; /* Effectively pause */
}
