/* ====================================
   LUREX Platform — Design System
   Premium Dark Theme
   ==================================== */

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

/* ====================================
   CSS VARIABLES
   ==================================== */
:root {
    --bg-primary: #08080d;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a25;
    --bg-elevated: #1f1f2e;
    --bg-glass: rgba(17,17,24,0.85);
    --bg-glass-light: rgba(255,255,255,0.03);
    --bg-overlay: rgba(0,0,0,0.6);

    --accent: #00b4d8;
    --accent-hover: #0096c7;
    --accent-light: rgba(0,180,216,0.15);
    --accent-glow: 0 0 20px rgba(0,180,216,0.3);
    --gradient-primary: linear-gradient(135deg, #00b4d8 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #7c3aed 0%, #f472b6 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);

    --text-primary: #f0f0f5;
    --text-secondary: #9494b0;
    --text-muted: #5a5a75;
    --text-inverse: #08080d;
    --link: #00b4d8;

    --border: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.04);
    --border-accent: rgba(0,180,216,0.3);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(0,180,216,0.2);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    --sidebar-width: 260px;
    --header-height: 64px;
    --container-max: 1200px;
    --content-max: 680px;
}

/* ====================================
   RESET
   ==================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { color: var(--link); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent-hover); }
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
::selection { background: var(--accent); color: var(--text-inverse); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ====================================
   LAYOUT
   ==================================== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.content-container { max-width: var(--content-max); margin: 0 auto; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-xs { gap: 4px; } .gap-sm { gap: 8px; } .gap-md { gap: 16px; } .gap-lg { gap: 24px; } .gap-xl { gap: 32px; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ====================================
   TYPOGRAPHY
   ==================================== */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 2rem; }
.text-4xl { font-size: 2.5rem; }
.text-5xl { font-size: 3.5rem; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ====================================
   BUTTONS
   ==================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600;
    font-size: 0.9rem; border: none; cursor: pointer; transition: var(--transition);
    white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(rgba(255,255,255,0.1), transparent);
    opacity: 0; transition: var(--transition-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 0 40px rgba(0,180,216,0.4); transform: translateY(-1px); color: #fff; }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--accent); color: var(--text-primary); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-glass-light); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-full); }
.btn-icon.sm { width: 32px; height: 32px; }
.btn-block { width: 100%; }

/* ====================================
   INPUTS
   ==================================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-input {
    width: 100%; padding: 12px 16px; background: var(--bg-tertiary);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text-primary); font-size: 0.95rem; transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); background: var(--bg-elevated); }
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.75rem; color: var(--danger); margin-top: 4px; }
.input-group { position: relative; }
.input-group .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-group .form-input { padding-left: 42px !important; }

/* ====================================
   CARDS
   ==================================== */
.card {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.card:hover { border-color: var(--border-accent); }
.card-body { padding: 20px; }
.card-glass {
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: var(--radius-lg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}

/* ====================================
   AVATAR
   ==================================== */
.avatar {
    width: 44px; height: 44px; border-radius: var(--radius-full);
    object-fit: cover; border: 2px solid var(--border); flex-shrink: 0;
}
.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; border-width: 3px; }
.avatar-xxl { width: 130px; height: 130px; border-width: 4px; }
.avatar-ring { border-color: var(--accent); }
.avatar-online { position: relative; }
.avatar-online::after {
    content: ''; position: absolute; bottom: 2px; right: 2px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--success); border: 2px solid var(--bg-secondary);
}

/* ====================================
   BADGES
   ==================================== */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-accent { background: var(--accent-light); color: var(--accent); }
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-vip { background: var(--gradient-gold); color: #000; }
.badge-verified {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); color: #fff; font-size: 10px;
}
.badge-ceo {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: 6px; font-size: 0.6rem; font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #f97316); color: #000;
    letter-spacing: 1px; text-transform: uppercase; vertical-align: middle;
    box-shadow: 0 0 8px rgba(245,158,11,0.3);
}

/* ====================================
   NOTIFICATIONS DOT
   ==================================== */
.notif-dot {
    position: absolute; top: -2px; right: -2px;
    min-width: 18px; height: 18px; border-radius: 9px;
    background: var(--danger); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 2px solid var(--bg-secondary);
}

/* ====================================
   BLURRED CONTENT (locked)
   ==================================== */
.content-locked { position: relative; overflow: hidden; border-radius: var(--radius-md); }
.content-locked .locked-media { filter: blur(25px); transform: scale(1.1); pointer-events: none; }
.content-locked .lock-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px;
    background: rgba(8,8,13,0.5); backdrop-filter: blur(4px);
    z-index: 2;
}
.lock-overlay .lock-icon { font-size: 2.5rem; opacity: 0.9; }
.lock-overlay .lock-text { font-size: 0.9rem; color: var(--text-secondary); }

/* ====================================
   MODAL
   ==================================== */
.modal-backdrop {
    position: fixed; inset: 0; background: var(--bg-overlay);
    backdrop-filter: blur(8px); z-index: 1000;
    display: none; align-items: center; justify-content: center; padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-backdrop.active { display: flex; }
.modal {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-xl); width: 100%; max-width: 500px;
    max-height: 90vh; overflow-y: auto; animation: slideUp 0.3s ease;
}
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

/* ====================================
   TABS
   ==================================== */
.tabs { display: flex; border-bottom: 1px solid var(--border); gap: 0; overflow-x: auto; }
.tab {
    padding: 14px 20px; color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
    cursor: pointer; transition: var(--transition); border-bottom: 2px solid transparent;
    white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ====================================
   DROPDOWN
   ==================================== */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 6px; box-shadow: var(--shadow-lg);
    z-index: 100; display: none; animation: fadeIn 0.15s ease;
}
.dropdown-menu.active { display: block; }
.dropdown-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    font-size: 0.9rem; color: var(--text-primary); border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition-fast); border: none; background: none; width: 100%; text-align: left;
}
.dropdown-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ====================================
   TOAST
   ==================================== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    padding: 14px 20px; background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px; min-width: 300px;
    animation: slideInRight 0.3s ease;
    font-size: 0.9rem;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }

/* ====================================
   SKELETON LOADING
   ==================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
.skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-image { width: 100%; height: 300px; border-radius: var(--radius-md); }

/* ====================================
   EMPTY STATE
   ==================================== */
.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 20px; text-align: center;
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state .empty-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.empty-state .empty-text { font-size: 0.9rem; color: var(--text-muted); max-width: 300px; }

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes heartBeat { 0% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } 60% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-slideUp { animation: slideUp 0.5s ease; }
.animate-pulse { animation: pulse 2s infinite; }
.like-animation { animation: heartBeat 0.6s ease; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; }

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .text-5xl { font-size: 2.5rem; }
    .text-4xl { font-size: 2rem; }
    .text-3xl { font-size: 1.5rem; }
    .hide-mobile { display: none !important; }
    .container { padding: 0 16px; }
    .modal { margin: 10px; max-width: calc(100% - 20px); }
    .btn-lg { padding: 14px 24px; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}
