/* ============================================================
   GID.DANCE — Main CSS
   ============================================================ */

*, *::before, *::after {box-sizing: border-box; margin: 0; padding: 0;}
:root {
    --bg: #0d0d14;
    --surface: #13131c;
    --surface2: #1a1a26;
    --border: #222233;
    --accent: #7c6dfa;
    --accent-hover: #6b5ce7;
    --accent2: #fa6d8f;
    --text: #eeeef5;
    --text-muted: #6b6b85;
    --text-light: #9999b0;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
    --header-h: 68px;
    --container: 1240px;
    --gap: 24px;
}

html {scroll-behavior: smooth;}
body {font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; min-height: 100vh;}
a {color: inherit; text-decoration: none; transition: color .15s;}
img {max-width: 100%; display: block;}
button, input, select, textarea {font-family: inherit;}

/* CONTAINER */
.container {max-width: var(--container); margin: 0 auto; padding: 0 20px;}
.container-sm {max-width: 860px; margin: 0 auto; padding: 0 20px;}

/* ============================================================
   HEADER
   ============================================================ */
.header {position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--bg); background: color-mix(in srgb, var(--bg) var(--header-opacity, 92%), transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);}
.header-inner {display: flex; align-items: center; gap: 32px; height: var(--header-h); min-height: var(--header-h);}
.logo {font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; flex-shrink: 0;}
.logo span {color: var(--accent);}
.nav {display: flex; align-items: center; gap: 4px; flex: 1;}
.nav-link {padding: 7px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text-light); transition: all .15s; white-space: nowrap;}
.nav-link:hover {color: var(--text); background: var(--surface2);}
.nav-link.active {color: var(--accent);}
.header-actions {display: flex; align-items: center; gap: 8px; margin-left: auto;}
.btn-header {padding: 8px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: all .15s; white-space: nowrap;}
.btn-header-ghost {background: transparent; color: var(--text-light); border: 1px solid var(--border);}
.btn-header-ghost:hover {border-color: var(--accent); color: var(--accent);}
.btn-header-primary {background: var(--accent); color: #fff;}
.btn-header-primary:hover {background: var(--accent-hover);}
.burger {display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;}
.burger span {display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s;}

/* ============================================================
   HERO
   ============================================================ */
.hero {padding: 80px 0 60px; position: relative; overflow: hidden;}
.hero::before {content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle, rgba(124,109,250,0.12) 0%, transparent 70%); pointer-events: none;}
.hero-title {font-family: 'Syne', sans-serif; font-size: clamp(36px, 6vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -2px; margin-bottom: 20px;}
.hero-title em {font-style: normal; color: var(--accent);}
.hero-subtitle {font-size: clamp(15px, 2vw, 18px); color: var(--text-light); max-width: 560px; margin-bottom: 40px; line-height: 1.7;}
.hero-search {display: flex; gap: 10px; max-width: 560px;}
.hero-search input {flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; color: var(--text); font-size: 15px; outline: none; transition: border-color .2s;}
.hero-search input:focus {border-color: var(--accent);}
.hero-search input::placeholder {color: var(--text-muted);}
.hero-search button {background: var(--accent); border: none; border-radius: var(--radius-lg); padding: 16px 28px; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; white-space: nowrap;}
.hero-search button:hover {background: var(--accent-hover);}
.hero-stats {display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap;}
.hero-stat-value {font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800; color: var(--text);}
.hero-stat-label {font-size: 13px; color: var(--text-muted); margin-top: 2px;}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {padding: 60px 0;}
.section-header {display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap;}
.section-title {font-family: 'Syne', sans-serif; font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -0.5px;}
.section-title span {color: var(--accent);}
.section-link {font-size: 14px; font-weight: 500; color: var(--accent); white-space: nowrap; display: flex; align-items: center; gap: 4px;}
.section-link:hover {opacity: 0.8;}

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap);}
.cards-grid-2 {grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));}
.cards-grid-4 {grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));}

/* Org card */
.org-card {background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; display: flex; flex-direction: column;}
.org-card:hover {transform: translateY(-3px); border-color: rgba(124,109,250,0.4); box-shadow: var(--shadow);}
.org-card-cover {height: 160px; background: var(--surface2); position: relative; overflow: hidden; flex-shrink: 0;}
.org-card-cover img {width: 100%; height: 100%; object-fit: cover; transition: transform .3s;}
.org-card:hover .org-card-cover img {transform: scale(1.04);}
.org-card-cover-placeholder {width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; opacity: 0.3;}
.org-card-badge {position: absolute; top: 10px; left: 10px;}
.org-card-body {padding: 16px; flex: 1; display: flex; flex-direction: column;}
.org-card-type {font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;}
.org-card-name {font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3;}
.org-card-city {font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 10px;}
.org-card-dances {display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; flex: 1;}
.dance-tag {background: rgba(124,109,250,0.1); color: var(--accent); font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 20px; border: 1px solid rgba(124,109,250,0.2);}
.dance-tag-more {background: var(--surface2); color: var(--text-muted); font-size: 11px; padding: 3px 8px; border-radius: 20px;}
.org-card-footer {display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border);}
.org-card-rating {display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--warning); font-weight: 600;}

