/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0b0d13;
  color: white;
  overflow-x: hidden;
}

/* =========================
   NAVBAR (RACING STYLE)
========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 8%;

  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255, 0, 0, 0.15);

  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: #ff1e1e;
  letter-spacing: 1px;
}

.navbar nav {
  display: flex;
  gap: 25px;
}

.navbar nav a {
  color: #d6d6d6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: #ff1e1e;
}

/* SEARCH */

.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  width: 220px;
  padding: 11px 16px;

  border: none;
  outline: none;

  background: #141824;
  color: white;

  border-radius: 50px 0 0 50px;
}

.search-box button {
  padding: 11px 16px;
  border: none;

  background: #ff1e1e;
  color: white;

  border-radius: 0 50px 50px 0;

  cursor: pointer;
}

/* =========================
   HERO (F1 STYLE DRAMATIC)
========================= */

.motorsport-hero {
  min-height: 100vh;

  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4)),
    url("motorsport.jpg");

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;

  padding: 160px 8% 100px;

  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-tag {
  display: inline-block;

  background: #ff1e1e;
  color: white;

  padding: 12px 22px;

  border-radius: 50px;

  font-size: 13px;
  font-weight: 700;

  margin-bottom: 25px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.hero-content h1 {
  font-size: 70px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  color: #cfcfcf;
  line-height: 1.8;
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
  padding: 80px 8% 30px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.section-title p {
  color: #a9a9a9;
}

/* =========================
   FEATURED RACE
========================= */

.featured-race {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;

  padding: 80px 8%;
}

.featured-image {
  overflow: hidden;

  border-radius: 20px;
}

.featured-image img {
  transition: 0.6s ease;
}

.featured-race:hover img {
  transform: scale(1.05);
}

.featured-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;

  border-radius: 20px;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content span {
  color: #ff1e1e;
  font-weight: 600;
}

.featured-content h2 {
  font-size: 40px;
  margin: 18px 0;
  transition: 0.3s ease;
}

.featured-race:hover h2 {
  color: #ff3b30;
}

.featured-content p {
  color: #cfcfcf;
  line-height: 1.8;
  margin-bottom: 20px;
}

.featured-content a {
  color: white;

  text-decoration: none;

  font-weight: 600;

  display: inline-flex;

  align-items: center;

  transition: 0.3s ease;
}

.featured-content a:hover {
  color: #ff5c52;

  transform: translateX(8px);

  text-shadow: 0 0 10px rgba(255, 59, 48, 0.45);
}

/* =========================
   NEWS GRID
========================= */

.motorsport-news {
  padding-bottom: 80px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;

  padding: 0 8%;
}

.news-card {
  background: #151924;
  border-radius: 18px;
  overflow: hidden;

  transition: 0.3s;
}

.news-card:hover {
  transform: translateY(-10px);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.news-card:hover img {
  transform: scale(1.08);

  filter: brightness(1.08);
}

.card-content {
  padding: 20px;
}

.card-content span {
  color: #ff1e1e;
  font-size: 12px;
  font-weight: 600;
}

.card-content h3 {
  margin: 12px 0;
  font-size: 20px;
  transition: 0.3s ease;
}

.news-card:hover h3 {
  color: #ff3b30;

  transform: translateX(5px);
}

.card-content p {
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  transition: 0.3s ease;
}

.news-card:hover p {
  color: white;

  transform: translateX(3px);
}

.card-content a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  display: inline-block;
}

.news-card:hover a {
  color: #ff5c52;

  transform: translateX(6px);
}

/* =========================
   STANDINGS
========================= */

.standings-section {
  padding: 80px 8%;
}

.standings-table {
  background: #151924;
  border-radius: 20px;
  overflow: hidden;
}

.standing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 25px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s ease;
}

.standing-row:hover {
  background: #1b2030;
}

.standing-row span {
  color: #ff1e1e;
  font-weight: 700;
}

.standing-row h3 {
  flex: 1;
  margin-left: 20px;
  transition: 0.3s ease;
}

.standing-row:hover h3 {
  color: #ff3b30;
}

.standing-row strong {
  color: white;
  transition: 0.3s ease;
}

.standing-row:hover strong {
  color: #ff3b30;

  text-shadow: 0 0 10px rgba(255, 59, 48, 0.35);
}

/* =========================
   CALENDAR
========================= */

.calendar-section {
  padding: 80px 8%;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.race-card {
  background: #151924;
  padding: 25px;

  border-radius: 18px;

  transition: 0.3s;
}

.race-card:hover {
  transform: translateY(-8px);
  background: #1b2030;
}

.race-card h3 {
  color: #ff1e1e;

  margin-bottom: 10px;

  transition: all 0.3s ease;
}

.race-card:hover h3 {
  color: #ff1e1e;

  text-shadow:
    0 0 10px rgba(255, 59, 48, 0.5),
    0 0 20px rgba(255, 59, 48, 0.3);

  transform: translateX(4px);
}

.race-card p {
  color: #bdbdbd;

  transition: all 0.3s ease;
}

.race-card:hover p {
  color: white;

  text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);

  transform: translateX(3px);
}

/* =========================
   TEAMS
========================= */

.teams-section {
  padding: 80px 8%;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  background: #151924;

  padding: 30px;

  border-radius: 18px;

  text-align: center;

  transition: all 0.35s ease;

  border: 1px solid transparent;
}

.team-card h3 {
  color: #ffffff;

  transition: all 0.35s ease;
}

.team-card:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 30, 30, 0.12),
    rgba(21, 25, 36, 1)
  );

  transform: translateY(-10px) scale(1.03);

  border: 1px solid #ff1e1e;

  box-shadow:
    0 0 25px rgba(255, 30, 30, 0.35),
    0 0 50px rgba(255, 30, 30, 0.2);
}

