/* ===== BASE ===== */

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #111;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* MAIN CONTENT WRAPPER */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* INNER CONTENT */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  width: 100%;
}

/* LINKS & TEXT */

a {
  color: #c8e6c9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2 {
  color: #00ff88;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== NAVBAR ===== */

#navbar {
  min-height: 51px;
}

#footer {
  min-height: 145px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 12px 20px;
}

.nav-left ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-left li {
  margin-right: 20px;
}

.nav-left a {
  color: white;
  font-weight: bold;
}

.nav-left a:hover {
  color: #00ff88;
}

.nav-left a.active {
  color: #00ff88;
  border-bottom: 2px solid #00ff88;
}

.nav-right .logo {
  color: #00ff88;
  font-size: 1.4rem;
  font-weight: bold;
}

/* ===== DROPDOWN ===== */

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2a2a2a;
  min-width: 180px;
  border-radius: 6px;
  z-index: 1000;
  flex-direction: column;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  color: #fff;
}

.dropdown-content a:hover {
  background-color: #00ff88;
  color: #000;
}

/* Desktop hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: flex;
  }
}

/* Mobile click */
.dropdown.active .dropdown-content {
  display: flex;
}

.dropdown:focus-within .dropdown-content {
  display: flex;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.gallery img:focus-visible,
.hero-img:focus-visible {
  outline: 2px solid #00ff88;
  outline-offset: 3px;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
  #navbar {
    min-height: 258px;
  }

  .nav-left ul {
    flex-direction: column;
  }

  .nav-left li {
    margin: 10px 0;
  }
}

@media (max-width: 1024px) {
  .container {
    box-sizing: border-box;
    width: 100%;
  }
}

@media (max-width: 340px) {
  .specs-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .spec-block {
    box-sizing: border-box;
    min-width: 0;
  }
}

/* ===== FOOTER ===== */

footer {
  text-align: center;
  width: 100%;
  padding: 20px 0;
  margin-top: auto;
  color: #aaa;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 255, 136, 0.15);
}

footer span {
  color: #00ff88;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
