﻿:root {
  --primary-color: #25b625;
  /* Neon Green */
  --bg-color: #000000;
  --bg-secondary: #0a0a0a;
  --text-color: #ffffff;
  --card-bg: rgba(20, 20, 20, 0.9);
  --error-color: #ff3333;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
  }

  100% {
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.btn {
  padding: 12px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.btn-primary:hover {
  background-color: #33ff33;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  transform: scale(1.05);
}

/* Login Section */
#login-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #112211 0%, #000000 70%);
}

.login-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.1);
}

.login-logo {
  width: 120px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 10px var(--primary-color));
}

.login-form input {
  width: 100%;
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
  border-radius: 4px;
  color: white;
  font-size: 1rem;
  transition: var(--transition);
}

.login-form input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.error-msg {
  color: var(--error-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  min-height: 1.2em;
}

/* Platform Layout */
#platform-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 100;
  transition: background 0.3s;
}

.main-header.scrolled {
  background: #000;
}

.brand-logo {
  height: 40px;
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.avatar {
  width: 35px;
  height: 35px;
  background: var(--primary-color);
  border-radius: 4px;
}

/* Hero Section */
.hero {
  height: 80vh;
  background: #000 url('assets/bg-final.jpg') center center/contain no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 4%;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  /* Darker overlay to reduce brightness by ~15% */
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  animation: fadeIn 1s ease-out;
  position: relative;
  z-index: 2;
  /* Ensure content is above overlay */
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: #fff;
  /* text-shadow: 0 0 20px rgba(0, 255, 0, 0.5); */
  /* Clean look */
}

.hero-title span {
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--primary-color);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: #ccc;
}

/* Modules Section */
.modules-container {
  padding: 20px 4%;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
  margin-top: -100px;
  /* Overlap hero */
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #e5e5e5;
  border-left: 4px solid var(--primary-color);
  padding-left: 10px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.module-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  border: 1px solid #222;
}

.module-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  border-color: var(--primary-color);
  z-index: 20;
}

.card-thumbnail {
  height: 140px;
  width: 100%;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
  filter: none;
}

.card-thumbnail .play-icon {
  position: absolute;
  font-size: 3rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  text-shadow: 0 0 10px #000;
}

.module-card:hover .play-icon {
  opacity: 1;
}

.card-info {
  padding: 15px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
}

.card-meta {
  font-size: 0.8rem;
  color: #888;
}

/* Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 90%;
  max-width: 900px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 50px rgba(0, 255, 0, 0.2);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
}

.video-placeholder {
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #000;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-color);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .modules-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .card-thumbnail {
    height: 100px;
  }

  .modules-container {
    margin-top: -50px;
  }
}

/* Bonus Buttons */
.bonus-buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.btn-bonus {
  padding: 15px 30px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-bonus:hover {
  border-color: #fff;
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .bonus-buttons-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn-bonus {
    width: 100%;
    justify-content: center;
  }
}

/* Niches Grid System */
.niches {
  margin-top: 28px;
  padding: 18px 0 6px;
}

.niches__header {
  margin-bottom: 14px;
}

.niches__title {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.15;
  margin: 0 0 6px 0;
}

.niches__subtitle {
  margin: 0;
  opacity: .8;
  font-size: 14px;
}

.niches__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .niches__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .niches__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .niches__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.niche-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transform: translateZ(0);
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  aspect-ratio: 4 / 5;
  /* parecido com o exemplo que você mandou */
}

.niche-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 140, .22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .32);
}

.niche-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
}

.niche-card__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 25%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .55)),
    linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .05));
}

.niche-card__label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .40);
  border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(6px);
}

.niche-card__label strong {
  display: block;
  font-size: 14px;
  letter-spacing: .3px;
  color: #fff;
}

.niche-card__label span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  opacity: .75;
  color: #fff;
}

/* barrinha de destaque verde embaixo, estilo premium */
.niche-card__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 255, 140, .95), rgba(0, 255, 140, .05));
  opacity: .9;
}