/* ========================================
   KBJDFAN - Shared Styles
   ======================================== */

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

:root {
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #fff;
    --text-secondary: #aaa;
    --text-muted: #666;
    --accent-telegram: #0088cc;
    --accent-gold: #feca57;
    --accent-red: #ff6b6b;
    --accent-green: #4ade80;
    --accent-purple: #a855f7;
    --gradient-gold: linear-gradient(135deg, #feca57, #ff6b6b);
    --gradient-telegram: linear-gradient(135deg, #0088cc, #00aced);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* -- Layout -- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 540px;
}

/* -- Logo -- */
.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.logo--lg {
    width: 140px;
    height: 140px;
}

/* -- Typography -- */
.heading-gradient {
    font-size: 2.2em;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.heading-white {
    font-size: 2.2em;
    font-weight: 800;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05em;
}

.section-title {
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

/* -- Cards -- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.card--glass {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* -- Buttons -- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--telegram {
    background: var(--gradient-telegram);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.3);
}

.btn--telegram:hover {
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.5);
}

.btn--gold {
    background: var(--gradient-gold);
    color: #1a1a2e;
    box-shadow: 0 4px 20px rgba(254, 202, 87, 0.3);
}

.btn--gold:hover {
    box-shadow: 0 8px 30px rgba(254, 202, 87, 0.5);
}

.btn--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.9em;
}

.btn--fanbox { background: #00c7b7; color: #fff; }
.btn--patreon { background: #ff424d; color: #fff; }
.btn--crypto { background: #0052ff; color: #fff; }

/* -- Stats Strip -- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
}

.stats-bar__number {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
}

.stats-bar__label {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

/* -- Language Tabs -- */
.lang-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-tab {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.lang-tab.active {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* -- Badge / Tag -- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--fire {
    background: rgba(255, 107, 107, 0.2);
    color: var(--accent-red);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.badge--gold {
    background: rgba(254, 202, 87, 0.2);
    color: var(--accent-gold);
    border: 1px solid rgba(254, 202, 87, 0.3);
}

.badge--green {
    background: rgba(74, 222, 128, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.badge--entry { background: var(--accent-green); color: #000; }
.badge--vip { background: var(--accent-gold); color: #000; }
.badge--premier { background: var(--accent-purple); color: #fff; }

/* -- Age Gate Modal -- */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.age-gate__box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.age-gate__icon {
    font-size: 3.5em;
    margin-bottom: 16px;
}

.age-gate__title {
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 12px;
}

.age-gate__text {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 0.95em;
    line-height: 1.7;
}

.age-gate__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-gate__btn-yes {
    padding: 16px;
    background: var(--gradient-gold);
    color: #1a1a2e;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s;
}

.age-gate__btn-yes:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(254, 202, 87, 0.4);
}

.age-gate__btn-no {
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.9em;
    transition: all 0.3s;
}

.age-gate__btn-no:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

/* -- Thumbnail Grid -- */
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.thumb-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #1a1a2e;
    cursor: pointer;
    transition: transform 0.2s;
}

.thumb-card:hover { transform: scale(1.03); }

.thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    font-size: 0.65em;
    line-height: 1.3;
}

.thumb-card--locked {
    cursor: default;
}

.thumb-card--locked::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(16px);
    background: rgba(0, 0, 0, 0.3);
}

.thumb-card__lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 2em;
    opacity: 0.8;
}

/* -- Placeholder Thumbnails (gradient) -- */
.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 8px;
}

.thumb-placeholder--1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.thumb-placeholder--2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.thumb-placeholder--3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.thumb-placeholder--4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.thumb-placeholder--5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.thumb-placeholder--6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.thumb-placeholder--7 { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.thumb-placeholder--8 { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.thumb-placeholder--9 { background: linear-gradient(135deg, #89f7fe, #66a6ff); }

/* -- Copied Toast -- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(74, 222, 128, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 0.9em;
    font-weight: 600;
    z-index: 1001;
    display: none;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* -- Social Proof Ticker -- */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.85em;
    color: var(--accent-green);
}

.social-proof__dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* -- Spacing Utilities -- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.text-center { text-align: center; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }

/* -- Floating Nav -- */
.floating-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-nav.hidden {
    transform: translateX(-50%) translateY(-60px);
    opacity: 0;
    pointer-events: none;
}

.floating-nav__link {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78em;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
}

.floating-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.floating-nav__link.active {
    background: rgba(254, 202, 87, 0.15);
    color: var(--accent-gold);
}

@media (max-width: 640px) {
    .floating-nav { top: 10px; gap: 2px; padding: 3px; }
    .floating-nav__link { padding: 6px 12px; font-size: 0.72em; }
}

/* -- Footer -- */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85em;
}

.footer a {
    color: var(--accent-gold);
}

/* -- Responsive -- */
@media (max-width: 640px) {
    .heading-gradient, .heading-white { font-size: 1.7em; }
    .section-title { font-size: 1.25em; }
    .logo--lg { width: 110px; height: 110px; }
    .btn { padding: 14px 24px; font-size: 0.95em; }
    .thumb-grid { grid-template-columns: repeat(2, 1fr); }
    .card { padding: 20px; }
    .stats-bar__number { font-size: 1.2em; }
}
