/* ========================================
   YEROKU STYLIST LANDING PAGE
   Modern, clean design for beauty professionals
   
   CLEANED VERSION - Removed conflicting styles:
   - Header (now using modular header from shared.css)
   - Footer (now using modular footer from shared.css)
   - USPs section (now inline in HTML)
   - Stylist Types section (now inline in HTML)
   - CTA/Waitlist section (now inline in HTML)
   ======================================== */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Brand Colors */
    --primary: #0e7c7b;
    --primary-50: #e6f4f4;
    --primary-100: #cce9e9;
    --primary-200: #99d3d2;
    --primary-500: #0e7c7b;
    --primary-600: #0b6362;
    --primary-700: #084a49;
    
    --secondary: #ff8a6c;
    --secondary-50: #fff4f1;
    --secondary-100: #ffe9e3;
    --secondary-500: #ff8a6c;
    --secondary-600: #ff6e48;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0e7c7b 0%, #ff8a6c 100%);
    --gradient-primary-hover: linear-gradient(135deg, #0b6362 0%, #ff6e48 100%);
    --gradient-hero: linear-gradient(135deg, #0e7c7b 0%, #1a9695 50%, #ff8a6c 100%);
    
    /* Neutrals */
    --white: #ffffff;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Semantic */
    --success: #10b981;
    --error: #ef4444;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Typography - Updated to match brand (Instrument Serif) */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Instrument Serif', Georgia, serif;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-primary: 0 4px 14px 0 rgb(14 124 123 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
   Note: shared.css also has resets, but these
   are kept for page-specific fallback
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   HEADER - REMOVED
   Now using modular header from shared.css
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */
.stylists-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--space-6);
    overflow: hidden;
}

.hero-gradient-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.03;
}

.hero-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-50) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--primary-50);
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.hero-badge .badge-icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
    font-weight: 600;
    line-height: 1.1;
    color: var(--neutral-900);
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

/* Hero Search */
.hero-search {
    max-width: 560px;
    margin: 0 auto var(--space-10);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-full);
    padding: var(--space-1);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--primary-50);
}

.search-icon {
    width: 20px;
    height: 20px;
    margin-left: var(--space-4);
    color: var(--neutral-400);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    background: transparent;
}

.search-input-wrapper input::placeholder {
    color: var(--neutral-400);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.search-btn:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-1px);
}

.search-btn .btn-icon {
    width: 18px;
    height: 18px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--primary);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--neutral-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--neutral-200);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: var(--neutral-400);
}

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

/* ========================================
   FILTERS SECTION
   ======================================== */
.filters-section {
    position: sticky;
    top: 72px; /* Updated to match modular header height */
    z-index: 90;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-100);
    padding: var(--space-4) var(--space-6);
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.filter-group-pills {
    flex: 1;
    min-width: 300px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-label svg {
    width: 14px;
    height: 14px;
}

.filter-select {
    padding: var(--space-2) var(--space-4);
    padding-right: var(--space-8);
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--neutral-700);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    min-width: 180px;
    transition: all var(--transition-fast);
}

.filter-select:hover {
    border-color: var(--neutral-300);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.cat-pill {
    padding: var(--space-2) var(--space-4);
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.cat-pill:hover {
    border-color: var(--primary-200);
    background: var(--primary-50);
    color: var(--primary);
}

.cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-6);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--secondary-50);
    color: var(--secondary-600);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-badge svg {
    width: 14px;
    height: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--neutral-500);
    max-width: 600px;
    margin: 0 auto;
}

/* View Toggle */
.header-right {
    display: flex;
    gap: var(--space-2);
}

.view-toggle {
    padding: var(--space-2);
    border-radius: var(--radius-md);
    color: var(--neutral-400);
    transition: all var(--transition-fast);
}

.view-toggle:hover {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.view-toggle.active {
    background: var(--primary-50);
    color: var(--primary);
}

.view-toggle svg {
    width: 20px;
    height: 20px;
}

.results-count {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    margin-left: var(--space-3);
}

/* ========================================
   FEATURED STYLISTS
   ======================================== */
.featured-section {
    background: linear-gradient(180deg, var(--neutral-50) 0%, var(--white) 100%);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

/* ========================================
   STYLIST CARDS
   ======================================== */
.stylists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.stylists-grid.list-view {
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.stylist-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--neutral-100);
    transition: all var(--transition-base);
}

.stylist-card:hover {
    border-color: var(--neutral-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stylist-card.featured {
    border-color: var(--secondary-100);
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-50) 100%);
}

.card-link {
    display: block;
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    background: var(--neutral-100);
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.stylist-card:hover .card-image {
    transform: scale(1.05);
}

.card-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
}

.featured-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--secondary);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.card-content {
    padding: var(--space-4);
}

.card-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
}

.card-username {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: 500;
    display: block;
    margin-bottom: var(--space-3);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.card-category,
.card-location {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--neutral-500);
}

.card-category svg,
.card-location svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.card-bio {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* List View Styles */
.stylists-grid.list-view .stylist-card {
    display: flex;
}

.stylists-grid.list-view .card-image-wrapper {
    width: 120px;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.stylists-grid.list-view .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Load More */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: var(--space-10);
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--white);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--neutral-700);
    transition: all var(--transition-base);
}

.load-more-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.load-more-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   EMPTY & LOADING STATES
   ======================================== */
.empty-state,
.loading-state,
.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-16) var(--space-6);
}

.empty-icon,
.loading-spinner {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    color: var(--neutral-300);
}

.loading-spinner {
    border: 3px solid var(--neutral-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--space-2);
}

.empty-description {
    color: var(--neutral-500);
    margin-bottom: var(--space-6);
}

.clear-filters-btn {
    padding: var(--space-2) var(--space-5);
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.clear-filters-btn:hover {
    background: var(--primary-600);
}

/* ========================================
   USPs SECTION - REMOVED
   Now using inline styles in HTML
   ======================================== */

/* ========================================
   STYLIST TYPES SECTION - REMOVED
   Now using inline styles in HTML
   ======================================== */

/* ========================================
   CTA SECTION - REMOVED
   Now using inline styles in HTML
   ======================================== */

/* ========================================
   FOOTER - REMOVED
   Now using modular footer from shared.css
   ======================================== */

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    /* Header responsive - REMOVED (handled by shared.css) */
    
    .hero-stats {
        gap: var(--space-4);
    }
    
    .stat-number {
        font-size: var(--text-xl);
    }
    
    .filters-container {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .filter-group-pills {
        min-width: auto;
        width: 100%;
    }
    
    .category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--space-2);
        margin: 0 calc(-1 * var(--space-6));
        padding-left: var(--space-6);
        padding-right: var(--space-6);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .category-pills::-webkit-scrollbar {
        display: none;
    }
    
    .section-header-row {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .header-left {
        text-align: center;
    }
    
    .stylists-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    /* USPs, Types, Waitlist responsive - REMOVED (handled by inline styles) */
    /* Footer responsive - REMOVED (handled by shared.css) */
}

@media (max-width: 480px) {
    .search-btn .btn-text {
        display: none;
    }
    
    .search-btn {
        padding: var(--space-3);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .stylists-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stylist-card {
    animation: fadeIn 0.4s ease-out;
}

.stylist-card:nth-child(2) { animation-delay: 0.05s; }
.stylist-card:nth-child(3) { animation-delay: 0.1s; }
.stylist-card:nth-child(4) { animation-delay: 0.15s; }
.stylist-card:nth-child(5) { animation-delay: 0.2s; }
.stylist-card:nth-child(6) { animation-delay: 0.25s; }
