/** @format */

:root {
  --bg-darker: #050505;
  --bg-dark: #0a0a0b;
  --bg-card: #121214;
  --preto: #000;
  --branco: #fff;
  --border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-dim: #dbdbdb;
  --primary: #95f63b;
  --primary-glow: rgba(59, 131, 246, 0.144);
  --accent: #60a5fa;
  --shimmer: linear-gradient(90deg, #1a1a1c 25%, #27272a 50%, #1a1a1c 75%);
  --year-glow: rgba(255, 255, 255, 0.2);
  --nav-bg: rgba(5, 5, 5, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
}

[data-theme='light'] {
  --bg-darker: #f8fafc;
  --bg-dark: #f1f5f9;
  --bg-card: #ffffff;
  --preto: #000;
  --branco: #fff;
  --border: rgba(0, 0, 0, 0.05);
  --text-main: #0f172a;
  --text-dim: #64748b;
  --primary: #66cc07;
  --primary-glow: rgba(59, 130, 246, 0.1);
  --accent: #2563eb;
  --shimmer: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  --year-glow: rgba(0, 0, 0, 0.05);
  --nav-bg: rgba(248, 250, 252, 0.6);
  --glass-border: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

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

.reveal {
  opacity: 0;
  transition: all 0.8s ease-out;
  transform: translateY(30px);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--glass-border);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  gap: 5px;
}

.logo .icon {
  color: var(--primary);
  font-size: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.3s;
}
.nav-links a:hover {
  color: var(--text-main);
}

.theme-toggle {
  background: var(--primary-glow);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.2rem;
}

[data-theme='dark'] {
  .theme-toggle {
    color: var(--primary);
  }
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary-glow);
}

.nav-theme-mobile {
  display: none;
}

/* Hamburger Styles */
.menu-toggle {
  display: none;
  position: fixed;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-main);
  position: relative;
  transition: 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  left: 0;
  transition: 0.3s ease;
}

.hamburger::before {
  top: -8px;
}
.hamburger::after {
  bottom: -8px;
}

/* Hamburger Animation */
.menu-toggle.active .hamburger {
  background: transparent;
}
.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Hero Section */
.hero {
  padding: 140px 2rem 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1s ease-out forwards;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1.2s ease-out forwards;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--preto);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--primary-glow);
}

.swiper-slide:hover .btn-primary {
  color: var(--branco);
}

.btn-secondary {
  background: var(--primary-glow);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Features Grid */
.section-padding {
  padding: 40px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-title p {
  color: var(--text-dim);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: 0.4s;
}
.feature-card p {
  text-align: center;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
}

.feature-icon {
  width: 100px;
  height: 100px;
  background: var(--primary-glow);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;

  i {
    font-size: 2rem;
  }
}

/* Swiper Customization */
.carousel-container-outer {
  position: relative;
  overflow: hidden;
}

.mySwiper {
  padding: 20px 10px 1px !important;
}

.custom-swiper-btn {
  color: var(--primary) !important;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  transition: 0.3s !important;
}
.custom-swiper-btn::after {
  font-size: 1.2rem !important;
  font-weight: bold;
}
.custom-swiper-btn:hover {
  background: var(--primary);
  color: white !important;
  box-shadow: 0 0 20px var(--primary-glow);
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.2) !important;
}
.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}

/* App Cards in Carousel */
.app-card {
  width: 100%;
  background: linear-gradient(145deg, #161618 0%, #0c0c0e 100%);
  border-radius: 28px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 50%, rgba(255, 255, 255, 0.05));
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.app-card:hover {
  border-color: var(--primary);
  transform: translateY(-12px);
}

.app-img-box {
  height: 180px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.app-img-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent);
  opacity: 0;
  transition: 0.5s;
}

.app-card:hover .app-img-box::before {
  opacity: 1;
}

.app-img-box img {
  width: 60%;
  height: auto;
  max-height: 80%;
  object-fit: contain;
  transition: 0.5s;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}
.app-card:hover .app-img-box img {
  transform: scale(1.1);
}

.app-info {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.041);
}
.app-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
}
.app-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
/* Search Section */
.search-section {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.search-box {
  background: rgba(255, 255, 255, 0.171);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  background: rgba(255, 255, 255, 0.05);
}

.search-box i {
  color: var(--primary);
  font-size: 1.2rem;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  width: 100%;
  font-size: 1.1rem;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-main);
}

