/* Modern Professional Index Styles */

@font-face {
  font-family: 'DoDavidGothic';
  src: url('/fonts/DoDavidGothicRegular-7BEz4.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  background: 
    linear-gradient(180deg, rgba(10, 14, 26, 0.7) 0%, rgba(26, 20, 16, 0.8) 30%, rgba(42, 30, 18, 0.8) 60%, rgba(10, 14, 26, 0.7) 100%),
    url(/images/ui_bg2.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  margin: 0;
  padding: 0;
}

/* Navigation */
.main-nav {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 50px;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #e8dcc6;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #d4af37;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #f4d03f);
  transition: width 0.3s ease;
}

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

.nav-patreon {
  background: linear-gradient(135deg, #ff424d 0%, #e8535e 100%);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  color: white !important;
  font-weight: 600;
}

.nav-patreon:hover {
  background: linear-gradient(135deg, #ff5560 0%, #ff6b75 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 66, 77, 0.4);
}

.nav-patreon::after {
  display: none;
}

/* Hero Section */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 6rem 2rem;
  background: 
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(61, 40, 23, 0.3) 0%, transparent 50%);
  position: relative;
}

.hero-patreon-link {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff424d 0%, #e8535e 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 66, 77, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.hero-patreon-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 66, 77, 0.45);
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent 0%, rgba(10, 14, 26, 0.3) 50%, rgba(10, 14, 26, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
}

.hero-logo {
  max-width: 400px;
  width: 80%;
  margin-bottom: 2rem;
  filter: drop-shadow(0 8px 24px rgba(212, 175, 55, 0.4));
  animation: float 3s ease-in-out infinite;
}

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

.hero-title {
  font-family: 'DoDavidGothic', serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1rem 0;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #c0b5a0;
  margin: 0 0 2rem 0;
}

.hero-tech-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.hero-tech-badges img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.hero-tech-badges img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Main Content */
.main-content {
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Sections */
.content-section {
  margin-bottom: 5rem;
}

.section-title {
  font-family: 'DoDavidGothic', serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 2.5rem 0;
  color: #e8dcc6;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  margin: 1rem auto 0;
}

.section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-card {
  background: 
    linear-gradient(135deg, rgba(26, 20, 16, 0.85) 0%, rgba(26, 20, 16, 0.75) 100%),
    url(/images/ui_bg2.jpg);
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
}

.section-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  transform: translateY(-4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3ddb81 0%, #2ecc71 100%);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
  transform: translateY(-2px);
  color: white;
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.3rem;
}

.btn-icon {
  padding: 0.6rem;
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-icon:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
}

.btn-discord {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

.btn-discord:hover {
  background: linear-gradient(135deg, #6b75ff 0%, #5865f2 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.btn-discord img {
  height: 32px;
  filter: brightness(0) invert(1);
}

.btn-patreon {
  background: linear-gradient(135deg, #ff424d 0%, #e8535e 100%);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

.btn-patreon:hover {
  background: linear-gradient(135deg, #ff5560 0%, #ff6b75 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 66, 77, 0.4);
}

/* Download Section */
.download-card {
  text-align: center;
}

.download-info {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  color: #fff;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid #d4af37;
  color: #fff;
}

.info-item i {
  color: #d4af37;
  font-size: 1.5rem;
  min-width: 24px;
}

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.screenshot-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  border: 2px solid rgba(212, 175, 55, 0.1);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
}

.screenshot-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  border-color: rgba(212, 175, 55, 0.3);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Community Section */
.community-card {
  text-align: center;
}

.community-card p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #c0b5a0;
}

/* Server Status */
#servers section.content-section .section-card {
  max-width: 900px;
  margin: 0 auto;
}

section#servers .section-card {
  max-width: 900px !important;
  margin: 0 auto !important;
}

#servers {
  display: table-row-group !important;
  color: #fff !important;
}
#servers,
#servers * {
  color: #fff !important;
}
#servers i.fa-server {
  color: #037bff !important;
}

#servers tr {
  display: table-row !important;
  clear: both !important;
}

#servers td {
  display: table-cell !important;
  float: none !important;
}

.server-table-wrapper {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
  width: 100%;
  display: block;
  clear: both;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  color: #fff !important;
}

.server-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  display: table !important;
  clear: both;
  margin: 0 auto;
}

