/* CSPO Arena - Main Stylesheet */

:root {
  /* Main color scheme */
  --color-primary: #121212;        /* Dark background */
  --color-secondary: #1a1a1a;      /* Slightly lighter dark for cards/sections */
  --color-accent: #00c8ff;         /* Icy blue accent */
  --color-text: #ffffff;           /* Main text color */
  --color-text-muted: #b0b0b0;     /* Secondary text color */
  --color-border: #333333;         /* Border color */
  
  /* Font sizes */
  --font-size-small: 0.875rem;     /* 14px */
  --font-size-base: 1rem;          /* 16px */
  --font-size-large: 1.25rem;      /* 20px */
  --font-size-xlarge: 1.5rem;      /* 24px */
  --font-size-xxlarge: 2.5rem;     /* 40px */
  
  /* Spacing */
  --space-xs: 0.5rem;              /* 8px */
  --space-sm: 1rem;                /* 16px */
  --space-md: 1.5rem;              /* 24px */
  --space-lg: 2rem;                /* 32px */
  --space-xl: 3rem;                /* 48px */
  
  /* Borders & Effects */
  --radius: 0.25rem;               /* Border radius */
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Box shadow */
  --transition: all 0.3s ease;     /* Standard transition */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: var(--color-primary);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--space-sm);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: var(--font-size-xxlarge);
}

h2 {
  font-size: var(--font-size-xlarge);
}

p {
  margin-bottom: var(--space-md);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, 
.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-md);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

button:hover, 
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 200, 255, 0.3);
  text-decoration: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

/* Header */
header {
  background-color: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  font-size: var(--font-size-large);
  font-weight: 800;
  color: var(--color-text);
}

.logo span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 18, 0.7),
    rgba(18, 18, 18, 0.9)
  ), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  margin-bottom: var(--space-md);
  font-size: clamp(2.5rem, 5vw, 4rem);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: var(--font-size-large);
  margin-bottom: var(--space-lg);
  opacity: 0.9;
  animation: fadeInUp 1.2s ease-out;
}

.hero-btns {
  display: flex;
  gap: var(--space-md);
  animation: fadeInUp 1.4s ease-out;
}

/* Cards */
.card {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-content {
  padding: var(--space-md);
}

.card-title {
  font-size: var(--font-size-large);
  margin-bottom: var(--space-xs);
}

.card-text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating span {
  color: var(--color-accent);
}

/* Grid layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* Form styles */
.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

input, 
textarea, 
select {
  width: 100%;
  padding: var(--space-sm);
  background-color: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  transition: var(--transition);
}

input:focus, 
textarea:focus, 
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.2);
}

/* Footer */
footer {
  background-color: var(--color-secondary);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-column h3 {
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

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

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--color-text-muted);
}

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

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

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

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

.animate-fadeIn {
  animation: fadeIn 1s ease-out;
}

.animate-fadeInUp {
  animation: fadeInUp 1s ease-out;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-container {
    padding: var(--space-xs) var(--space-md);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--color-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 99;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .hero {
    height: 60vh;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

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

.text-accent {
  color: var(--color-accent);
}

.mb-1 {
  margin-bottom: var(--space-xs);
}

.mb-2 {
  margin-bottom: var(--space-sm);
}

.mb-3 {
  margin-bottom: var(--space-md);
}

.mb-4 {
  margin-bottom: var(--space-lg);
}

.mb-5 {
  margin-bottom: var(--space-xl);
}

.mt-1 {
  margin-top: var(--space-xs);
}

.mt-2 {
  margin-top: var(--space-sm);
}

.mt-3 {
  margin-top: var(--space-md);
}

.mt-4 {
  margin-top: var(--space-lg);
}

.mt-5 {
  margin-top: var(--space-xl);
}