/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: linear-gradient(
    180deg,
    #00183F 0%,
    #0A1B2A 40%,
    #111218 70%,
    #0A0A0C 100%
  );
  color: var(--text);
  font-family: "Inter", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------
   COLORS (Red Bull Racing F1 Inspired)
-------------------------------------------------- */
:root {
  /* Core Backgrounds */
  --bg: #00183F;          /* Midnight Blue */
  --bg-alt: #0A1B2A;      /* Dark Navy */
  --card: #0A0A0C;        /* Carbon Black */
  --card-alt: #111218;    /* Slightly lighter carbon */

  /* Primary Brand Colors */
  --primary: #E30118;     /* Red Bull Red */
  --primary-hover: #FF2A24;

  /* Yellow Accent */
  --accent-yellow: #FDD900;

  /* Secondary UI Colors */
  --secondary: #1C2230;
  --secondary-hover: #2A3142;

  /* Text */
  --text: #FFFFFF;
  --text-secondary: #B3B3C0;

  /* Borders + Shadows */
  --border: rgba(255,255,255,0.08);
  --shadow: rgba(0,0,0,0.5);
}


/* --------------------------------------------------
   LAYOUT
-------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  padding: 2rem 0;
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
}


/* --------------------------------------------------
   TYPOGRAPHY
-------------------------------------------------- */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.text-secondary {
  color: var(--text-secondary);
}

/* --------------------------------------------------
   HEADER + NAVIGATION
-------------------------------------------------- */
.header {
  background: linear-gradient(
    90deg,
    #00183F 0%,
    #0A1B2A 40%,
    #111218 70%,
    #E30118 100%
  );
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}


.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-medium {
  height: 68px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 700px) {
  .logo-medium {
    height: 48px;
  }
}

.nav-left,
.nav-right {
  display: flex;
  gap: 0.75rem;
}

 .nav-mobile {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.35s ease;
}

.nav-mobile.open {
  max-height: 320px;      /* more breathing room */
  overflow-y: auto;       /* scroll if needed */
  opacity: 1;
  transform: translateY(0);
  padding: 0.5rem 0;      /* adds vertical space */
}

.nav-mobile a {
  padding: 0.9rem 1.2rem;   /* more comfortable tap targets */
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

@media (max-width: 800px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }
}

/* --------------------------------------------------
   NAV BUTTON YELLOW GLOW
-------------------------------------------------- */
.nav-left a,
.nav-right a,
.nav-mobile a {
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

/* Hover glow */
.nav-left a:hover,
.nav-right a:hover,
.nav-mobile a:hover {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px var(--accent-yellow);
}

/* Active page glow */
.nav-left .active,
.nav-mobile .active {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 14px var(--accent-yellow);
  background: var(--primary);
  color: white !important;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
button,
.btn-primary,
.btn-secondary,
.btn-ghost {
  cursor: pointer;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 12px rgba(227, 1, 24, 0.5);
  border: 1px solid var(--accent-yellow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 18px var(--accent-yellow);
}

/* Secondary */
.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: var(--secondary-hover);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: white;
}

/* Full width */
.btn-full {
  width: 100%;
}

/* Active nav button */
.active {
  background: var(--primary) !important;
}

/* --------------------------------------------------
   CARDS
-------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(227, 1, 24, 0.15);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(253, 217, 0, 0.35);
}

.card-sm {
  padding: 1rem;
}

.card-lg {
  padding: 2rem;
}

/* --------------------------------------------------
   GRID + STACK
-------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --------------------------------------------------
   FORMS
-------------------------------------------------- */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.input,
.input-file {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: white;
  font-size: 1rem;
}

.input:focus {
  outline: 2px solid var(--primary);
}

/* --------------------------------------------------
   PREVIEW IMAGES
-------------------------------------------------- */
.preview-img {
  max-width: 180px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 0 auto;
}

/* --------------------------------------------------
   TABLES
-------------------------------------------------- */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.table th {
  text-align: left;
  color: var(--accent-yellow);
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer {
  text-align: center;
  color: var(--accent-yellow);
  font-size: 0.9rem;
}