.server-table * {
  box-sizing: border-box;
}

.server-table thead {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.98) 0%, rgba(26, 20, 16, 0.98) 100%);
  z-index: 10;
  display: table-header-group !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.server-table thead tr {
  display: table-row !important;
}

.server-table tbody {
  display: table-row-group !important;
}

.server-table tbody tr {
  display: table-row !important;
  width: 100%;
  clear: both;
  background: linear-gradient(135deg, rgba(42, 30, 18, 0.6) 0%, rgba(26, 20, 16, 0.6) 100%);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.server-table tbody tr:nth-child(even) {
  background: linear-gradient(135deg, rgba(42, 30, 18, 0.4) 0%, rgba(26, 20, 16, 0.4) 100%);
}

.server-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%) !important;
  transform: scale(1.02);
  box-shadow: 
    -4px 0 0 rgba(212, 175, 55, 0.6),
    0 4px 16px rgba(212, 175, 55, 0.2);
  z-index: 1;
}

.server-table th,
.server-table td {
  display: table-cell !important;
  vertical-align: middle;
  text-align: left !important;
  float: none !important;
  clear: none !important;
  padding: 1.2rem 1.5rem;
  color: #fff;
}

.server-table th {
  font-weight: 700;
  color: #d4af37;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  border-bottom: 3px solid rgba(212, 175, 55, 0.5);
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.server-table th:first-child {
  padding-left: 2rem;
  border-top-left-radius: 8px;
}

.server-table th:last-child {
  border-top-right-radius: 8px;
  padding-right: 2rem;
}

.server-table td {
  font-size: 1rem;
  color: #e8dcc6;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.server-table td:first-child {
  padding-left: 2rem;
  font-weight: 600;
  color: #f4e5d0;
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.server-table tbody tr:hover td:first-child {
  border-left-color: #d4af37;
}

.server-table td i.fa-server {
  margin-right: 0.75rem;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(3, 123, 255, 0.4));
}

/* Status indicators with glow */
.server-table td:last-child {
  font-weight: 700;
  padding-right: 2rem;
  font-size: 0.95rem;
}

.server-table tbody tr:hover td {
  color: #fff;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* FAQ Section */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: 
    linear-gradient(135deg, rgba(26, 20, 16, 0.85) 0%, rgba(26, 20, 16, 0.75) 100%),
    url(/images/ui_bg2.jpg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.faq-item summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  transition: all 0.3s ease;
}

.faq-item summary:hover {
  background: rgba(212, 175, 55, 0.1);
}

.faq-item summary i {
  color: #d4af37;
  font-size: 1.3rem;
}

.faq-item[open] summary {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.1);
}

.faq-answer {
  padding: 1.5rem;
  color: #c0b5a0;
  line-height: 1.8;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.requirements-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.requirements-list li:last-child {
  border-bottom: none;
}

/* Support Section */
.support-section {
  padding: 4rem 2rem;
  background: rgba(255, 66, 77, 0.05);
  border-top: 1px solid rgba(255, 66, 77, 0.2);
  border-bottom: 1px solid rgba(255, 66, 77, 0.2);
}

.support-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.support-logo {
  height: 60px;
  margin-bottom: 1.5rem;
}

.support-card h3 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  color: #e8dcc6;
}

.support-card p {
  font-size: 1.1rem;
  color: #c0b5a0;
  margin-bottom: 2rem;
}

/* Footer */
.main-footer {
  background: rgba(10, 14, 26, 0.95);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0 0 1rem 0;
  color: #c0b5a0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: #d4af37;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.separator {
  color: rgba(212, 175, 55, 0.3);
}

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

#how-to-play-small {
  display: none;
}

/* Responsive Design */
@media only screen and (max-width: 1024px) {
  .nav-links {
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .hero-section {
    min-height: 50vh;
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-patreon-link {
    top: 1rem;
    left: 1rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-card {
    padding: 1.5rem;
  }
  
  .version-col {
    display: none;
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 600px) {
  #how-to-play-big {
    display: none;
  }
  
  #how-to-play-small {
    display: block;
  }
  
  .main-content {
    padding: 2rem 1rem;
  }
  
  .btn-large {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
  
  .hero-tech-badges {
    gap: 1rem;
  }
  
  .hero-tech-badges img {
    width: 40px;
    height: 40px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .separator {
    display: none;
  }
}
