/* === CSS Variables === */
:root {
  --primary-accent: #00ffaa;
  --primary-dark: #000;
  --secondary-dark: #111;
  --text-light: #eee;
  --text-gray: #999;
  --bg-dark: #1a1a1a;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--secondary-dark);
  color: var(--text-light);
  line-height: 1.6;
}

h1, h2, h3 {
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
  transition: border-bottom var(--transition);
}

a:focus,
.btn:focus {
  outline: 2px solid var(--primary-accent);
  outline-offset: 3px;
}

/* === Header === */
.site-header {
  background: var(--primary-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform var(--transition);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo,
.logo a {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary-accent);
  flex-shrink: 0;
}

.hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary-accent);
  cursor: pointer;
  display: none;
}

/* Mobile nav menu (hidden by default) */
.nav-links {
  display: none;
  flex-direction: column;
  background-color: #000;
  position: absolute;
  top: 100%; /* directly under the nav bar */
  right: 0;
  left: 0;
  padding: 1rem;
  z-index: 1500;
  border-bottom: 1px solid #222;
}

/* Show the mobile menu */
.nav-links.show {
  display: flex;
}

/* Desktop nav override */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    background: none;
  }

  .nav-links a {
    margin-left: 1rem;
  }

  .dropdown-content {
    position: absolute;
  }
}

.nav-links a {
    margin-left: 1rem;
  }

  .dropdown-content {
    position: absolute;
  }

.nav-links a,
.dropbtn {
  color: #f3f7f4;
  padding: 0.5rem;
  transition: border-bottom var(--transition);
}

.nav-links a.active {
  border-bottom: 2px solid var(--primary-accent);
  font-weight: bold;
}

.site-header.hidden {
  transform: translateY(-100%);
}

/* === Dropdown === */
.dropdown {
  position: relative;
}

.dropbtn {
  background-color: var(--primary-accent);
  color: var(--primary-dark);
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  display: inline-block;
  transition: background var(--transition);
}

.dropbtn:hover {
  background-color: #00ddaa;
}

.dropdown-content {
  position: absolute;
  top: 2.5rem;
  right: 0;
  background: #222;
  padding: 1rem;
  display: none;
  flex-direction: column;
  z-index: 999;
  border-radius: 6px;
  min-width: 200px;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: flex;
}

/* Basic dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2000; /* ensures it shows above everything */
  background-color: #000;
  padding: 0.5rem 1rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 0;
  color: #00ffaa;
  text-decoration: none;
  white-space: nowrap;
}


/* Show dropdown on hover (desktop only) */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Show dropdown on mobile when opened via JS toggle */
.dropdown.open .dropdown-content {
  display: block;
}


/* === Tabs === */
.season-tabs {
  background: var(--bg-dark);
  padding: 1.2rem 0;
  text-align: center;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab {
  background: var(--primary-dark);
  color: var(--primary-accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--primary-accent);
  transition: background var(--transition), color var(--transition);
}

.tab:hover,
.tab.active {
  background: var(--primary-accent);
  color: var(--primary-dark);
}
.center-text {
  text-align: center;
}

/* === Content Sections === */
.centered-section {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
}

.centered-section ol {
  text-align: left;
  display: inline-block;
  margin: 1rem auto 0;
  padding-left: 1.2rem;
}

.centered-section ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.centered-section ul li {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

.installation-guide {
  max-width: 1000px;
  margin: 3rem auto;
  text-align: center;
  padding: 2rem;
  background: #fff8e1;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.installation-guide h2 {
  color: #ff6f00;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.installation-guide p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.install-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.install-grid article {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.install-grid article h3 {
  color: #f57f17;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  background: var(--primary-accent);
  color: var(--primary-dark);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background var(--transition);
  font-size: 0.95rem;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.btn:hover {
  background: #00ddaa;
}

.btn.affiliate {
  background-color: #2ecc71;
  color: #fff;
}

.btn.affiliate:hover {
  background-color: #27ae60;
}

/* === Hero Sections === */
.hero {
  text-align: center;
  background: linear-gradient(135deg, #1f1f1f, #0d0d0d);
  padding: 4rem 2rem;
}

.hero.spotlight {
  background: linear-gradient(135deg, #000, #1a1a1a);
  border-bottom: 2px solid var(--primary-accent);
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-img {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform var(--transition);
}

.hero-img:hover {
  transform: scale(1.03);
}

.summer-banner {
  background: linear-gradient(135deg, #ffe259, #ffa751);
  color: var(--primary-dark);
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.summer-banner h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.summer-banner p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* === Grid Layouts === */
.grid-responsive,
.resource-grid,
.product-grid,
.category-grid,
.device-grid,
.brand-grid {
  display: grid;
  gap: 1.5rem;
}

.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 800px;
  margin: 2rem auto;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.device-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.brand-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 2rem 0;
}

/* === Cards === */
.resource-card,
.product-card,
.device-card,
.brand-card {
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.resource-card:hover,
.product-card:hover,
.device-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.product-card img,
.device-card img {
  max-height: 140px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform var(--transition);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 460px;
}

.product-card h3 {
  min-height: 3.5rem;
}

.product-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.product-card .btn {
  margin-top: auto;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  background: var(--primary-dark);
}

/* === Contact Form === */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  margin: 2rem auto;
  max-width: 600px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 600px;
  padding: 0.8rem;
  background: #222;
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}

.contact-form button {
  background: var(--primary-accent);
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.contact-form button:hover {
  background: #00ddaa;
  transform: translateY(-3px);
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive Design === */

  .hamburger {
    display: block;
  }

  .contact-container {
    padding: 1rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    width: 100%;
  }

@media (max-width: 600px) {
  #search-input {
    font-size: 0.95rem;
    padding: 0.8rem;
  }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile menu toggle */


.site-nav {
  background: #000;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem; /* ⬅️ Adds space left and right */
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  color: #00ffaa;
  font-weight: bold;
}


/* Logo link */
.logo {
  font-size: 1.25rem;
  color: #00ffaa;
  font-weight: bold;
  text-decoration: none;
}

/* Hamburger button */
#hamburger {
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  color: #00ffaa;
}
.image-grid img {
  width: 80%;           /* Shrinks image slightly */
  max-width: 120px;     /* Sets a cap on desktop */
  display: block;
  margin: 0 auto;       /* Centers image within its column */
  border-radius: 12px;
}

/* Optional: scale down headings too */
.image-grid h3 {
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Mobile tweak: shrink further on small screens */
@media (max-width: 600px) {
  .image-grid img {
    width: 70%;
    max-width: 100px;
  }

  .image-grid h3 {
    font-size: 0.85rem;
  }
}

/* Mobile nav menu - hidden by default */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%; /* directly below nav bar */
  left: 0;
  right: 0;
  background: var(--primary-dark);
  padding: 1rem;
  z-index: 999;
  border-bottom: 1px solid #222;
  animation: slideDown 0.3s ease-in-out;
}

/* Show mobile nav */
.nav-links.show {
  display: flex;
}

/* Nav links style */
.nav-links a,
.dropbtn {
  color: var(--text-light);
  padding: 0.5rem 1rem;
  transition: background var(--transition);
}

.nav-links a:hover,
.dropbtn:hover {
  background: #111;
}

/* Desktop override */
@media (min-width: 769px) {
  #hamburger {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    background: none;
    padding: 0;
  }

  .nav-links a {
    margin-left: 1rem;
  }

}
