/* ========================================
   Chaotic Realm - Modern CSS
   Mobile-first responsive design
   ======================================== */

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&display=swap");

@font-face {
  font-family: "UnrealT";
  src: url("/assets/fonts/UnrealT.ttf") format("truetype");
  font-display: swap;
}

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

:root {
  --color-primary: #ff7496;
  --color-secondary: #414fff;
  --color-dark: #0a0a0a;
  --color-gray-dark: #1a1a1a;
  --color-gray: #414f57;
  --color-gray-light: #c8cccf;
  --color-light: #f5f5f5;
  --color-white: #ffffff;
  --color-success: #00c853;
  --color-danger: #d50000;

  --font-primary: "Inter", sans-serif;
  --font-title: "Cinzel", serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray);
  background: var(--color-dark);
  background-image: url("/images/bg.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
.main-header,
.header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--color-white);
}

.logo-text h1 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--color-white);
  margin: 0;
  line-height: 1.2;
}

.logo-text .subtitle {
  font-size: 0.75rem;
  color: var(--color-gray-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigation */
.main-nav,
.nav {
  display: flex;
}

.nav-list,
.nav-menu {
  display: flex;
  list-style: none;
  gap: 5px;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 116, 150, 0.1);
  color: var(--color-primary);
}

.nav-link i {
  font-size: 0.9rem;
}

/* Dropdown */
.nav-dropdown,
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  min-width: 200px;
  list-style: none;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.nav-dropdown.active .dropdown-menu,
.nav-dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(255, 116, 150, 0.1);
  color: var(--color-primary);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section,
.hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  margin-bottom: 30px;
  animation: float 3s ease-in-out infinite;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--color-primary);
  box-shadow: 0 0 40px rgba(255, 116, 150, 0.4);
  object-fit: cover;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-description,
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-gray-light);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Small Variant */
.hero-small {
  padding: 100px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-small .hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-white);
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-small .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-gray-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Server Status */
.server-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 1.1rem;
}

.server-status.status-online {
  background: rgba(0, 200, 83, 0.1);
  border: 2px solid var(--color-success);
  color: var(--color-success);
}

.server-status.status-offline {
  background: rgba(213, 0, 0, 0.1);
  border: 2px solid var(--color-danger);
  color: var(--color-danger);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.status-online .status-indicator {
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
}

.status-offline .status-indicator {
  background: var(--color-danger);
  box-shadow: 0 0 10px var(--color-danger);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff4757 100%);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255, 116, 150, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 116, 150, 0.4);
}

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

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

/* ========================================
   Sections
   ======================================== */
.features-section,
.section {
  padding: 80px 0;
  position: relative;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--color-white);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(255, 116, 150, 0.2);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255, 116, 150, 0.3);
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-gray-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   Quick Links Section
   ======================================== */
.quick-links-section {
  padding: 80px 0;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.quick-link-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.quick-link-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.quick-link-card i {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.quick-link-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--color-white);
  margin: 0;
}

.quick-link-card p {
  color: var(--color-gray-light);
  font-size: 0.9rem;
  margin: 0;
}

/* ========================================
   Footer
   ======================================== */
.main-footer,
.footer {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
}

.footer-info {
  text-align: center;
  flex: 1;
}

.footer-info p {
  color: var(--color-gray-light);
  margin: 5px 0;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 116, 150, 0.3);
}

/* ========================================
   Animations
   ======================================== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav,
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .main-nav.active,
  .nav.active,
  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-list,
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 5px;
  }

  .nav-list > li,
  .nav-menu > li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 15px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.active .dropdown-menu,
  .dropdown.active .dropdown-menu {
    max-height: 500px;
  }

  .hero-section,
  .hero {
    padding: 80px 0 60px;
  }

  .features-grid,
  .quick-links-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-logo,
  .footer-info,
  .footer-social {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .logo-text,
  .logo-text h1 {
    font-size: 1.2rem;
  }

  .logo-text .subtitle {
    font-size: 0.65rem;
  }

  .hero-avatar {
    width: 100px;
    height: 100px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
