/* assets/css/style.css — 2026 Premium Design System */

:root {
  /* Colors - Modern Premium Palette */
  --gold: #C9A84C;
  --gold-light: #F7E7B4;
  --gold-gradient: linear-gradient(135deg, #C9A84C 0%, #E2C275 50%, #A0742A 100%);
  --gold-glow: 0 0 20px rgba(201, 168, 76, 0.4);
  
  --navy: #0A1628;
  --navy-deep: #050B16;
  
  --white: #ffffff;
  --cream: #FFFDF5;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  
  /* Spacing & Radius */
  --radius: 24px;
  --radius-sm: 12px;
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* Fonts */
  --font-main: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg: #050B16;
  --bg2: #0A1221;
  --card: rgba(20, 24, 40, 0.7);
  --text: #F8FAFC;
  --text2: #94A3B8;
  --border: rgba(255, 255, 255, 0.06);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --accent-glow: rgba(201, 168, 76, 0.3);
}

[data-theme="light"] {
  --bg: #F8FAFC;
  --bg2: #FFFFFF;
  --card: rgba(255, 255, 255, 0.8);
  --text: #0F172A;
  --text2: #64748B;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.4);
  --accent-glow: rgba(201, 168, 76, 0.1);
}

/* Global Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
  font-family: var(--font-body); 
  background: var(--bg); 
  color: var(--text); 
  min-height: 100vh; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; border-radius: var(--radius-sm); }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-main); font-weight: 800; letter-spacing: -0.02em; }

/* Layout */
.main-wrapper { 
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
  margin-left: 280px; 
  transition: margin-left 0.3s ease; 
}

.sidebar { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 280px; 
  height: 100vh; 
  background: var(--card); 
  border-right: 1px solid var(--border); 
  display: flex; 
  flex-direction: column; 
  z-index: 100; 
  backdrop-filter: var(--glass-blur); 
  transition: all 0.3s ease; 
}

.page-content { padding: 40px; padding-bottom: 100px; max-width: 1400px; margin: 0 auto; width: 100%; }
.full-page { padding: 0; max-width: none; }

/* Topbar */
.topbar { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  padding: 16px 40px; 
  background: var(--glass-bg); 
  border-bottom: 1px solid var(--border); 
  backdrop-filter: var(--glass-blur); 
  position: sticky; 
  top: 0; 
  z-index: 50; 
}
.topbar-title { 
  flex: 1; 
  font-family: var(--font-main); 
  font-weight: 800; 
  font-size: 1.25rem; 
  color: var(--text); 
}
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-icon { font-size: 1.4rem; cursor: pointer; color: var(--text2); transition: 0.2s; }
.topbar-icon:hover { color: var(--gold); transform: scale(1.1); }
.topbar-avatar { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; }
.topbar-avatar img { 
  width: 42px; 
  height: 42px; 
  border-radius: 50%; 
  border: 2px solid var(--gold); 
  object-fit: cover; 
  box-shadow: var(--gold-glow);
}

/* Sidebar Navigation */
.sidebar-brand { padding: 32px 24px; display: flex; align-items: center; gap: 12px; }
.brand-name { font-size: 1.4rem; font-weight: 900; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-item { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  padding: 14px 20px; 
  margin: 4px 16px; 
  border-radius: var(--radius-sm); 
  color: var(--text2); 
  font-weight: 600; 
  transition: 0.3s; 
}
.nav-item:hover, .nav-item.active { 
  background: var(--gold-gradient); 
  color: #fff; 
  box-shadow: 0 10px 20px rgba(160, 116, 42, 0.3);
}

/* Glass Cards */
.card { 
  background: var(--card); 
  border-radius: var(--radius); 
  border: 1px solid var(--border); 
  backdrop-filter: var(--glass-blur); 
  padding: 32px; 
  box-shadow: var(--shadow); 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 30px 60px rgba(0,0,0,0.3); }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat-card { text-align: left; }
.stat-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; opacity: 0.8; }
.stat-value { font-size: 2.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.9rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 8px; }

/* Premium Banner */
.premium-banner { 
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/banner_dashboard.png'); 
  background-size: cover; 
  background-position: center; 
  border-radius: var(--radius); 
  padding: 60px 40px; 
  color: #fff; 
  margin-bottom: 40px; 
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}
.banner-content { position: relative; z-index: 2; max-width: 600px; }
.banner-title { font-size: 3rem; margin-bottom: 12px; }
.banner-text { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }

/* Buttons */
.btn { 
  padding: 14px 28px; 
  border-radius: 100px; 
  font-weight: 700; 
  font-family: var(--font-main); 
  transition: 0.3s; 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  border: none; 
  cursor: pointer;
}
.btn-gold { 
  background: var(--gold-gradient); 
  color: #fff; 
  box-shadow: 0 10px 25px rgba(160, 116, 42, 0.4); 
}
.btn-gold:hover { transform: scale(1.05); box-shadow: 0 15px 30px rgba(160, 116, 42, 0.6); }
.btn-outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }

