/*
============================================================
  Crimson Crown - Homepage Styles (home.css)
============================================================
  This is the NEW, modern, professional design.
  It uses a static image hero, a stat bar,
  and our updated card styles.
*/

/* --- 1. New Hero Section --- */
#hero {
  /* You can change the 'hero-bg.jpg' path in your assets */
  background-image: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 1)), url('https://placehold.co/1920x1080/0a0a0a/d90429?text=Hero+Background');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax-like effect */
  height: 90vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 2px solid var(--primary-color);
}

/* We no longer use the <video> tag */

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.hero-content img {
  width: 150px;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

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

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-color);
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- 2. New Stats Bar --- */
#home-stats {
  background-color: var(--bg-dark);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.home-stat-box {
  background-color: #0F0F0F;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.home-stat-box i {
  font-size: 2rem;
  color: var(--primary-color);
  background-color: rgba(217, 4, 41, 0.1);
  padding: 1rem;
  border-radius: 8px;
}

.home-stat-box .stat-info .label {
  font-size: 0.9rem;
  color: var(--secondary-text);
}

.home-stat-box .stat-info .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
}


/* --- 3. Generic Section Styling --- */
.home-section {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: var(--text-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.placeholder-box {
  text-align: left;
  color: var(--secondary-text);
  background-color: #0F0F0F;
  border: 1px dashed #222;
  padding: 4rem 1rem;
  border-radius: 8px;
  font-style: italic;
  text-align: center;
}

/* Remove placeholder styles once content is loaded */
#tournament-grid:not(.placeholder-box),
#clans-grid:not(.placeholder-box),
#partner-logos:not(.placeholder-box) {
  padding: 0;
  border: none;
  background-color: transparent;
  font-style: normal;
  text-align: left;
}

/* --- 4. Top Clans Section --- */
#top-clans {
  background-color: var(--bg-dark);
  padding-bottom: 4rem;
}

/* This class is added by JS */
.home-clans-grid {
  display: grid;
  /* Use the fixed-width card style */
  grid-template-columns: repeat(auto-fit, 320px);
  justify-content: center;
  gap: 1.5rem;
}

.section-button-container {
  text-align: center;
  margin-top: 2rem;
}

/* --- 5. Partners Section --- */
#partner-logos {
  background-color: #0F0F0F;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: var(--secondary-text);
  font-style: italic;
}