/* ===============================
   CHANNELVERSE STYLE (v3)
   Fully Responsive, Mobile-First, SEO Optimized
   =============================== */

/* ---------- Root & Global ---------- */
:root {
  --primary: #5e17eb;
  --secondary: #9b59b6;
  --bg-dark: rgba(0, 0, 0, 0.3);
  --bg-light: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --accent: #ffb6ff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 0;
  color: var(--text);
  overflow-x: hidden;
}

/* ---------- Header ---------- */
header {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg-dark);
  backdrop-filter: blur(6px);
}

header h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
}

header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ---------- Table of Contents ---------- */
#toc {
  background: var(--bg-light);
  padding: 1rem;
  text-align: center;
}

#toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#toc li {
  margin: 0.5rem 1rem;
}

#toc a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

#toc a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Intro Article ---------- */
.intro {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 10px;
  line-height: 1.6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ---------- Category Cards ---------- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.category-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.category-card h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid #fff;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.category-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-card li {
  margin: 0.6rem 0;
}

.category-card a {
  text-decoration: none;
  color: #ffdfdf;
  font-weight: 500;
  transition: color 0.2s;
}

.category-card a:hover {
  color: var(--accent);
}

/* ---------- Reviews ---------- */
.reviews {
  background: var(--bg-dark);
  padding: 2rem;
  text-align: center;
}

.reviews h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.review {
  margin: 1rem auto;
  max-width: 800px;
  font-style: italic;
  opacity: 0.95;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 1.2rem;
  background: var(--bg-dark);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- Accessibility ---------- */
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* =======================================
   RESPONSIVE DESIGN
   ======================================= */

/* Tablet */
@media (max-width: 1024px) {
  header h1 {
    font-size: 2.2rem;
  }
  header p {
    font-size: 1rem;
  }
  .intro {
    margin: 1.5rem;
    padding: 1.2rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  #toc ul {
    flex-direction: column;
    align-items: center;
  }

  #toc li {
    margin: 0.3rem 0;
  }

  .intro {
    margin: 1rem;
    padding: 1rem;
    font-size: 0.95rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .category-card {
    padding: 1.2rem;
    border-radius: 15px;
    font-size: 0.95rem;
  }

  .category-card h2 {
    font-size: 1.2rem;
  }

  .category-card ul {
    padding-left: 1rem;
  }

  .reviews {
    padding: 1.2rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .category-card h2 {
    font-size: 1.1rem;
  }

  .category-card li {
    margin: 0.4rem 0;
  }

  .intro {
    font-size: 0.9rem;
  }
}

/* =======================================
   HERO BANNER SECTION
   ======================================= */

.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 1200px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.banner-text {
  position: absolute;
  bottom: 15%;
  left: 8%;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  max-width: 80%;
  font-size: 1.1rem;
  line-height: 1.5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  animation: fadeInUp 0.8s ease forwards;
}

/* Hover effect for subtle interactivity */
.hero-banner:hover .banner-text {
  background: rgba(0,0,0,0.6);
}

/* ---------- Responsive Adjustments ---------- */

/* Tablet */
@media (max-width: 992px) {
  .banner-text {
    font-size: 1rem;
    max-width: 90%;
    left: 5%;
    bottom: 12%;
    padding: 0.8rem 1.2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-banner {
    margin: 1rem auto;
    border-radius: 8px;
  }

  .hero-banner img {
    border-radius: 8px;
  }

  .banner-text {
    position: static;
    background: rgba(0,0,0,0.6);
    margin-top: 0.8rem;
    border-radius: 6px;
    max-width: 100%;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.8rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .banner-text {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
}
