/* ==================== */
/* NAVBAR STYLES        */
/* ==================== */

/* --- Default Navbar Styles (Top of Page) --- */
.navbar {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.4s ease, border-bottom 0.4s ease, backdrop-filter 0.4s ease;
}

/* Default text and mobile icon colors */
.navbar .nav-link-text,
.navbar .btn-icon {
    color: white;
    transition: color 0.4s ease;
}

/* Default state for the primary button */
.navbar .btn-primary-custom {
    color: white !important; /* Keep text white */
    transition: color 0.4s ease, background-color 0.4s ease;
}


/* --- Scrolled Navbar Styles --- */
.navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Scrolled text and mobile icon colors */
.navbar.navbar-scrolled .nav-link-text,
.navbar.navbar-scrolled .btn-icon {
    color: #111; /* Black color */
}

/* Prevent logo from being affected by other styles on scroll */
.navbar.navbar-scrolled .navbar-brand img {
    filter: none; /* Ensure no filter like invert() is applied */
}

/* ==================== */
/* HERO SECTION         */
/* ==================== */

.explore-hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.explore-header-modern {
    text-align: center;
    position: relative;
    z-index: 2;
    color: white;
}

.explore-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.explore-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ==================== */
/* SEARCH BAR           */
/* ==================== */

.search-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== */
/* CREATORS SECTION     */
/* ==================== */

.creators-section {
    background: #f8fafc;
    min-height: 70vh;
    padding: 4rem 0;
}

.bg-gray-50 {
    background: transparent !important;
    padding-top: 0 !important;
}

/* ==================== */
/* FILTER TABS          */
/* ==================== */

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: white;
    padding: 0.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-tab:hover {
    background: #f1f5f9;
    color: #475569;
}

.filter-tab.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ==================== */
/* CREATOR GRID         */
/* ==================== */

.creator-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.creator-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    border: 2px solid transparent;
}

.creator-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
    text-decoration: none;
    color: inherit;
}

.creator-card-header {
    position: relative;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.creator-avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.creator-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.creator-card-modern:hover .creator-avatar {
    transform: scale(1.1);
}

.creator-avatar-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.creator-card-modern:hover .creator-avatar-ring {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.online-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.creator-card-body {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.creator-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.creator-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-item i {
    font-size: 0.8rem;
    color: #667eea;
}

.creator-bio-preview {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-range {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-range i {
    color: #667eea;
}

/* ==================== */
/* HOVER OVERLAY        */
/* ==================== */

.creator-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.creator-card-modern:hover .creator-card-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

.overlay-content span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ==================== */
/* NO CREATORS STATE    */
/* ==================== */

.no-creators-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.no-creators-icon {
    font-size: 5rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.no-creators-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.no-creators-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

/* ==================== */
/* MOBILE RESPONSIVE    */
/* ==================== */

@media (max-width: 768px) {
    .explore-hero-section {
        padding: 120px 0 60px;
    }
    
    .explore-title {
        font-size: 2.2rem;
    }
    
    .explore-subtitle {
        font-size: 1rem;
    }
    
    .creator-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .creator-card-header {
        padding: 1.5rem 1.5rem 0.75rem;
    }
    
    .creator-card-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
        margin-bottom: 2rem;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .creator-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-wrapper {
        margin: 0 1rem;
    }
    
    .creator-stats {
        gap: 1rem;
    }
}

/* ==================== */
/* LEGACY OVERRIDES     */
/* ==================== */

/* Override existing styles */
.explore-container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.explore-header {
    display: none !important;
}

.creator-grid {
    display: none !important;
}

.no-creators-found {
    display: none !important;
}

/* ==================== */
/* DARK MODE SUPPORT    */
/* ==================== */

@media (prefers-color-scheme: dark) {
    .creators-section {
        background: #0f172a;
    }
    
    .creator-card-modern {
        background: #1e293b;
        border: 1px solid #334155;
    }
    
    .creator-card-header {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }
    
    .creator-name {
        color: #f1f5f9;
    }
    
    .creator-bio-preview {
        color: #94a3b8;
    }
    
    .stat-item {
        color: #94a3b8;
    }
    
    .price-range {
        background: #334155;
        color: #e2e8f0;
    }
    
    .filter-tabs {
        background: #1e293b;
        border: 1px solid #334155;
    }
    
    .filter-tab {
        color: #94a3b8;
    }
    
    .filter-tab:hover {
        background: #334155;
        color: #e2e8f0;
    }
    
    .no-creators-state {
        background: #1e293b;
        border: 1px solid #334155;
    }
    
    .no-creators-title {
        color: #f1f5f9;
    }
    
    .no-creators-subtitle {
        color: #94a3b8;
    }
}