/* System Badges */
.app-systems {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.system-badge {
  background: var(--primary-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.system-badge,
.app-price {
  color: var(--branco);
  font-weight: 700;
}

.app-price {
  font-size: 1.2rem;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* Shimmer */
.is-loading .shimmer-box {
  background: var(--shimmer);
  background-size: 200% 100%;
  animation: sweep 1.5s infinite linear;
}
@keyframes sweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Shimmer Skeleton (Integrated into .app-card) */
.app-card.skeleton {
  cursor: default;
  pointer-events: none;
  background: var(--bg-card);
  height: 380px;
  display: flex;
  flex-direction: column;
}

.app-card.skeleton .shimmer-img {
  height: 180px;
  width: 100%;
  background: var(--shimmer);
  background-size: 200% 100%;
  animation: sweep 1.5s infinite linear;
}

.app-card.skeleton .shimmer-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-card.skeleton .shimmer-line {
  background: var(--shimmer);
  background-size: 200% 100%;
  animation: sweep 1.5s infinite linear;
  border-radius: 6px;
}

.app-card.skeleton .shimmer-badges {
  display: flex;
  gap: 0.5rem;
}

.app-card.skeleton .shimmer-badge {
  width: 50px;
  height: 18px;
  border-radius: 4px;
}

.app-card.skeleton .shimmer-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-card.skeleton .shimmer-title {
  width: 60%;
  height: 22px;
}

.shimmer-price {
  width: 25%;
  height: 22px;
}

.app-card.skeleton .shimmer-button {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  margin-top: auto;
}

/* Stats */
.stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 2rem;
}
.stat-item {
  text-align: center;
}
.stat-item h3 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
}
.stat-item p {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

/* Footer */
footer {
  padding: 2rem;
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
}

#current-year {
  color: var(--text-main);
  text-shadow: 0 0 10px var(--year-glow);
  font-weight: 600;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}
.footer-brand h2 {
  font-weight: 800;
  margin-bottom: 1rem;
}
.footer-links h4 {
  margin-bottom: 1.5rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  transition: 0.3s;
}
.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 768px){
  .cta-group {
    flex-direction: column;
  }
  .stats-bar {
    flex-direction: column;

  }
}


@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    display: flex;
    flex-direction: column;
    background: var(--nav-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    width: 250px;
    height: calc(100vh - 70px);
    gap: 0;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--glass-border);
    padding: 2rem 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-theme-mobile {
    display: flex;
    margin: 1rem 2.5rem;
    width: calc(100% - 5rem);
    height: 60px;
    border-radius: 16px;
    font-size: 1.5rem;
  }

  .nav-theme-desktop {
    display: none;
  }
}

/* Video Tips Section */
.video-grid {
  display: grid;
  place-items: center;
  gap: 2.5rem;
  align-items: flex-start;
}

.video-main-container {
  width: 50%;
  cursor: pointer;
}

@media (max-width: 992px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.suggestions-side-container {
  height: 100%;
}

.video-suggestions-wrapper {
  margin-top: 0;
}

.video-wrapper-premium {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1f1e1e;
  border-radius: 30px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: 0.4s;
}

.video-wrapper-premium:hover {
  border-color: var(--primary);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 30px var(--primary-glow);
}

.video-player-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/*
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
} */

/* === Full Player Controls === */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem 0.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 20;
  pointer-events: none;
}

.player-controls.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.player-controls.locked {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Seek Row */
.player-seek-row {
  margin-bottom: 0.5rem;
}

.player-seek,
.player-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--pct, 0%), rgba(255, 255, 255, 0.25) var(--pct, 0%));
}

.player-seek::-webkit-slider-thumb,
.player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  cursor: pointer;
  transition: transform 0.2s;
}

.player-seek::-webkit-slider-thumb:hover,
.player-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Bottom Row */
.player-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.player-right {
  display: flex;
  align-items: center;
}

.player-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition:
    color 0.2s,
    transform 0.2s;
  display: flex;
  align-items: center;
}

.player-btn:hover {
  color: var(--primary);
  transform: scale(1.15);
}

/* Volume */
.player-volume {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.player-volume-slider {
  width: 70px;
  height: 3px;
}

/* Time */
.player-time {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tips-side-container {
  height: 100%;
}

/* Video Suggestions Carousel */
.video-suggestions-wrapper {
  margin-top: 3rem;
  padding: 0 1rem;
}

.suggestions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.suggestions-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.suggestions-nav {
  display: flex;
  gap: 0.5rem;
  position: relative;
}

.suggestions-header .swiper-button-next,
.suggestions-header .swiper-button-prev {
  position: static !important;
  width: 40px !important;
  height: 40px !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary) !important;
  transition: 0.3s;
}

.suggestions-header .swiper-button-next::after,
.suggestions-header .swiper-button-prev::after {
  font-size: 1rem !important;
  font-weight: 900;
}

.suggestions-header .swiper-button-next:hover,
.suggestions-header .swiper-button-prev:hover {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

.swiper-button-next {
  opacity: 0.4;
  pointer-events: none;
}

.swiper-button-next.active {
  opacity: 1;
  pointer-events: auto;
  background-color: var(--primary);
  color: var(--bg-card) !important;
}

.suggestions-swiper {
  padding: 10px 0 40px !important;
}

.suggestion-card {
  cursor: pointer;
  transition: 0.3s;
}

.suggestion-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #000;
  border: 1px solid var(--border);
}

.suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

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

.suggestion-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.suggestion-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
  z-index: 1;
}

.suggestion-card:hover .suggestion-play-overlay {
  opacity: 1;
}

.suggestion-play-overlay i {
  font-size: 1.5rem;
  color: #fff;
}

.icon-m3-music-fill {
  font-size: 15px;
}

.suggestion-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: 0.3s;
}

.suggestion-card:hover .suggestion-title {
  color: var(--primary);
}

.suggestion-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
}
