/* CamLounge - Premium Dark Theme */

:root {
    --bg-primary: #08080a;
    --bg-secondary: #0f0f12;
    --bg-card: #16161a;
    --bg-card-hover: #1e1e24;
    --bg-elevated: #1a1a1f;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a8;
    --text-muted: #5a5a65;

    --accent: #9B7B8E;
    --accent-light: #C4A5B5;
    --accent-dark: #7A5F6E;
    --accent-glow: rgba(155, 123, 142, 0.4);

    --gold: #D4AF37;
    --gold-light: #F4CF67;

    --gradient-accent: linear-gradient(135deg, #C4A5B5 0%, #9B7B8E 50%, #7A5F6E 100%);
    --gradient-gold: linear-gradient(135deg, #F4CF67 0%, #D4AF37 50%, #B4942A 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f12 0%, #08080a 100%);

    --online-green: #00ff88;
    --live-red: #ff3b5c;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px var(--accent-glow);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(155, 123, 142, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(155, 123, 142, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

/* ==================== HEADER ==================== */
.header {
    background: rgba(15, 15, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(155, 123, 142, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 40px;
}

.logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav {
    display: flex;
    gap: 6px;
}

.nav-link {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    font-size: 12px;
    opacity: 0.7;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(155, 123, 142, 0.1);
}

.nav-link.active {
    background: var(--gradient-accent);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
}

.search-box input {
    background: var(--bg-card);
    border: 1px solid rgba(155, 123, 142, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 44px 12px 18px;
    color: var(--text-primary);
    font-size: 14px;
    width: 220px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    width: 300px;
    box-shadow: 0 0 20px rgba(155, 123, 142, 0.2);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(155, 123, 142, 0.3) 0%, transparent 1%),
        radial-gradient(circle at 80% 70%, rgba(155, 123, 142, 0.2) 0%, transparent 1%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 0.5%);
    background-size: 80px 80px, 120px 120px, 60px 60px;
    animation: particleFloat 20s linear infinite;
}

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

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(155, 123, 142, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo {
    margin-bottom: 40px;
    animation: logoFloat 4s ease-in-out infinite;
}

.hero-logo img {
    max-width: 450px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(155, 123, 142, 0.4));
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 30px 50px;
    background: rgba(22, 22, 26, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(155, 123, 142, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 10px auto 0;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
}

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

/* ==================== TAGS SECTION ==================== */
.tags-section {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-bottom: 1px solid rgba(155, 123, 142, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.title-decoration {
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 0 auto;
    border-radius: 2px;
}

.tags-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-card);
}

.tags-scroll::-webkit-scrollbar {
    height: 6px;
}

.tags-scroll::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 3px;
}

.tags-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.tag {
    background: var(--bg-card);
    border: 1px solid rgba(155, 123, 142, 0.15);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-icon {
    font-size: 14px;
}

.tag:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tag.active {
    background: var(--gradient-accent);
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding: 50px 0 80px;
}

.live-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 16px 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(155, 123, 142, 0.1);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: var(--live-red);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px var(--live-red);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.live-text {
    font-weight: 700;
    font-size: 13px;
    color: var(--live-red);
    letter-spacing: 2px;
}

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

.online-count span {
    color: var(--accent-light);
    font-weight: 600;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid rgba(155, 123, 142, 0.15);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.view-btn:hover,
.view-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ==================== CAM GRID ==================== */
.cam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.cam-grid.large-view {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.cam-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(155, 123, 142, 0.1);
    position: relative;
}

.cam-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, var(--accent) 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cam-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
}

.cam-card:hover::before {
    opacity: 1;
}

.cam-card:hover .cam-thumbnail img {
    transform: scale(1.08);
}

.cam-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.cam-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cam-live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--live-red);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(255, 59, 92, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(255, 59, 92, 0.5); }
    50% { box-shadow: 0 2px 20px rgba(255, 59, 92, 0.8); }
}

.cam-hd-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-gold);
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.cam-viewers {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}

.cam-viewers svg {
    width: 14px;
    height: 14px;
    color: var(--accent-light);
}

.cam-info {
    padding: 18px;
}

.cam-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cam-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.cam-age {
    background: var(--bg-elevated);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.cam-status {
    color: var(--online-green);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cam-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--online-green);
    border-radius: 50%;
}

.cam-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cam-tag {
    background: rgba(155, 123, 142, 0.15);
    color: var(--accent-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px;
    color: var(--text-secondary);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--bg-elevated);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.btn-load-more {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    color: var(--accent-light);
    padding: 18px 50px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

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

.btn-load-more:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(155, 123, 142, 0.1);
    padding: 70px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(155, 123, 142, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--accent-light);
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    max-width: 350px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    padding: 8px 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(155, 123, 142, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.age-notice {
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-badge {
    background: var(--live-red);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

/* ==================== AGE MODAL ==================== */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.age-modal.hidden {
    display: none;
}

.age-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.age-modal-content {
    position: relative;
    background: var(--bg-secondary);
    padding: 60px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(155, 123, 142, 0.2);
    box-shadow: var(--shadow-lg);
}

.modal-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.modal-logo {
    height: 120px;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 30px var(--accent-glow));
}

.age-modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-divider {
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.modal-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 8px;
}

.modal-subtext {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 35px;
}

.age-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.btn-enter {
    position: relative;
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-enter:hover .btn-shine {
    left: 100%;
}

.btn-enter:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.btn-exit {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 18px 40px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-exit:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.modal-disclaimer {
    color: var(--text-muted);
    font-size: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links-group {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-logo img {
        max-width: 350px;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        overflow-x: auto;
    }

    .nav-link {
        padding: 10px 16px;
        font-size: 13px;
    }

    .hero {
        min-height: 60vh;
        padding: 60px 0;
    }

    .hero-logo img {
        max-width: 280px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 25px;
        padding: 25px 30px;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }

    .cam-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }

    .footer-links-group {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo img {
        height: 45px;
    }

    .search-box {
        display: none;
    }

    .hero-logo img {
        max-width: 220px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .cam-grid {
        grid-template-columns: 1fr;
    }

    .age-modal-content {
        padding: 40px 25px;
    }

    .modal-logo {
        height: 80px;
    }

    .age-buttons {
        flex-direction: column;
    }

    .footer-links-group {
        grid-template-columns: 1fr;
    }
}
