/* Global Reset and Variables */
:root {
    --bg-color: #09090b;
    --card-bg: rgba(24, 24, 27, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-gold: #d4af37;
    --primary-gold-rgb: 212, 175, 55;
    --dark-gold: #b8860b;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --accent-red: #ef4444;
    --font-outfit: 'Outfit', sans-serif;
    --font-playfair: 'Playfair Display', serif;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-outfit);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient glow background orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

.orb-1 {
    top: 50px;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.4) 0%, rgba(0,0,0,0) 70%);
}

.orb-2 {
    top: 600px;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184,134,11,0.3) 0%, rgba(0,0,0,0) 70%);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-prefix {
    color: var(--text-primary);
}

.logo-suffix {
    color: var(--primary-gold);
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    font-size: 10px;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-gold);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
    color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
    padding: 60px 0 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-family: var(--font-playfair);
    font-size: 44px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 30%, #e4e4e7 60%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 36px auto;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    min-width: 150px;
    box-shadow: var(--shadow-soft);
}

.stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filter & Search Bar */
.filter-section {
    padding: 32px 24px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: -20px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    pointer-events: none;
    transition: fill 0.3s ease;
}

#search-input {
    width: 100%;
    height: 54px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 16px 0 54px;
    color: var(--text-primary);
    font-family: var(--font-outfit);
    font-size: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

#search-input:focus + .search-icon {
    fill: var(--primary-gold);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 16px;
}

.filter-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
}

.filter-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
}

.filter-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-outfit);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.filter-badge.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border-color: transparent;
    color: #000000;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* Grid & Cards Section */
.grid-section {
    padding: 60px 0;
}

.grid-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}

.grid-title {
    font-family: var(--font-playfair);
    font-size: 28px;
    font-weight: 600;
}

.grid-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.therapist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

/* Card Styles */
.therapist-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.therapist-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-gold);
}

.card-image-area {
    position: relative;
    aspect-ratio: 3/4;
    width: 100%;
    overflow: hidden;
    background: #18181b;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.therapist-card:hover .card-image {
    transform: scale(1.06);
}

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.card-badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.badge-location {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.badge-level {
    background: rgba(9, 9, 11, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #e6c65c;
}

.badge-style {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(24, 24, 27, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.card-details-area {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-id {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.card-specs {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.spec-divider {
    color: rgba(255, 255, 255, 0.15);
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-btn {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.therapist-card:hover .card-btn {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: #000000;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

/* Empty State / Loading Skeletons */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.skeleton-card {
    aspect-ratio: 3/4;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Fullscreen Details Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: rgba(20, 20, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-close-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.modal-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    height: 100%;
    max-height: 90vh;
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        overflow-y: auto;
        max-height: calc(90vh - 40px);
    }
}

/* Modal Media Area */
.modal-media-area {
    background: #09090b;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 3/4;
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-media-area {
        aspect-ratio: 1/1;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(212, 175, 55, 0.8);
    color: #000;
    border-color: transparent;
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.carousel-nav.prev { left: 16px; }
.carousel-nav.next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-gold);
    transform: scale(1.2);
    width: 16px;
    border-radius: 4px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-gold);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.media-tabs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(9, 9, 11, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 30px;
    display: flex;
    z-index: 10;
}

.media-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-outfit);
    transition: all 0.3s ease;
}

.media-tab.active {
    background: var(--primary-gold);
    color: #000;
}

/* Modal Details Area */
.modal-details-area {
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 90vh;
}

@media (max-width: 768px) {
    .modal-details-area {
        max-height: none;
        padding: 24px;
    }
}

.modal-header-info {
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-id {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-playfair);
    color: #fff;
}

.modal-badge-style {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--primary-gold);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 4px;
}

.modal-meta-row {
    display: flex;
    gap: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}

.modal-meta-item.location {
    color: #fff;
    font-weight: 500;
}

.modal-meta-item.level {
    color: var(--primary-gold);
    font-weight: 600;
}

.modal-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.spec-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}

.spec-val {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.spec-lbl {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-description-section {
    margin-bottom: 36px;
}

.section-title {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.modal-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.01);
    border-left: 3px solid var(--primary-gold);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.modal-footer-notice {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.notice-text {
    font-size: 11px;
    color: #52525b;
    line-height: 1.5;
    text-align: center;
}

/* Toast styling */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 50px);
    background: rgba(20, 20, 23, 0.9);
    border: 1px solid var(--primary-gold);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 80px;
    background: #060608;
    font-size: 13px;
    color: var(--text-secondary);
}

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

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.footer-disclaimer {
    font-size: 11px;
    margin-top: 6px;
    color: #52525b;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

/* Mobile 2-Column Grid Layout */
@media (max-width: 500px) {
    .therapist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-details-area {
        padding: 12px;
    }
    .card-title-row h3 {
        font-size: 14px;
    }
    .card-specs {
        font-size: 11px;
        gap: 4px;
        margin-bottom: 8px;
    }
    .card-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    .card-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    .card-badges {
        top: 8px;
        left: 8px;
        gap: 4px;
    }
    .card-badge {
        padding: 2px 6px;
        font-size: 9px;
    }
    .badge-style {
        bottom: 8px;
        left: 8px;
        padding: 2px 6px;
        font-size: 9px;
    }
}
