/* Portal CSS - Modern and Clean Design */

:root {
  --color-bg: #f5f7fa;
  --color-card: #ffffff;
  --color-text: #1a1a2e;
  --color-text-secondary: #6c757d;
  --color-primary: #3498db;
  --color-primary-dark: #2980b9;
  --color-accent: #e94560;
  --color-border: #e9ecef;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Header */
.header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.header h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

/* Sections */
section {
  margin: 3rem 0;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.game-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.game-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.game-description {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1rem;
}

.game-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27ae60;
}

.status-dot.inactive {
  background: #e74c3c;
}

/* CTA Section */
.cta-section {
  text-align: center;
}

.cta-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
}

.cta-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-card p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

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

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

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

/* About Section */
.about-section {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.about-section p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section a {
  color: var(--color-primary);
  text-decoration: none;
}

.about-section a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
}

.footer a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-primary);
}

/* Loading State */
.loading {
  text-align: center;
  color: var(--color-text-secondary);
  padding: 3rem;
}

/* Error State */
.error {
  text-align: center;
  color: #e74c3c;
  padding: 2rem;
  background: #fde9e7;
  border-radius: var(--radius);
}

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

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

  .cta-card {
    padding: 2rem 1.5rem;
  }

  section {
    margin: 2rem 0;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card {
  animation: fadeIn 0.4s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
