@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #07080d;
  --bg-card: rgba(15, 17, 26, 0.65);
  --border-card: rgba(255, 255, 255, 0.07);
  --border-card-hover: rgba(99, 102, 241, 0.4);
  
  --primary: #6366f1; /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.35);
  --secondary: #a855f7; /* Violet */
  --secondary-glow: rgba(168, 85, 247, 0.35);
  --accent: #10b981; /* Emerald Green */
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --font-family: 'Outfit', sans-serif;
  --max-width: 1200px;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0px, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.12) 0px, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a:hover {
  color: #818cf8;
}

/* App Layout Wrapper */
.app-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation styling */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 850px) {
  .header {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-bottom: 2.5rem;
  }
}

.logo-container {
  max-width: 250px;
  width: 100%;
}

.logo-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.nav-tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.nav-tab-link {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.nav-tab-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-tab-link.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 4.5rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 20%, var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

/* Grid System for Games */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
  margin-bottom: 5rem;
}

/* Responsive grid rules */
@media (max-width: 850px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium Card Design */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-card-hover);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(99, 102, 241, 0.15);
}

.card:hover::before {
  opacity: 1;
}

/* Card Visual Content */
.card-content {
  padding: 2.2rem;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.card-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.card:hover .card-logo {
  transform: rotate(360deg);
}

.card-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Hosting Specific Card Classes */
.price-badge {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  align-self: flex-start;
  margin-bottom: 1.2rem;
}

.card-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 1.2rem;
}

/* Action Controls */
.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  flex: 1;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

/* Extra status buttons/links for game headers */
.admin-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  z-index: 5;
}

.admin-badge:hover {
  opacity: 1;
}

.admin-badge img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Infrastructure Node Specifications Block */
.infra-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4.5rem;
}

@media (max-width: 850px) {
  .infra-specs {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .infra-specs {
    grid-template-columns: 1fr;
  }
}

.spec-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.spec-box h3 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.spec-box p {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

/* Middle Details Box */
.details-section {
  background: linear-gradient(135deg, rgba(15, 17, 26, 0.7) 0%, rgba(30, 27, 75, 0.4) 100%);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 4rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.details-section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.details-text {
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
}

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

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  transform: scale(1.15) rotate(8deg);
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--border-card-hover);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.social-icon img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
}

/* Footer style */
.footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 300;
}

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

@media (max-width: 650px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

.footer-text-left {
  line-height: 1.5;
}

.footer-text-right {
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
}

.footer-text-right u {
  text-decoration: none;
  font-weight: 500;
  color: var(--secondary);
}

/* Styled Login Navigation Tab Button */
.nav-tab-link.login-btn-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem !important;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.05);
  color: #fff !important;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.nav-tab-link.login-btn-tab:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.nav-tab-link.login-btn-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}
