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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #0a0a0a;
  background-image: url('../images/dragon_nest_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #ffc107;
}

h1 {
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

h2 {
  font-size: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

h3 {
  font-size: 1.5rem;
  color: #ffd54f;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #ffd54f;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ffecb3;
}

/* Navbar */
.navbar {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: #fff;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: #ffc107;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffc107;
  transition: width 0.3s;
}

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

.btn-logout {
  background-color: #dc3545;
  border: none;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-logout:hover {
  background-color: #c82333;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #ffc107;
  color: #000;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: #ffca28;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: #ffc107;
  color: #000;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

/* Server Info */
.server-info {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.stats-table th, 
.stats-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-table thead {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.stats-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.status-icon {
  margin-right: 0.5rem;
}

/* News Section */
.featured-news {
  padding: 4rem 1rem;
  background-color: rgba(0, 0, 0, 0.7);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card h3 {
  color: #b17d00;
  margin-bottom: 1rem;
}

/* Forms */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #ffc107;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  font-weight: 500;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.8);
  color: #fff;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.8);
  color: #fff;
}

/* Footer */
.footer {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Player Dashboard */
.dashboard {
  padding: 4rem 1rem;
}

.player-card {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

/* Topup Section */
.topup-packages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.package-card {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.package-card:hover {
  transform: translateY(-5px);
}

.package-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 1.5rem;
  color: #b17d00;
  margin-bottom: 1rem;
}

/* Spacer for fixed navbar */
.spacer {
  height: 70px;
}

/* Helper Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  body {
    background-image: url('../images/dragon_nest_mobile_bg.jpg');
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
  }
  
  .news-grid,
  .topup-packages {
    grid-template-columns: 1fr;
  }
  
  .stats-table {
    font-size: 0.9rem;
  }
  
  .stats-table th, 
  .stats-table td {
    padding: 0.5rem;
  }
  
  .server-info {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 4rem;
  }
  
  .nav-menu {
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