/* Trainer card */
.trainer-card {background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; gap: 16px; align-items: flex-start; transition: transform .2s, border-color .2s;}
.trainer-card:hover {transform: translateY(-2px); border-color: rgba(124,109,250,0.4);}
.trainer-avatar {width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent2));}
.trainer-avatar-placeholder {width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px; color: #fff; flex-shrink: 0;}
.trainer-card-info {flex: 1; min-width: 0;}
.trainer-card-name {font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 4px;}
.trainer-card-dances {font-size: 13px; color: var(--text-muted); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
.trainer-card-orgs {font-size: 12px; color: var(--text-muted);}
.trainer-card-rating {font-size: 13px; color: var(--warning); font-weight: 600; display: flex; align-items: center; gap: 3px;}

/* Dance type card */
.dance-card {background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, border-color .2s; position: relative;}
.dance-card:hover {transform: translateY(-3px); border-color: rgba(124,109,250,0.4);}
.dance-card-img {height: 140px; background: var(--surface2); position: relative; overflow: hidden;}
.dance-card-img img {width: 100%; height: 100%; object-fit: cover; transition: transform .3s;}
.dance-card:hover .dance-card-img img {transform: scale(1.06);}
.dance-card-img-placeholder {width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px;}
.dance-card-body {padding: 16px;}
.dance-card-name {font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 4px;}
.dance-card-count {font-size: 13px; color: var(--text-muted);}

/* City card */
.city-card {background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: transform .15s, border-color .15s;}
.city-card:hover {transform: translateX(4px); border-color: rgba(124,109,250,0.4);}
.city-card-name {font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700;}
.city-card-count {font-size: 13px; color: var(--text-muted);}
.city-card-code {background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-size: 12px; font-family: monospace; font-weight: 700; color: var(--text-muted);}

/* ============================================================
   BADGES
   ============================================================ */
.badge {display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px;}
.badge-pro {background: rgba(124,109,250,0.15); color: var(--accent); border: 1px solid rgba(124,109,250,0.25);}
.badge-standard {background: rgba(251,191,36,0.1); color: var(--warning); border: 1px solid rgba(251,191,36,0.2);}
.badge-top {background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 700;}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all .15s; text-align: center; white-space: nowrap;}
.btn-primary {background: var(--accent); color: #fff;}
.btn-primary:hover {background: var(--accent-hover); transform: translateY(-1px);}
.btn-outline {background: transparent; color: var(--accent); border: 1px solid var(--accent);}
.btn-outline:hover {background: rgba(124,109,250,0.1);}
.btn-ghost {background: var(--surface2); color: var(--text-light); border: 1px solid var(--border);}
.btn-ghost:hover {color: var(--text); border-color: var(--text-muted);}
.btn-sm {padding: 7px 14px; font-size: 13px;}
.btn-lg {padding: 15px 32px; font-size: 16px; border-radius: var(--radius-lg);}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {display: flex; flex-direction: column; gap: 6px;}
.form-label {font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted);}
.form-input, .form-select, .form-textarea {background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; color: var(--text); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;}
.form-input:focus, .form-select:focus, .form-textarea:focus {border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,109,250,0.12);}
.form-input::placeholder, .form-textarea::placeholder {color: var(--text-muted);}
.form-select option {background: var(--surface);}
.form-textarea {resize: vertical; min-height: 120px;}

/* ============================================================
   FILTERS
   ============================================================ */
.filters {display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 28px;}
.filter-select {background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 14px; color: var(--text); font-size: 14px; outline: none; cursor: pointer; transition: border-color .2s;}
.filter-select:focus {border-color: var(--accent);}
.filter-input {background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 16px; color: var(--text); font-size: 14px; outline: none; transition: border-color .2s; min-width: 220px;}
.filter-input:focus {border-color: var(--accent);}
.filter-input::placeholder {color: var(--text-muted);}
.filter-tabs {display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4px;}
.filter-tab {padding: 7px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all .15s; white-space: nowrap;}
.filter-tab.active, .filter-tab:hover {background: var(--accent); color: #fff;}
.filter-tab:hover:not(.active) {background: var(--surface2); color: var(--text);}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {display: flex; justify-content: center; gap: 6px; padding: 40px 0 0;}
.pagination a, .pagination span {display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--radius); font-size: 14px; font-weight: 500; border: 1px solid var(--border); color: var(--text-muted); transition: all .15s;}
.pagination a:hover {border-color: var(--accent); color: var(--accent);}
.pagination .active {background: var(--accent); border-color: var(--accent); color: #fff;}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {margin-bottom: 24px;}
.breadcrumbs ol {display: flex; align-items: center; gap: 6px; list-style: none; flex-wrap: wrap;}
.breadcrumbs li {display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted);}
.breadcrumbs li a {color: var(--text-muted); transition: color .15s;}
.breadcrumbs li a:hover {color: var(--accent);}
.breadcrumbs li:not(:last-child)::after {content: '/'; opacity: 0.4;}

