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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid #d1d5db;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-content {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #d97706;
}

.tagline {
  font-size: 0.875rem;
  color: #6b7280;
  display: none;
}

@media (min-width: 768px) {
  .tagline {
    display: block;
  }
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  color: #374151;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #d97706;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #d97706;
  color: white;
}

.btn-primary:hover {
  background-color: #b45309;
}

.btn-yellow {
  background-color: #eab308;
  color: #000;
  font-weight: bold;
}

.btn-yellow:hover {
  background-color: #ca8a04;
}

.btn-outline {
  border: 1px solid #d1d5db;
  background-color: transparent;
  color: #374151;
}

.btn-outline:hover {
  background-color: #f3f4f6;
}

.btn-small {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #fbbf24;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.5rem;
  }
}

/* Enhanced countdown box with martial arts theme and visual effects */
.countdown-box {
  background: linear-gradient(135deg, #be123c 0%, #7f1d1d 50%, #450a0a 100%);
  border: 2px solid #ec4899;
  border-radius: 1rem;
  padding: 2.5rem 3rem;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(190, 18, 60, 0.3), 0 0 30px rgba(236, 72, 153, 0.2), inset 0 1px 0
    rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* Added decorative pattern overlay */
.countdown-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px, 20px 20px;
  pointer-events: none;
}

/* Enhanced countdown label with glow effect */
.countdown-label {
  color: #fdf2f8;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.6), 0 0 20px rgba(236, 72, 153, 0.4), 0 0 30px rgba(236, 72, 153, 0.2);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

/* Enhanced countdown timer with animated glow and better typography */
.countdown-timer {
  font-size: 1.8rem;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Courier New", monospace;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
  text-shadow: 0 0 15px rgba(236, 72, 153, 0.8), 0 0 30px rgba(236, 72, 153, 0.6), 0 0 45px rgba(236, 72, 153, 0.4), 0
    2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  animation: countdown-glow 3s ease-in-out infinite alternate;
}

/* Added breathing glow animation */
@keyframes countdown-glow {
  0% {
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.8), 0 0 30px rgba(236, 72, 153, 0.6), 0 0 45px rgba(236, 72, 153, 0.4), 0
      2px 4px rgba(0, 0, 0, 0.3);
  }
  100% {
    text-shadow: 0 0 20px rgba(236, 72, 153, 1), 0 0 40px rgba(236, 72, 153, 0.8), 0 0 60px rgba(236, 72, 153, 0.6), 0
      2px 4px rgba(0, 0, 0, 0.3);
  }
}

/* Responsive adjustments for countdown display */
@media (max-width: 768px) {
  .countdown-box {
    padding: 2rem 1.5rem;
    min-height: 8rem;
    max-width: 90%;
  }

  .countdown-label {
    font-size: 1.2rem;
  }

  .countdown-timer {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .countdown-timer {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .countdown-label {
    font-size: 1rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Section Divider */
.section-divider {
  background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.3), transparent);
  height: 1px;
}

/* Download & Server Section */
.download-server-section {
  padding: 4rem 0;
  background-color: rgba(254, 252, 232, 0.3);
}

.grid-two-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .grid-two-columns {
    grid-template-columns: 1fr 1fr;
  }
}

/* Card Styles */
.card {
  background-color: #fefce8;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.15);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #d97706;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Download Section Styles */
.download-item {
  margin-bottom: 1.5rem;
}

.download-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.download-header h4 {
  font-weight: 600;
}

.badge {
  font-size: 0.75rem;
  background-color: rgba(217, 119, 6, 0.1);
  color: #d97706;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

.download-channels {
  display: flex;
  gap: 0.5rem;
}

.download-channels .btn {
  flex: 1;
}

.auxiliary-download {
  padding-top: 1rem;
  border-top: 1px solid #d1d5db;
}

.auxiliary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: rgba(243, 244, 246, 0.5);
  border-radius: 0.5rem;
}

.auxiliary-desc {
  font-size: 0.875rem;
  color: #6b7280;
}

.game-notice {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.5rem;
}

.game-notice p {
  font-size: 0.875rem;
  color: #dc2626;
  font-weight: 600;
}

/* Server Info Styles */
.server-details {
  margin-bottom: 1.5rem;
}

.server-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.server-item {
  font-size: 0.875rem;
}

.server-item .label {
  color: #6b7280;
}

.server-item .value {
  font-weight: 600;
}

.server-item .value.highlight {
  color: #8b5cf6;
}

.server-version,
.server-intro {
  margin-bottom: 1rem;
}

.server-version .label,
.server-intro .label {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.version-text {
  color: #d97706;
  font-weight: 600;
}

.intro-text {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.intro-highlight {
  color: #d97706;
  font-weight: 600;
  font-size: 0.875rem;
}

.server-countdown {
  background-color: #fefce8;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  text-align: center;
}

.server-countdown .countdown-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.server-countdown .countdown-timer {
  color: #d97706;
}

/* Game Features Section */
.game-features {
  padding: 4rem 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(217, 119, 6, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #d97706;
  margin-bottom: 1rem;
}

.section-description {
  color: #6b7280;
  max-width: 32rem;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  text-align: center;
  padding: 1.5rem;
}

.feature-badge {
  background-color: #8b5cf6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.feature-description {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Footer Styles */
.footer {
  background-color: #fefce8;
  border-top: 1px solid #d1d5db;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #d97706;
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-description,
.footer-contact {
  font-size: 0.875rem;
  color: #6b7280;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #d97706;
}

.footer-bottom {
  border-top: 1px solid #d1d5db;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Page Styles for cbjs.html and fgjs.html */
.page-hero {
  background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

.content-section {
  padding: 4rem 0;
}

.content-card {
  background-color: #fefce8;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.content-card h2 {
  color: #d97706;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.feature-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item h3 {
  color: #8b5cf6;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-item .label {
  color: #6b7280;
}

.info-item .value {
  font-weight: 600;
  color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .countdown-timer {
    font-size: 1.4rem;
  }

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

  .download-channels {
    flex-direction: column;
  }
}
