/* ==============================================
   CLUB DE PREVIAS — Premium Link-in-Bio
   Mobile-first · Bento Grid · Nightclub Theme
   ============================================== */

:root {
    --bg: #08060e;
    --surface: rgba(16, 12, 24, 0.7);
    --surface-hover: rgba(28, 20, 44, 0.85);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(200, 120, 255, 0.35);
    --text: #f0eef5;
    --muted: #8a8494;
    --accent: #c878ff;
    --pink: #ff2d8a;
    --orange: #ff6b35;
    --neon: linear-gradient(135deg, #ff6b35 0%, #ff2d8a 40%, #c878ff 100%);
    --glass: blur(20px);
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --font: 'Inter', -apple-system, sans-serif;
    --display: 'Outfit', sans-serif;
    --script: 'Yellowtail', cursive;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* ---- Ambient Orbs ---- */
.ambient-layer {
    position: fixed; inset: 0; z-index: 0;
    overflow: hidden; pointer-events: none;
}

.orb {
    position: absolute; border-radius: 50%;
    filter: blur(90px); will-change: transform; opacity: 0.3;
}

.orb-1 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -8%; left: -12%;
    animation: f1 16s ease-in-out infinite;
}
.orb-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
    bottom: 8%; right: -16%;
    animation: f2 20s ease-in-out infinite;
}
.orb-3 {
    width: 240px; height: 240px;
    background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
    top: 45%; left: 40%;
    animation: f3 24s ease-in-out infinite;
    opacity: 0.18;
}

@keyframes f1 {
    0%,100%{transform:translate(0,0) scale(1)}
    50%{transform:translate(50px,40px) scale(1.12)}
}
@keyframes f2 {
    0%,100%{transform:translate(0,0) scale(1)}
    50%{transform:translate(-40px,-50px) scale(1.08)}
}
@keyframes f3 {
    0%,100%{transform:translate(0,0) scale(1)}
    50%{transform:translate(-30px,30px) scale(1.15)}
}

/* Noise */
.noise-overlay {
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ---- App Container ---- */
#app {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- Animation System ---- */
@keyframes enterUp {
    from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.97); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.ani {
    opacity: 0;
    animation: enterUp 0.4s var(--smooth) forwards;
    animation-delay: var(--d, 0s);
    will-change: transform, opacity;
}

/* ---- Hero ---- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-top: 0.5rem;
}

.logo-container {
    position: relative;
    width: 120px; height: 120px;
    margin-bottom: 1rem;
}

.logo-ring {
    position: absolute; inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff6b35, #ff2d8a, #c878ff, #6e3aff, #c878ff, #ff2d8a, #ff6b35);
    animation: spin 3.5s linear infinite;
    opacity: 0.8;
}
.logo-ring::after {
    content: ''; position: absolute; inset: 3px;
    border-radius: 50%; background: var(--bg);
}

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

.logo-inner {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #12101a, #0a0810);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    animation: pulse 3s ease-in-out infinite;
    overflow: hidden;
}

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

@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(200,120,255,0.3); }
    50%     { box-shadow: 0 0 0 10px rgba(200,120,255,0); }
}

.logo-text-club {
    font-family: var(--display);
    font-weight: 900; font-size: 2rem;
    line-height: 1; letter-spacing: 2px;
    background: var(--neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text-sub {
    font-family: var(--script);
    font-size: 1.2rem;
    color: rgba(255,255,255,0.65);
    margin-top: -2px;
    transform: rotate(-5deg);
}

.hero-tagline {
    font-size: 0.75rem; font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
}

/* (schedule removed) */

/* ===========================================
   BENTO GRID
   =========================================== */
.bento-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

/* ---- Bento Card Base ---- */
.bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-md);
    background: var(--surface);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.22s var(--spring), border-color 0.25s, box-shadow 0.25s;
    -webkit-user-drag: none;
}

.bento-card:active {
    transform: scale(0.96);
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(200,120,255,0.12);
    transition-duration: 0.06s;
}

/* --- Glow shimmer on featured cards --- */
.bento-card.featured {
    background: linear-gradient(135deg, rgba(200,120,255,0.08), rgba(255,45,138,0.05));
    border-color: rgba(200,120,255,0.12);
}