/* Birthday Hero Screen */
.birthday-hero { 
  min-height: 100vh; 
  background: linear-gradient(rgba(5, 11, 22, 0.8), rgba(5, 11, 22, 0.95)), url('../img/bg_premium.png'); 
  background-size: cover; 
  background-position: center; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  padding: 60px 20px; 
  position: relative;
}
.hero-avatar { 
  width: 180px; 
  height: 180px; 
  border-radius: 50%; 
  border: 6px solid var(--gold); 
  box-shadow: 0 0 50px var(--gold); 
  margin-bottom: 32px; 
  object-fit: cover;
  animation: pulse-glow 2s infinite alternate;
}
@keyframes pulse-glow { from { box-shadow: 0 0 20px var(--gold); } to { box-shadow: 0 0 60px var(--gold); } }

.hero-name { 
  font-size: clamp(3rem, 10vw, 6rem); 
  background: var(--gold-gradient); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  margin-bottom: 16px; 
}

/* Floating Elements */
.floating-asset { position: absolute; pointer-events: none; animation: float 6s ease-in-out infinite; z-index: 1; opacity: 0.6; }
.asset-cake { top: 15%; left: 10%; width: 120px; animation-delay: 0s; }
.asset-gift { top: 20%; right: 12%; width: 100px; animation-delay: 2s; }
.asset-balloon { bottom: 20%; left: 15%; width: 90px; animation-delay: 4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-30px) rotate(10deg); } }

/* Mobile Bottom Nav */
.bottom-nav { 
  display: none; 
  position: fixed; 
  bottom: 24px; 
  left: 24px; 
  right: 24px; 
  height: 72px; 
  background: var(--card); 
  backdrop-filter: var(--glass-blur); 
  border: 1px solid var(--border); 
  border-radius: 100px; 
  z-index: 1000; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
}
.bottom-nav-item { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  color: var(--text2); 
  font-size: 0.75rem; 
  font-weight: 700; 
  gap: 4px;
}
.bottom-nav-item.active { color: var(--gold); }
.bottom-nav-icon { font-size: 1.5rem; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .main-wrapper { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .bottom-nav { display: flex; }
  .page-content { padding: 24px; padding-bottom: 120px; }
  .topbar { padding: 16px 24px; }
  .menu-toggle { display: block; }
}

/* Member Cards Grid */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.member-card-premium { 
  background: var(--card); 
  border-radius: var(--radius); 
  padding: 24px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  border: 1px solid var(--border); 
  transition: 0.3s ease;
}
.member-card-premium:hover { border-color: var(--gold); transform: translateY(-10px); }
.member-portrait { width: 100px; height: 100px; border-radius: 30px; object-fit: cover; margin-bottom: 16px; border: 3px solid var(--border); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
