/* ==========================================
   7DAYSBROAD - MODERN DESIGN SYSTEM
   Version: 2.0 - Hot & Sleek
   ========================================== */

/* --------------------------------------------------
   CSS VARIABLES - Design Tokens
   -------------------------------------------------- */
:root {
  /* Colors - Palette đẹp mắt */
  --color-primary: #ff6b35;         /* Cam đậm */
  --color-primary-dark: #e55a2b;
  --color-secondary: #4ecdc4;      /* Xanh ngọc */
  --color-accent: #ffe66d;         /* Vàng pastel */
  --color-dark: #1a1a2e;           /* Nền tối */
  --color-darker: #0f0f1b;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --color-text: #2d3436;
  --color-text-light: #636e72;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-dark: linear-gradient(135deg, var(--color-dark), var(--color-darker));
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2.5rem;
  --font-size-hero: clamp(2.5rem, 8vw, 4.5rem);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 50px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --------------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* --------------------------------------------------
   LAYOUT - Container
   -------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --------------------------------------------------
   NAVBAR - Sticky với glassmorphism
   -------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  color: var(--color-dark);
}

.logo-icon {
  font-size: 2rem;
  color: var(--color-primary);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  padding: var(--space-xs) var(--space-sm);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* --------------------------------------------------
   HERO SECTION - Full impact
   -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  color: var(--color-white);
  overflow: hidden;
  padding: var(--space-xxl) 0;
}

/* Animated background particles */
.hero-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 70%;
  right: 15%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-30px) rotate(180deg); opacity: 0.6; }
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: slideInLeft 0.8s ease-out;
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.title-line {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 2px;
}

.title-highlight {
  display: block;
  font-size: var(--font-size-hero);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin: var(--space-xs) 0;
}

.hero-description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
  opacity: 0.9;
  line-height: 1.8;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat-box {
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
  display: block;
  font-size: var(--font-size-xxl);
  font-weight: 800;
  color: var(--color-accent);
}

.stat-label {
  font-size: var(--font-size-sm);
  opacity: 0.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 0.8s ease-out 0.2s both;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  animation: pulse 3s ease-in-out infinite;
}

.hero-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--color-white);
  opacity: 0.6;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --------------------------------------------------
   BUTTONS - Modern, gradient, hover effects
   -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--color-white);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}

.btn-connect {
  background: var(--color-secondary);
  color: var(--color-dark);
  font-weight: 700;
  width: 100%;
}

.btn-connect:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.btn-vote {
  background: var(--color-white);
  color: var(--color-dark);
  border: 2px solid var(--color-primary);
}

.btn-vote:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* --------------------------------------------------
   SECTION STYLES - Common
   -------------------------------------------------- */
section {
  padding: var(--space-xxl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: var(--font-size-xxl);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
}

/* --------------------------------------------------
   SERVERS SECTION - Card design
   -------------------------------------------------- */
.servers {
  background: var(--color-light);
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.server-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.server-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.server-card-header {
  padding: var(--space-md);
  background: var(--gradient-dark);
  color: var(--color-white);
}

.server-info-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.server-badge {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.server-status {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.server-status.online {
  color: #2ed573;
}

.server-status.offline {
  color: #ff4757;
}

.server-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.server-banner {
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.server-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.server-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-light);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-white);
  border-radius: var(--radius-sm);
}

.spec-item i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.server-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-light);
}

/* --------------------------------------------------
   DISCORD CTA SECTION
   -------------------------------------------------- */
.discord-cta {
  background: var(--gradient-dark);
  color: var(--color-white);
  padding: var(--space-xxl) 0;
}

.discord-cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.cta-text h2 {
  font-size: var(--font-size-xxl);
  margin-bottom: var(--space-sm);
}

.cta-text p {
  font-size: var(--font-size-lg);
  opacity: 0.8;
  margin-bottom: var(--space-lg);
}

.cta-widget {
  max-width: 400px;
  margin: 0 auto;
}

.cta-widget iframe {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------
   DONATE CTA SECTION
   -------------------------------------------------- */
.donate-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: var(--space-xxl) 0;
}

.donate-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.donate-text h2 {
  font-size: var(--font-size-xxl);
  margin-bottom: var(--space-sm);
}

.donate-text p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.donate-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.method {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-md);
}

.method i {
  font-size: 1.5rem;
}

.btn-donate {
  background: var(--color-white);
  color: var(--color-primary);
  padding: var(--space-md) var(--space-xxl);
  font-size: var(--font-size-xl);
  font-weight: 700;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.btn-donate:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* --------------------------------------------------
   FOOTER - Modern grid layout
   -------------------------------------------------- */
.site-footer {
  background: var(--gradient-dark);
  color: var(--color-light);
  padding-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer-col h4 {
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col ul a {
  color: rgba(255,255,255,0.7);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--color-accent);
}

.social-icons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.social-icons a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
}

.contact-list i {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.6);
}

.dmca-badge img {
  height: 30px;
}

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

/* --------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------- */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .discord-cta-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-widget {
    margin: 0 auto;
  }

  .donate-content {
    flex-direction: column;
    text-align: center;
  }

  .donate-methods {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: calc(var(--space-xxl) + var(--space-lg)) var(--space-md) var(--space-md);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: var(--font-size-xl);
  }

  .hero-stats {
    flex-wrap: wrap;
  }

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

  .server-specs {
    grid-template-columns: 1fr 1fr;
  }

  .server-actions {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  :root {
    --font-size-hero: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-box {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

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

/* --------------------------------------------------
   ANIMATIONS & UTILITIES
   -------------------------------------------------- */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal */
[data-scroll] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

[data-scroll].in-view {
  opacity: 1;
  transform: translateY(0);
}