.bento-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-md);
    background: linear-gradient(105deg, transparent 40%, rgba(200,120,255,0.06) 50%, transparent 60%);
    background-size: 250% 100%;
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* --- Half-size tile (square-ish, stacked vertically) --- */
.bento-half {
    grid-column: span 1;
    padding: 1rem 0.85rem;
    min-height: 120px;
    justify-content: space-between;
}

.bento-half .bento-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    margin-bottom: 0.6rem;
    transition: transform 0.2s var(--spring);
}

.bento-half .bento-icon svg { width: 18px; height: 18px; }

.bento-half:active .bento-icon { transform: scale(1.1) rotate(-4deg); }

.bento-half .bento-text { margin-top: auto; }

.bento-half .bento-title {
    font-family: var(--display);
    font-weight: 700; font-size: 0.82rem;
    letter-spacing: 0.6px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.bento-half .bento-sub {
    font-size: 0.68rem;
    color: var(--muted);
    line-height: 1.3;
}

/* --- Full-width card (horizontal layout) --- */
.bento-full {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
}

.bento-full .bento-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 0.2s var(--spring);
}

.bento-full .bento-icon svg { width: 20px; height: 20px; }

.bento-full:active .bento-icon { transform: scale(1.08); }

.bento-full .bento-text { flex: 1; min-width: 0; }

.bento-full .bento-title {
    font-family: var(--display);
    font-weight: 700; font-size: 0.85rem;
    letter-spacing: 0.8px;
    margin-bottom: 1px;
}

.bento-full .bento-sub {
    font-size: 0.72rem;
    color: var(--muted);
}

/* Arrow (full-width cards only) */
.bento-arrow {
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.2s var(--spring), color 0.2s;
}
.bento-arrow svg { width: 16px; height: 16px; }

.bento-card:active .bento-arrow {
    transform: translateX(3px);
    color: var(--accent);
}

/* ---- Divider ---- */
.section-divider {
    width: 50px; height: 2px;
    border-radius: 1px;
    background: var(--neon);
    margin: 1rem auto;
    opacity: 0.4;
}

/* ---- Socials ---- */
.socials-section {
    display: flex; align-items: center;
    justify-content: center;
    gap: 0.85rem; width: 100%;
}

.social-btn {
    width: 48px; height: 48px;
    border-radius: var(--r-sm);
    background: var(--surface);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    text-decoration: none; cursor: pointer;
    transition: transform 0.22s var(--spring), border-color 0.2s, color 0.2s;
}
.social-btn svg { width: 20px; height: 20px; }

.social-btn:active {
    transform: scale(0.9);
    border-color: var(--border-hover);
    color: var(--text);
    transition-duration: 0.06s;
}

/* ---- Map Section ---- */
.map-section {
    width: 100%;
    margin-top: 1.25rem;
}

.map-label {
    font-family: var(--display);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    margin-bottom: 0.6rem;
}

.map-wrapper {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    background: rgba(16,12,24,0.5);
}

.map-wrapper iframe {
    display: block; width: 100%; height: 180px;
    border: 0;
    filter: brightness(0.7) contrast(1.1) saturate(0.6);
    transition: filter 0.3s;
}

.map-wrapper:active iframe {
    filter: brightness(0.85) contrast(1.05) saturate(0.8);
}

/* ---- Footer ---- */
.footer-section {
    margin-top: 1.5rem;
    padding: 0.75rem 0;
    text-align: center;
}

.footer-text {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.18);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- Desktop ---- */
@media (min-width: 768px) {
    #app { max-width: 480px; padding-top: 3rem; }
    .logo-container { width: 150px; height: 150px; }
    .logo-text-club { font-size: 2.5rem; }
    .logo-text-sub { font-size: 1.5rem; }
    .bento-half { min-height: 140px; }
    .social-btn { width: 52px; height: 52px; }
    .map-wrapper iframe { height: 220px; }

    .bento-card:hover {
        transform: translateY(-2px) scale(1.015);
        border-color: var(--border-hover);
        box-shadow: 0 8px 30px rgba(200,120,255,0.1);
    }
    .bento-card:hover .bento-icon { transform: scale(1.1) rotate(-4deg); }
    .bento-card:hover .bento-arrow { transform: translateX(3px); color: var(--accent); }
    .social-btn:hover {
        transform: translateY(-2px) scale(1.06);
        color: var(--text); border-color: var(--border-hover);
    }
}