/* ========================================
   Moonshard MU Web - MU Online Theme CSS
   ======================================== */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --bg-card-hover: #222230;
  --border-color: #2a2a3a;
  --gold-primary: #c9a84c;
  --gold-light: #f4d03f;
  --gold-dark: #8b6914;
  --text-primary: #e8e8f0;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;
  --accent-red: #c0392b;
  --accent-purple: #8e44ad;
  --accent-blue: #3498db;
  --accent-green: #27ae60;
  --accent-orange: #e67e22;
  --font-heading: 'Cinzel', 'Cinzel Decorative', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================
   Header
   ======================================== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.server-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(201, 168, 76, 0.1);
}

.nav-link.active {
  color: var(--gold-primary);
  background: rgba(201, 168, 76, 0.1);
}

.nav-link.login-btn {
  color: var(--gold-primary);
}

.nav-link.register-btn {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--bg-primary);
  font-weight: 600;
}

.nav-link.register-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: var(--bg-primary);
}

.nav-link.logout {
  color: var(--accent-red);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.2s;
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 4rem;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1rem;
}

.title-line {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.title-glow {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(201, 168, 76, 0.05);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ========================================
   Section Titles
   ======================================== */

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold-primary);
}

.title-ornament {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========================================
   Quick Links Section
   ======================================== */

.quick-links-section {
  margin-bottom: 2rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.quick-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  display: block;
}

.quick-link-card:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.quick-link-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.quick-link-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.quick-link-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ========================================
   Auth Section
   ======================================== */

.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem 0;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-dark));
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========================================
   Forms
   ======================================== */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.auth-footer p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========================================
   Alerts
   ======================================== */

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: #e74c3c;
}

.alert-success {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #2ecc71;
}

/* ========================================
   Ranking Tables
   ======================================== */

.ranking-section {
  margin-bottom: 2rem;
}

.ranking-container {
  max-width: 900px;
  margin: 0 auto;
}

.ranking-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ranking-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.ranking-header p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.ranking-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table thead {
  background: var(--bg-secondary);
}

.ranking-table th {
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.ranking-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.ranking-table tbody tr:last-child td {
  border-bottom: none;
}

.ranking-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.rank-col {
  width: 60px;
  text-align: center;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700, #daa520);
  color: #000;
}

.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  color: #000;
}

.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
}

.top-rank {
  background: rgba(201, 168, 76, 0.05);
}

.character-name-link {
  color: var(--gold-primary);
  font-weight: 500;
}

.character-name-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.empty-row {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem !important;
}

/* ========================================
   Dashboard
   ======================================== */

.dashboard-section {
  margin-bottom: 2rem;
}

.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 2rem;
}

.dashboard-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--gold-primary);
}

.username-highlight {
  color: var(--gold-light);
}

.dashboard-header p {
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.dashboard-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.card-content p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.card-content strong {
  color: var(--text-primary);
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-links .quick-link {
  padding: 0.5rem 0.75rem;
  background: var(--bg-primary);
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.quick-links .quick-link:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-primary);
}

.characters-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.characters-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.section-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.character-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.2s;
}

.character-card:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
}

.character-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.character-info h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.character-class {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.character-level {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--gold-primary);
  background: rgba(201, 168, 76, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.loading-text, .empty-text, .error-text {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.error-text {
  color: var(--accent-red);
}

/* ========================================
   Character Detail
   ======================================== */

.character-section {
  margin-bottom: 2rem;
}

.character-container {
  max-width: 900px;
  margin: 0 auto;
}

.character-header {
  text-align: center;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--gold-primary);
}

.character-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.character-class-title {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.25rem;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.character-info-card,
.character-stats-card,
.character-skills-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.character-skills-card {
  grid-column: 1 / -1;
}

.character-info-card h3,
.character-stats-card h3,
.character-skills-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
}

.pk-value {
  color: var(--accent-red);
}

.zen-value {
  color: var(--gold-primary);
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-name {
  width: 80px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stat-base {
  flex: 1;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.stat-total {
  width: 50px;
  text-align: right;
  color: var(--gold-primary);
  font-weight: 600;
}

.points-remaining {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
}

.points-remaining strong {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.skill-item {
  padding: 0.5rem 0.75rem;
  background: var(--bg-primary);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-id {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.skill-level {
  font-size: 0.75rem;
  color: var(--gold-primary);
  background: rgba(201, 168, 76, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ========================================
   Events Section
   ======================================== */

.events-section {
  margin-bottom: 2rem;
}

.events-container {
  max-width: 900px;
  margin: 0 auto;
}

.events-header {
  text-align: center;
  margin-bottom: 2rem;
}

.events-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.events-header p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--event-color, var(--gold-primary));
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}

.event-card:hover {
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.event-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.event-info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.event-time,
.event-countdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.time-label,
.countdown-label {
  color: var(--text-muted);
}

.time-value {
  color: var(--text-primary);
  font-weight: 500;
}

.countdown-value {
  color: var(--gold-primary);
  font-weight: 600;
  font-family: monospace;
}

/* ========================================
   Error Pages
   ======================================== */

.error-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

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

.error-icon {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.error-container h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.error-container p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.error-detail {
  font-size: 0.85rem;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

/* ========================================
   Footer
   ======================================== */

.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-ornament {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.3;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-disclaimer {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }

  .main-nav.mobile-open {
    display: flex;
  }

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

  .title-glow {
    font-size: 2.5rem;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

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

  .dashboard-grid,
  .character-grid {
    grid-template-columns: 1fr;
  }

  .ranking-table {
    font-size: 0.8rem;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0.5rem 1rem;
  }

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

  .main-content {
    padding: 1rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .title-glow {
    font-size: 2rem;
  }
}