.team-card:hover h3 {
  color: #ff3b30;

  text-shadow:
    0 0 10px rgba(255, 59, 48, 0.6),
    0 0 20px rgba(255, 59, 48, 0.3);
}

/* =========================
   NEWSLETTER
========================= */

.newsletter {
  text-align: center;

  padding: 90px 8%;
  background: #151924;
}

.newsletter h2 {
  font-size: 38px;
  margin-bottom: 10px;
}

.newsletter p {
  color: #bdbdbd;
  margin-bottom: 25px;
}

.newsletter form {
  display: flex;
  justify-content: center;
}

.newsletter input {
  width: 380px;
  padding: 14px 18px;

  border: none;
  outline: none;

  border-radius: 50px 0 0 50px;
}

.newsletter button {
  background: #ff1e1e;
  color: white;

  border: none;
  padding: 14px 22px;

  border-radius: 0 50px 50px 0;

  cursor: pointer;
  transition: 0.3s ease;
}

.newsletter button:hover {
  transform: translateY(-4px);

  box-shadow: 0 0 25px rgba(255, 59, 48, 0.35);
}

/* =========================
   FOOTER
========================= */

footer {
  background: #0a0c12;
  text-align: center;

  padding: 60px 8% 25px;
}

.footer-content h2 {
  color: #ff1e1e;
  margin-bottom: 10px;
}

.footer-content p {
  color: #888;
}

.footer-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cfcfcf;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ff1e1e;
}

.footer-bottom {
  margin-top: 25px;
  color: #666;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .featured-race {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .teams-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 45px;
  }
}

@media (max-width: 600px) {
  .calendar-grid,
  .teams-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .newsletter form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter input,
  .newsletter button {
    width: 100%;
    border-radius: 50px;
  }
}

/* =========================
   MOTORSPORT SCROLLBAR
========================= */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0b1220;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff3b30, #d90429);

  border-radius: 20px;

  border: 2px solid #0b1220;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff5c52, #ff3b30);
}

/* =========================
   LIVE TAG
========================= */

.live-tag {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  margin-top: 20px;
  margin-bottom: 25px;

  padding: 12px 22px;

  border-radius: 50px;

  background: rgba(255, 30, 30, 0.15);

  border: 1px solid rgba(255, 30, 30, 0.35);

  color: white;

  font-weight: 700;

  box-shadow:
    0 0 15px rgba(255, 30, 30, 0.4),
    0 0 30px rgba(255, 30, 30, 0.15);

  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);

  animation: livePulse 2s infinite;
}

.record-dot {
  width: 12px;
  height: 12px;

  border-radius: 50%;

  background: #ff1e1e;

  box-shadow:
    0 0 10px #ff1e1e,
    0 0 20px #ff1e1e;

  animation: recBlink 1s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 30, 30, 0.3);
  }

  50% {
    box-shadow:
      0 0 25px rgba(255, 30, 30, 0.7),
      0 0 50px rgba(255, 30, 30, 0.3);
  }

  100% {
    box-shadow: 0 0 10px rgba(255, 30, 30, 0.3);
  }
}

@keyframes recBlink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}
