/* ═══════════════════════════════════════════════════════════════
   REDESIGN CSS — Mobile-First Dark Theme
   Girls Pattaya — Premium Nightlife Aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Domain-Dependent Theme Tokens ───────────────────────────── */
:root {
    /* Base palette — overridable per domain */
    --brand-primary: #ec4899;
    --brand-secondary: #a855f7;
    --brand-accent: #06b6d4;
    --brand-gradient: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
    --brand-gradient-subtle: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);

    /* Dark mode surfaces */
    --bg-body: #0a0a0f;
    --bg-surface: #13131a;
    --bg-card: rgba(25, 25, 35, 0.8);
    --bg-card-hover: rgba(35, 35, 50, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-strong: rgba(255, 255, 255, 0.08);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: var(--brand-primary);

    /* Borders & shadows */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 30px rgba(236, 72, 153, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.5);

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-full: 9999px;

    /* Working status */
    --status-working: #22c55e;
    --status-holiday: #ef4444;
    --status-off: #64748b;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Bottom nav height */
    --bottom-nav-height: 64px;
}

/* ── Domain overrides ────────────────────────────────────────── */
/* Example: different domain, different colors */
[data-domain*="otherdomain"] {
    --brand-primary: #f97316;
    --brand-secondary: #eab308;
    --brand-gradient: linear-gradient(135deg, #f97316 0%, #eab308 100%);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: var(--bottom-nav-height);
    overflow-x: hidden;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-secondary);
}

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

/* ── Typography ──────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title .view-all {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--brand-primary);
}

/* ── Container ───────────────────────────────────────────────── */
.rd-container {
    width: 100%;
    padding: 0 var(--space-md);
    margin: 0 auto;
}

/* ── Top Header ──────────────────────────────────────────────── */
.rd-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.rd-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.rd-logo .heart {
    color: var(--brand-primary);
    font-size: 1.5rem;
}

.rd-logo .brand-accent {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rd-hamburger {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
    display: flex;
    align-items: center;
}

/* ── Hero Section ────────────────────────────────────────────── */
.rd-hero {
    position: relative;
    height: 220px;
    margin: var(--space-md);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

.rd-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/static/img/hero-pattaya.jpg') center/cover no-repeat;
    filter: brightness(0.4);
}

.rd-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.3) 60%, transparent 100%);
}

.rd-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.rd-hero h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.rd-hero p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.rd-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    background: var(--brand-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
    text-decoration: none;
}

.rd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
    color: white;
}

.rd-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1.5px solid var(--brand-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.rd-btn-outline:hover {
    background: rgba(236, 72, 153, 0.1);
    color: var(--brand-primary);
}

/* ── Section spacing ─────────────────────────────────────────── */
.rd-section {
    padding: var(--space-xl) 0;
}

/* ── Horizontal Scroll Carousel ──────────────────────────────── */
.rd-carousel {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--space-xs) var(--space-md);
    margin: 0 calc(-1 * var(--space-md));
}

.rd-carousel::-webkit-scrollbar {
    display: none;
}

/* ── Girl Card ───────────────────────────────────────────────── */
.rd-girl-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.rd-girl-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    color: inherit;
}

.rd-girl-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.rd-girl-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.rd-girl-info {
    padding: var(--space-sm);
}

.rd-girl-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.rd-girl-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: 2px;
}

/* Working status dot */
.rd-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.rd-status-dot.working {
    background: var(--status-working);
    box-shadow: 0 0 6px var(--status-working);
    animation: pulse-glow 2s ease-in-out infinite;
}

.rd-status-dot.holiday {
    background: var(--status-holiday);
}

.rd-status-dot.off {
    background: var(--status-off);
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Venue badge on girl card */
.rd-venue-badge {
    position: absolute;
    bottom: 52px;
    left: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Featured badge */
.rd-featured-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--brand-gradient);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

/* ── Girls Grid (reusable across search, venue detail, etc.) ── */
.rd-girls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.rd-girls-grid .rd-girl-card {
    flex: unset;
    /* Override carousel flex sizing */
    scroll-snap-align: unset;
}

/* ── Venue Card ──────────────────────────────────────────────── */
.rd-venues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.rd-venue-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.rd-venue-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    color: inherit;
}

.rd-venue-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.rd-venue-photo-placeholder {
    width: 100%;
    height: 120px;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.rd-venue-info {
    padding: var(--space-sm);
}

.rd-venue-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.rd-venue-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: var(--brand-accent);
    font-weight: 500;
    margin-top: 3px;
}

/* ── Bottom Navigation ───────────────────────────────────────── */
.rd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.rd-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    transition: color 0.2s ease;
}

.rd-nav-item i {
    font-size: 1.25rem;
}

.rd-nav-item.active,
.rd-nav-item:hover {
    color: var(--brand-primary);
}

.rd-nav-item.active i {
    filter: drop-shadow(0 0 6px var(--brand-primary));
}

/* ── Scrollbar (desktop) ─────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 3px;
}

/* ── Utility ─────────────────────────────────────────────────── */
.rd-glow {
    box-shadow: var(--shadow-glow);
}

.rd-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}

/* ══════════════════════════════════════════════════════════════
   TABLET BREAKPOINT (min-width: 640px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
    .rd-container {
        padding: 0 var(--space-lg);
    }

    .rd-hero {
        height: 280px;
        margin: var(--space-lg);
    }

    .rd-hero h1 {
        font-size: 2rem;
    }

    .rd-girl-card {
        flex: 0 0 160px;
    }

    .rd-venues-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rd-girls-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ══════════════════════════════════════════════════════════════
   DESKTOP BREAKPOINT (min-width: 1024px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    :root {
        --bottom-nav-height: 0px;
    }

    body {
        padding-bottom: 0;
    }

    .rd-container {
        max-width: 1280px;
        padding: 0 var(--space-xl);
    }

    .rd-header {
        padding: var(--space-sm) var(--space-xl);
        height: 64px;
    }

    .rd-hamburger {
        display: none;
    }

    .rd-desktop-nav {
        display: flex !important;
        align-items: center;
        gap: var(--space-lg);
    }

    .rd-desktop-nav a {
        color: var(--text-secondary);
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .rd-desktop-nav a:hover,
    .rd-desktop-nav a.active {
        color: var(--text-primary);
    }

    .rd-bottom-nav {
        display: none;
    }

    .rd-hero {
        height: 360px;
        margin: var(--space-lg) 0;
    }

    .rd-hero h1 {
        font-size: 2.5rem;
    }

    .rd-girl-card {
        flex: 0 0 180px;
    }

    .rd-venues-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .rd-girls-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .rd-venue-photo {
        height: 160px;
    }
}

/* ══════════════════════════════════════════════════════════════
   WIDE DESKTOP (min-width: 1440px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {
    .rd-container {
        max-width: 1440px;
    }

    .rd-girl-card {
        flex: 0 0 200px;
    }

    .rd-venues-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ── Desktop nav hidden on mobile ────────────────────────────── */
.rd-desktop-nav {
    display: none;
}