/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 *= require_tree .
 *= require_self
 */

/* Variables */
:root {
  /* Material Design colors */
  --md-primary: #d30001;
  --md-primary-dark: #b00001;
  --md-primary-light: #ff1744;
  --md-secondary: #261B23;
  --md-surface: #FFFFFF;
  --md-background: #FAFAFA;
  --md-error: #B00020;
  
  /* Material Design elevation */
  --md-elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --md-elevation-2: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
  --md-elevation-3: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
  
  /* Material Design typography */
  --md-font-family: 'Roboto', sans-serif;
  --md-spacing-unit: 8px;

  --neon-green: #a3ff12;
  --dark-bg: #111111;
  --card-bg: #1a1a1a;
}

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

body {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--dark-bg);
  color: white;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--md-spacing-unit) * 2);
}

/* Header Styles */
.main-header {
  background-color: var(--md-surface);
  box-shadow: var(--md-elevation-4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: calc(var(--md-spacing-unit) * 3);
}

.main-nav a {
  color: rgba(0, 0, 0, 0.87);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  padding: calc(var(--md-spacing-unit) * 2) var(--md-spacing-unit);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.main-nav a:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Navigation Styles */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(17, 17, 17, 0.95);
  padding: 1rem 0;
  z-index: 1000;
}

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

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.highlight {
  color: var(--neon-green);
}

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

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--neon-green);
}

.nav-button {
  background-color: var(--neon-green);
  color: var(--dark-bg);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s;
}

.nav-button:hover {
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
              url("hero-bg.jpg") center/cover;
  margin-top: 4rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-size: 2rem;
  color: var(--neon-green);
  margin-bottom: 2rem;
}

.cta-button {
  background-color: var(--neon-green);
  color: var(--dark-bg);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
}

/* Championships Section */
.championships {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--neon-green);
}

.championships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.championship-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.championship-card:hover {
  transform: translateY(-5px);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.card-details {
  margin-bottom: 1rem;
}

.card-details p {
  margin: 0.5rem 0;
  color: #888;
}

.card-button {
  display: inline-block;
  background-color: var(--neon-green);
  color: var(--dark-bg);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s;
}

.card-button:hover {
  transform: translateY(-2px);
}

/* Footer Styles */
.site-footer {
  background-color: var(--card-bg);
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-section h4 {
  color: var(--neon-green);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

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

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--neon-green);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image i {
  font-size: 3rem;
  color: var(--neon-green);
  opacity: 0.5;
}

/* Login Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--dark-bg);
}

.login-form-container {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--md-elevation-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-form-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 2rem;
}

.login-form .form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.login-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.login-form .form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-form .form-group input:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.login-form .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.submit-button {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #F59E0B, #EAB308);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}

.submit-button:hover {
  background: linear-gradient(135deg, #D97706, #CA8A04);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.submit-button:active {
  transform: translateY(0);
}

.form-links {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
}

.form-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-links a:hover {
  color: #F59E0B;
}

.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.alert.alert-alert {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.alert.alert-notice {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

/* Dashboard Styles */
.dashboard-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--dark-bg);
}

.top-nav {
  background-color: var(--card-bg);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.champs-text {
  color: var(--neon-green);
}

.logout-btn {
  background-color: var(--neon-green);
  color: var(--dark-bg);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s;
}

.logout-btn:hover {
  transform: translateY(-2px);
}

.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-content {
  margin-top: 2rem;
}

.welcome-section {
  text-align: center;
  margin-bottom: 3rem;
}

.welcome-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.welcome-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.dashboard-card h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.dashboard-card p {
  color: rgba(255, 255, 255, 0.7);
}
