/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
}

/* Body */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #121212;
  color: #e5e5e5;
  line-height: 1.6;
}

/* Header */
header {
  background: #1c1c1c;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f5f5f5;
}
nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
nav a {
  text-decoration: none;
  color: #f5f5f5;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}
nav a:hover {
  background: #2e2e2e;
  color: #3b82f6;
}

/* Plugin links */
.plugin-requirements a {
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #e5e5e5;
}
.plugin-requirements a:hover,
.plugin-requirements a:focus,
.plugin-requirements a:active {
  color: #e5e5e5;
  text-decoration: none;
  outline: none;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #f5f5f5;
  cursor: pointer;
}

/* Main content */
main { flex: 1; }

/* Hero */
.hero, .plugin-hero {
  text-align: center;
  padding: 6rem 2rem;
  background: #1f1f1f;
  border-bottom: 1px solid #2e2e2e;
}
.hero h2, .plugin-hero h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 1rem;
}
.hero p, .plugin-hero p {
  font-size: 1.2rem;
  color: #cfcfcf;
  margin-bottom: 2rem;
}
.btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Buttons */
.btn, .btn2 {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 10px rgba(59,130,246,0.3);
  transition: all 0.3s ease;
}
.btn {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}
.btn2 {
  background: linear-gradient(90deg, #3bf65a, #1db944);
}
.btn:hover, .btn2:hover {
  transform: translateY(-3px);
}
.btn:hover {
  box-shadow: 0 3px 5px rgba(59,130,246,0.5);
}
.btn2:hover {
  box-shadow: 0 3px 5px rgba(59,246,115,0.5);
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
section h2, section h3 {
  font-size: 2rem;
  color: #3b82f6;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
section h2::after, section h3::after {
  content: '';
  display: block;
  height: 3px;
  width: 50%;
  background: #2563eb;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Plugin Cards */
.plugins {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.plugin-card {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  width: 360px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  text-align: center;
  transition: all 0.3s ease;
}
.plugin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.plugin-card h4 {
  margin-bottom: 0.5rem;
  color: #3b82f6;
}
.plugin-card p {
  color: #cfcfcf;
  margin-bottom: 1rem;
}

/* Gallery */
.plugin-gallery .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.plugin-gallery img {
  width: 300px;
  border-radius: 12px;
  border: 1px solid #2c2c2c;
  transition: 0.3s;
}
.plugin-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

/* Video / Iframe */
.plugin-video iframe,
.plugin-docs iframe {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  border: 1px solid #2c2c2c;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #1c1c1c;
  color: #ccc;
  border-top: 1px solid #2e2e2e;
  margin-top: auto;
}

/* Latest version badge */
.latest-version {
  margin-top: 1rem;
  font-size: 1rem;
  color: #f5f5f5;
  background-color: #2c2c2c;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-block;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Logos */
.plugin-logo { width: 100%; height: auto; display: block; margin-bottom: 10px; }
.plugin-logo-2 { width: 452px; height: auto; display: inline-block; margin-bottom: 10px; }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e1e1e;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
  min-height: 60px;
  height: 100%;
  box-sizing: border-box;
}
.features-grid > .feature-item {
  flex-direction: row; 
}
.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(59,130,246,0.5);
}
.feature-icon { font-size: 1.25rem; flex-shrink: 0; }
.feature-text { font-size: 0.9rem; line-height: 1.2; color: #e5e5e5; }

/* Lists reset */
.plugin-description ul,
.plugin-gallery ul,
.plugin-video ul,
.plugin-requirements ul,
.plugin-support ul,
.plugin-related ul,
.plugin-versions ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}
.plugin-description li,
.plugin-gallery li,
.plugin-video li,
.plugin-requirements li,
.plugin-support li,
.plugin-related li,
.plugin-versions li {
  background: #1e1e1e;
  margin-bottom: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
}

/* Responsive - Tablets */
@media (max-width: 992px) {
  header { padding: 1rem; }
  .hero, .plugin-hero { padding: 4rem 1.5rem; }
  .hero h2, .plugin-hero h2 { font-size: 2.5rem; }
  .hero p, .plugin-hero p { font-size: 1.1rem; }
  .btn-group { flex-direction: column; gap: 0.8rem; }
  .plugins { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .plugin-card { width: 45%; }
  .plugin-gallery .gallery img { width: 45%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive - Mobile + Hamburger */
@media (max-width: 600px) {
  header nav {
    justify-content: space-between;
    align-items: center;
  }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .nav-links.active {
    display: flex;
    max-height: 500px; /* smooth slide effect */
  }
  nav ul { flex-direction: column; width: 100%; gap: 0.5rem; }
  nav li { width: 100%; }
  nav a { display: block; width: 100%; text-align: center; padding: 0.5rem 0; }

  .hero, .plugin-hero { padding: 3rem 1rem; }
  .hero h2, .plugin-hero h2 { font-size: 2rem; }
  .hero p, .plugin-hero p { font-size: 1rem; }
  .btn-group { flex-direction: column; gap: 0.5rem; }
  .plugins { flex-direction: column; gap: 1rem; }
  .plugin-card { width: 100%; }
  .plugin-gallery .gallery img { width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  section { padding: 2rem 1rem; }
  .plugin-video iframe,
  .plugin-docs iframe { height: 300px; }
  .latest-version { font-size: 0.9rem; padding: 0.4rem 0.8rem; }
}
