/* Base Styles */
:root {
  --primary-color: #cd412b;
  --secondary-color: #1e2124;
  --text-color: #e0e0e0;
  --background-color: #141814;
  --card-bg: rgba(30, 33, 36, 0.9);
  --accent-color: #ffa500;
  --success-color: #4caf50;
  --danger-color: #f44336;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  background-image: url('../img/background.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  position: relative;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(20, 24, 20, 0.7) 0%, rgba(20, 24, 20, 0.9) 100%);
  z-index: -1;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

p {
  margin-bottom: 20px;
}

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

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

section {
  padding: 80px 0;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(20, 24, 20, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

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

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

.discord-btn {
  display: flex;
  align-items: center;
  background-color: #5865F2;
  color: white;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.discord-btn:hover {
  background-color: #4752c4;
  transform: translateY(-2px);
}

.discord-btn svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
  color: var(--primary-color);
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.primary-btn:hover {
  background-color: #b33a26;
  transform: translateY(-2px);
}

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

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Server Section */
.server-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
}

.server-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.server-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
}

.server-info {
  padding: 30px;
}

.server-info h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.server-status {
  margin: 25px 0;
}

.status-label {
  font-weight: 600;
  margin-bottom: 5px;
}

.player-count {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.progress-container {
  width: 100%;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.server-buttons {
  display: flex;
  gap: 15px;
}

.connect-btn {
  background-color: var(--success-color);
  color: white;
}

.connect-btn:hover {
  background-color: #3d8b40;
}

.info-btn {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.info-btn:hover {
  background-color: #2a2e33;
}

.btn svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

/* Shop Section */
.shop {
  text-align: center;
}

.shop p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.shop-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.shop-option {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  width: 100%;
  max-width: 350px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.shop-option:hover {
  transform: translateY(-10px);
}

.flag {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

.flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-option h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.shop-option p {
  margin-bottom: 25px;
  font-size: 1rem;
}

.shop-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.shop-option:hover .shop-btn {
  background-color: #b33a26;
}

/* Rules Section */
.rules-container {
  max-width: 800px;
  margin: 0 auto;
}

.rule {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
}

.rule-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.rule-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.rule-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.toggle-icon {
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.rule-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.rule.active .rule-content {
  padding: 0 20px 20px;
  max-height: 500px;
}

.rule.active .toggle-icon {
  transform: rotate(45deg);
}

/* Staff Section */
.staff-members {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.staff-member {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  width: 100%;
  max-width: 250px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.staff-member:hover {
  transform: translateY(-10px);
}

.staff-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-member h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.staff-role {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}

.copy-text {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: monospace;
  transition: var(--transition);
}

.copy-text:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
  background-color: rgba(20, 24, 20, 0.9);
  padding: 50px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo img {
  height: 60px;
}

.footer-info {
  text-align: center;
  flex: 1;
  padding: 0 20px;
}

.disclaimer {
  font-size: 0.8rem;
  opacity: 0.7;
}

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

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

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

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow-y: auto;
  padding: 50px 20px;
}

.modal-content {
  background-color: var(--card-bg);
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  margin: 0;
  text-align: left;
}

.modal-header h2:after {
  display: none;
}

.modal-body {
  padding: 0;
}

.server-image-modal {
  height: 250px;
  overflow: hidden;
}

.server-image-modal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-details {
  padding: 30px;
}

.server-details h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.server-details ul {
  list-style-position: inside;
  margin-bottom: 30px;
}

.server-details li {
  margin-bottom: 10px;
}

.modal-buttons {
  justify-content: center;
}

.battlemetrics-btn {
  background-color: var(--danger-color);
  color: white;
}

.battlemetrics-btn:hover {
  background-color: #d32f2f;
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--success-color);
  color: white;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  z-index: 2000;
  transition: bottom 0.3s ease;
}

.copy-notification.show {
  bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .server-card {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--secondary-color);
    padding: 20px 0;
    text-align: center;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .discord-btn {
    margin-left: 15px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .server-buttons {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-info {
    order: 2;
  }
  
  .footer-social {
    order: 3;
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .server-info {
    padding: 20px;
  }
  
  .server-info h3 {
    font-size: 1.5rem;
  }
  
  .modal {
    padding: 20px 10px;
  }
}