/* ============================================================
   RATING STARS
   ============================================================ */
.stars {display: inline-flex; gap: 2px;}
.star--full {color: var(--warning);}
.star--empty {color: var(--border);}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.socials {display: flex; gap: 8px; flex-wrap: wrap;}
.social-link {display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius); background: var(--surface2); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-light); transition: all .15s;}
.social-link:hover {border-color: var(--accent); color: var(--accent);}

/* ============================================================
   SCHEDULE TABLE
   ============================================================ */
.schedule {display: flex; flex-direction: column; gap: 4px;}
.schedule-row {display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-radius: var(--radius); background: var(--surface2);}
.schedule-day {font-size: 13px; font-weight: 600; width: 32px;}
.schedule-time {font-size: 14px;}
.schedule-off {color: var(--text-muted); font-size: 13px;}
.schedule-today {background: rgba(124,109,250,0.1); border: 1px solid rgba(124,109,250,0.2);}
.schedule-today .schedule-day {color: var(--accent);}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {text-align: center; padding: 60px 20px; color: var(--text-muted);}
.empty-state-icon {font-size: 48px; margin-bottom: 16px; opacity: 0.5;}
.empty-state-title {font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px;}
.empty-state p {font-size: 14px; margin-bottom: 24px;}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {margin-top: auto; border-top: 1px solid var(--border); padding: 48px 0 32px;}
.footer-grid {display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;}
.footer-logo {font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 12px;}
.footer-logo span {color: var(--accent);}
.footer-desc {font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 260px;}
.footer-col-title {font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;}
.footer-links {display: flex; flex-direction: column; gap: 8px;}
.footer-link {font-size: 14px; color: var(--text-light); transition: color .15s;}
.footer-link:hover {color: var(--accent);}
.footer-bottom {display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 8px;}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {display: none; position: fixed; inset: 0; z-index: 200; background: var(--bg); padding: 24px 20px; flex-direction: column; gap: 8px; overflow-y: auto;}
.mobile-menu.open {display: flex;}
.mobile-menu-header {display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;}
.mobile-menu-close {background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; padding: 4px;}
.mobile-nav-link {padding: 14px 16px; border-radius: var(--radius); font-size: 16px; font-weight: 500; color: var(--text-light); display: block; border: 1px solid transparent; transition: all .15s;}
.mobile-nav-link:hover, .mobile-nav-link.active {background: var(--surface2); border-color: var(--border); color: var(--text);}

/* DANCE TAGS */
.dance-tags-wrap {display: flex; flex-wrap: wrap; gap: 6px;}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.page-with-sidebar {display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start;}
.page-with-sidebar-wide {display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start;}
.sidebar-sticky {position: sticky; top: calc(var(--header-h) + 16px);}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid {grid-template-columns: 1fr 1fr;}
    .page-with-sidebar {grid-template-columns: 1fr;}
    .page-with-sidebar-wide {grid-template-columns: 1fr;}
    .sidebar-sticky {position: static;}
}
@media (max-width: 768px) {
    .nav {display: none;}
    .header-actions .btn-header {display: none;}
    .burger {display: flex;}
    .hero {padding: 48px 0 40px;}
    .hero-search {flex-direction: column;}
    .hero-stats {gap: 24px;}
    .section {padding: 40px 0;}
    .footer-grid {grid-template-columns: 1fr 1fr; gap: 24px;}
    .footer-bottom {flex-direction: column; text-align: center;}
    .cards-grid-2 {grid-template-columns: 1fr;}
}
@media (max-width: 480px) {
    .cards-grid {grid-template-columns: 1fr;}
    .cards-grid-4 {grid-template-columns: 1fr 1fr;}
    .footer-grid {grid-template-columns: 1fr;}
    .filters {flex-direction: column; align-items: stretch;}
    .filter-input {min-width: unset;}
    .hero-stat-value {font-size: 24px;}
}


/* ===== Theme switcher — desktop ===== */
.theme-switcher {display: flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-right: 4px;}
.theme-btn {width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; transition: background .15s, transform .15s; padding: 0;}
.theme-btn:hover {background: var(--surface2); transform: scale(1.1);}
.theme-btn.active {background: var(--accent); box-shadow: 0 0 0 1px var(--accent);}
@media (max-width: 900px) {.theme-switcher {display: none;}}

/* ===== Theme switcher — mobile ===== */
.mobile-theme-switcher {margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);}
.mobile-theme-title {font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; padding: 0 4px;}
.mobile-theme-list {display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;}
.mobile-theme-btn {display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); cursor: pointer; transition: all .15s; text-align: left; font-family: inherit; font-size: 14px;}
.mobile-theme-btn:hover, .mobile-theme-btn.active {border-color: var(--accent); background: var(--surface2);}
.mobile-theme-btn.active {box-shadow: 0 0 0 1px var(--accent);}
.mobile-theme-icon {font-size: 20px; flex-shrink: 0;}
.mobile-theme-name {font-weight: 500;}