/* 24 Play Ltd - Static Site Styles */
/* Compiled from React/Tailwind to vanilla CSS */
/* SEO & Performance Optimized */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background-color: #ffffff;
  /* Performance optimizations */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Preload critical fonts */
@font-face {
  font-family: 'Inter';
  font-display: swap; /* Improves loading performance */
  src: local('Inter');
}

/* Performance: will-change for animated elements */
.hero-card,
.category-card,
.game-card,
img[alt*="banner"] {
  will-change: transform;
}

/* SEO: Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* SEO: Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #3b82f6;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-to-content:focus {
  top: 6px;
}

/* CSS Custom Properties */
:root {
  --primary: #1e40af;
  --primary-foreground: #ffffff;
  --secondary: #64748b;
  --secondary-foreground: #f1f5f9;
  --accent: #3b82f6;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #3b82f6;
  --radius: 0.5rem;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-grow {
  flex-grow: 1;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.grid {
  display: grid;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

/* Status Banner */
.status-banner {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-banner .flex {
  justify-content: center;
  align-items: center;
}

.status-banner .w-2 {
  width: 0.5rem;
  height: 0.5rem;
  background-color: white;
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* Navigation Styles */
.navbar {
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 3rem;
  width: auto;
}

.navbar-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.navbar-link {
  color: #374151;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-link:hover {
  color: #1e40af;
}

.dropdown {
  position: relative;
}

.dropdown-button {
  display: flex;
  align-items: center;
  color: #374151;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dropdown-button:hover {
  color: #1e40af;
}

.dropdown-arrow {
  margin-left: 0.25rem;
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  width: 12rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: #eff6ff;
  color: #1e40af;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
  color: white;
  padding: 4rem 0;
  min-height: 500px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

.hero-text p {
  font-size: 1.25rem;
  color: #bfdbfe;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.hero-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-card p {
  color: #bfdbfe;
  margin-top: 0.5rem;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: #f8fafc;
}

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

.category-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.category-header {
  text-align: center;
  margin-bottom: 2rem;
}

.category-header h2,
.category-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.category-header p {
  font-size: 1.125rem;
  color: #64748b;
}

.category-content {
  color: #475569;
  line-height: 1.8;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.game-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.game-image {
  position: relative;
  overflow: hidden;
  height: 150px;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.05);
}

.game-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.order-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
  background: white;
  color: #1e40af;
  border: 2px solid #1e40af;
}

.btn-secondary:hover {
  background: #1e40af;
  color: white;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-section p {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

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

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

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 767px) {
  .navbar-container {
    padding: 0 1rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Mobile Navigation */
  .navbar-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #1e40af;
    flex-direction: column;
    padding: 2rem 0;
    z-index: 1000;
    overflow-y: auto;
  }
  
  .navbar-menu.active {
    display: flex;
  }
  
  .navbar-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: white;
    text-decoration: none;
  }
  
  .navbar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .dropdown {
    position: static;
    width: 100%;
  }
  
  .dropdown-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: white;
    border: none;
    text-align: center;
    cursor: pointer;
  }
  
  .dropdown-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    margin-top: 0;
    display: none;
  }
  
  .dropdown-menu.show {
    display: block;
  }
  
  .dropdown-item {
    color: #bfdbfe;
    padding: 0.75rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    text-decoration: none;
  }
  
  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
  }
  
  .hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* Hero Section Mobile */
  .hero-section {
    padding: 3rem 0;
    min-height: 60vh;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem !important;
    text-align: center;
  }
  
  .hero-text p {
    font-size: 1.125rem !important;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-text div {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .hero-text .btn {
    flex: 1;
    min-width: 250px;
    text-align: center;
  }
  
  /* Main Banner Mobile */
  .services-section {
    padding: 3rem 0 !important;
  }
  
  .services-container {
    padding: 0 1rem;
  }
  
  /* Make banner responsive on mobile */
  .services-section img[alt="24 Play Main Banner"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 1rem !important;
    margin: 0 auto;
    object-fit: contain !important;
  }
  
  /* Cards and Grid Mobile */
  .category-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Category Cards Mobile */
  .category-header h3 {
    font-size: 1.5rem;
  }
  
  .category-content {
    padding: 1.5rem;
  }
  
  /* Buttons Mobile */
  .order-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    margin: 0.5rem auto;
    display: block;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  /* Status Banner Mobile */
  .status-banner {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  /* Services Section Mobile */
  .services-header h2 {
    font-size: 2rem;
    text-align: center;
  }
  
  .services-header p {
    font-size: 1rem;
    text-align: center;
  }
  
  /* Countdown Mobile (for sales page) */
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .countdown-item {
    padding: 1rem;
  }
  
  .countdown-number {
    font-size: 2rem;
  }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .services-container {
    padding: 0 2rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.slide-up {
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hosting Plans Styles */
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.hosting-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  position: relative;
}

.hosting-card.popular {
  border-color: #3b82f6;
  transform: scale(1.05);
}

.hosting-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hosting-card.popular:hover {
  transform: translateY(-8px) scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hosting-header {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
}

.hosting-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.hosting-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
}

.hosting-price .period {
  font-size: 1rem;
  font-weight: 400;
  color: #64748b;
}

.hosting-features {
  padding: 0 1.5rem 1.5rem;
}

.hosting-features ul {
  list-style: none;
  space-y: 0.75rem;
}

.hosting-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #374151;
}

.hosting-features .feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.hosting-footer {
  padding: 1.5rem;
  text-align: center;
}

/* Utility Classes for Colors */
.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #059669; }
.text-purple-600 { color: #9333ea; }
.text-red-600 { color: #dc2626; }
.text-orange-600 { color: #ea580c; }
.text-cyan-600 { color: #0891b2; }
.text-yellow-600 { color: #ca8a04; }
.text-gray-600 { color: #4b5563; }

.bg-blue-100 { background-color: #dbeafe; }
.bg-green-100 { background-color: #dcfce7; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-red-100 { background-color: #fee2e2; }
.bg-orange-100 { background-color: #fed7aa; }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-gray-100 { background-color: #f3f4f6; }

/* Icons placeholder styles */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.icon-xl {
  width: 8rem;
  height: 8rem;
}