/**
 * NSM Idol Live Theme - Main Stylesheet
 * 
 * Neon - Holographic - TikTok Live Style
 * 
 * @package NSM_Idol_Live_Theme
 * @since 1.0.0
 */

/*
 * This file contains the main styles for the NSM Idol Live Theme.
 * All styles are designed with a Neon - Holographic - Gradient aesthetic.
 */

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: var(--bg-dark-rgba-95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--neon-pink-rgba-20);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px var(--neon-pink-rgba-30);
}

.header-wrapper {
  position: relative;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.site-content {
  padding-top: var(--header-height, 84px);
}

/* Logo */
.site-branding {
  flex-shrink: 0;
}

.custom-logo,
.site-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  transition: all var(--transition-base);
}

.custom-logo:hover,
.site-title:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px var(--neon-pink-rgba-80));
}

/* Navigation */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu-wrapper {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-md);
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu .current-menu-item > a {
  color: var(--neon-pink);
  text-shadow: var(--glow-pink);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle-icon span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--neon-pink);
  box-shadow: var(--glow-pink);
  transition: all var(--transition-base);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px);
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* Header Background Effects */
.header-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.3;
}

.neon-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: float 6s ease-in-out infinite;
}

.neon-circle-1 {
  width: 150px;
  height: 150px;
  background: var(--neon-pink);
  top: -75px;
  left: 10%;
  animation-delay: 0s;
}

.neon-circle-2 {
  width: 200px;
  height: 200px;
  background: var(--neon-aqua);
  top: -100px;
  right: 20%;
  animation-delay: 2s;
}

.neon-circle-3 {
  width: 120px;
  height: 120px;
  background: var(--neon-purple);
  top: -60px;
  right: 5%;
  animation-delay: 4s;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, var(--neon-pink-rgba-20) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, var(--neon-aqua-rgba-20) 0%, transparent 50%);
  animation: gradient-shift 10s ease infinite;
  background-size: 200% 200%;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
  background-size: 200% 200%;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-2xl);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Floating Elements */
.hero-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neon-pink-rgba-10);
  border: 2px solid var(--neon-pink);
  border-radius: 50%;
  box-shadow: var(--glow-pink);
  animation: float 4s ease-in-out infinite;
}

.floating-icon i {
  color: var(--neon-pink);
  width: 30px;
  height: 30px;
}

.floating-icon-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-icon-2 {
  top: 60%;
  right: 15%;
  animation-delay: 1.5s;
}

.floating-icon-3 {
  bottom: 20%;
  left: 15%;
  animation-delay: 3s;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section-padding {
  padding: var(--spacing-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   REWARDS SECTION
   ========================================================================== */

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.reward-card {
  text-align: center;
  padding: var(--spacing-xl);
  position: relative;
}

.reward-card.featured {
  border-color: var(--neon-aqua);
  box-shadow: var(--glow-aqua), var(--shadow-card);
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: var(--spacing-md);
  background: var(--gradient-secondary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--glow-aqua);
}

.reward-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neon-pink-rgba-10);
  border: 2px solid var(--neon-pink);
  border-radius: 50%;
  box-shadow: var(--glow-pink);
}

.reward-card.featured .reward-icon {
  border-color: var(--neon-aqua);
  box-shadow: var(--glow-aqua);
}

.reward-icon i {
  width: 40px;
  height: 40px;
  color: var(--neon-pink);
}

.reward-card.featured .reward-icon i {
  color: var(--neon-aqua);
}

.reward-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.reward-percentage {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--spacing-md);
}

.reward-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   COMMUNITY SECTION
   ========================================================================== */

.community-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.feature-item {
  text-align: center;
  padding: var(--spacing-lg);
}

.feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--glow-pink);
  transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
  transform: translateY(-10px) rotate(5deg);
  box-shadow: 0 0 40px rgba(255, 47, 212, 0.8);
}

.feature-icon i {
  width: 50px;
  height: 50px;
  color: var(--text-primary);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-aqua);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-base);
  margin-top: var(--spacing-md);
}

.feature-item:hover .feature-link {
  color: var(--neon-pink);
  gap: 0.75rem;
}

.feature-link i {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.feature-item:hover .feature-link i {
  transform: translateX(4px);
}

/* ==========================================================================
   VIDEO SECTION
   ========================================================================== */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.video-card {
  overflow: hidden;
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 0, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  box-shadow: var(--glow-pink);
  cursor: pointer;
  transition: all var(--transition-base);
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(255, 47, 212, 0.8);
}

.play-button i {
  width: 30px;
  height: 30px;
  color: var(--text-primary);
  margin-left: 4px;
}

.video-content {
  padding: var(--spacing-md);
}

.video-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.video-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.video-title a:hover {
  color: var(--neon-pink);
}

.video-excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.video-meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.video-meta i {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   REGISTRATION SECTION
   ========================================================================== */

.registration-section {
  position: relative;
  overflow: hidden;
}

.registration-wrapper {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  text-align: center;
  box-shadow: var(--glow-pink), var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.registration-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

.registration-content {
  position: relative;
  z-index: 1;
}

.registration-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.registration-description {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.registration-benefits {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.benefit-item i {
  width: 24px;
  height: 24px;
  color: var(--neon-yellow);
}

.registration-cta .btn {
  background: var(--bg-dark);
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.registration-cta .btn:hover {
  background: var(--text-primary);
  color: var(--bg-dark);
  transform: translateY(-4px);
}

/* ==========================================================================
   SERVICES SECTION (Homepage)
   ========================================================================== */

.services-section {
  padding: var(--spacing-2xl) 0;
  background: rgba(255, 255, 255, 0.01);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.service-card {
  position: relative;
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-pink);
  box-shadow: 0 20px 60px rgba(255, 47, 212, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 47, 212, 0.2), rgba(0, 255, 255, 0.2));
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(255, 47, 212, 0.4);
}

.service-icon i {
  width: 32px;
  height: 32px;
  color: var(--neon-pink);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  line-height: 1.4;
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  font-size: 0.95rem;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-aqua);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.service-card:hover .service-link {
  color: var(--neon-pink);
  gap: 0.75rem;
}

.service-link i {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  background: var(--bg-dark-secondary);
  border-top: 1px solid rgba(255, 47, 212, 0.2);
  overflow: hidden;
}

.footer-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.footer-widgets {
  padding: var(--spacing-2xl) 0;
  border-bottom: 1px solid rgba(255, 47, 212, 0.1);
}

.footer-widgets-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.widget {
  color: var(--text-secondary);
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 0.5rem;
}

.widget ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.widget ul li a:hover {
  color: var(--neon-pink);
  padding-left: 0.5rem;
}

.footer-bottom {
  padding: var(--spacing-xl) 0;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  align-items: start;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-brand .custom-logo-link,
.footer-brand .site-title {
  margin-bottom: var(--spacing-sm);
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
}

.footer-social {
  text-align: center;
}

.footer-social h4 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neon-pink-rgba-10);
  border: 2px solid var(--neon-pink-rgba-30);
  border-radius: 50%;
  color: var(--neon-pink);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--neon-pink-rgba-30), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--neon-pink-rgba-20);
  border-color: var(--neon-pink);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px var(--neon-pink-rgba-40);
  color: var(--neon-pink);
}

.social-link:hover::before {
  width: 100px;
  height: 100px;
}

.social-link i {
  width: 20px;
  height: 20px;
}

.footer-menu {
  display: flex;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--neon-pink);
}

.footer-copyright {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 47, 212, 0.1);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-copyright p {
  margin: 0;
}

.footer-copyright a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-copyright a:hover {
  color: var(--neon-pink);
}

.footer-copyright .separator {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

/* Footer Background Effects */
.footer-bg-effects {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  opacity: 0.2;
}

.neon-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--neon-pink);
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}

.neon-wave-2 {
  background: var(--neon-aqua);
  animation-delay: 2s;
}

.neon-wave-3 {
  background: var(--neon-purple);
  animation-delay: 4s;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  box-shadow: var(--glow-pink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(255, 47, 212, 0.8);
}

.back-to-top i {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
}

/* ==========================================================================
   PAGE & POST TEMPLATES
   ========================================================================== */

.page-header,
.post-header,
.archive-header {
  padding: 8rem 0 var(--spacing-2xl);
  text-align: center;
  background: var(--bg-dark-secondary);
  border-bottom: 1px solid rgba(255, 47, 212, 0.2);
}

.page-title,
.post-title,
.archive-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--spacing-md);
}

.page-excerpt,
.archive-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
}

.post-categories {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.category-badge {
  padding: 0.5rem 1rem;
  background: rgba(255, 47, 212, 0.1);
  border: 1px solid var(--neon-pink);
  border-radius: var(--radius-full);
  color: var(--neon-pink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.category-badge:hover {
  background: var(--neon-pink);
  color: var(--bg-dark);
  box-shadow: var(--glow-pink);
}

.post-meta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-meta i {
  width: 16px;
  height: 16px;
}

.post-meta a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-meta a:hover {
  color: var(--neon-pink);
}

.page-featured-image,
.post-featured-image {
  padding: var(--spacing-2xl) 0;
}

.featured-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.featured-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.page-content,
.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper {
  color: var(--text-secondary);
  line-height: 1.8;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
  color: var(--text-primary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.content-wrapper p {
  margin-bottom: var(--spacing-md);
}

.content-wrapper a {
  color: var(--neon-aqua);
  text-decoration: underline;
}

.content-wrapper a:hover {
  color: var(--neon-pink);
}

.content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
}

.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

.post-tags {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 47, 212, 0.1);
  margin-top: var(--spacing-xl);
}

.tags-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.tags-label i {
  width: 18px;
  height: 18px;
}

.tags-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-item {
  padding: 0.375rem 0.875rem;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--neon-aqua);
  border-radius: var(--radius-full);
  color: var(--neon-aqua);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.tag-item:hover {
  background: var(--neon-aqua);
  color: var(--bg-dark);
  box-shadow: var(--glow-aqua);
}

.post-navigation {
  padding: var(--spacing-xl) 0;
  border-top: 1px solid rgba(255, 47, 212, 0.1);
  margin-top: var(--spacing-xl);
}

.nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--spacing-md);
  background: rgba(26, 11, 46, 0.5);
  border: 1px solid rgba(255, 47, 212, 0.2);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
}

.nav-link:hover {
  border-color: var(--neon-pink);
  box-shadow: var(--glow-pink);
  transform: translateY(-2px);
}

.nav-direction {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-direction i {
  width: 16px;
  height: 16px;
}

.nav-title {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-next .nav-link {
  text-align: right;
}

.nav-next .nav-direction {
  justify-content: flex-end;
}

/* Archive Filters */
.archive-filters {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.filter-label i {
  width: 18px;
  height: 18px;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  background: rgba(26, 11, 46, 0.5);
  border: 1px solid rgba(255, 47, 212, 0.2);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  border-color: var(--neon-pink);
  color: var(--text-primary);
  box-shadow: var(--glow-pink);
}

a:focus-visible,
button:focus-visible,
.filter-btn:focus-visible,
.menu-toggle:focus-visible,
.nav-menu a:focus-visible,
.sub-menu a:focus-visible {
  outline: 2px solid var(--neon-aqua);
  outline-offset: 3px;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.1);
}

.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 0, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.post-card:hover .post-overlay {
  opacity: 1;
}

.read-more-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: var(--glow-pink);
  transition: all var(--transition-base);
}

.read-more-link:hover {
  transform: scale(1.1);
}

.read-more-link i {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
}

.post-card-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  flex: 1;
}

.post-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-card-title a:hover {
  color: var(--neon-pink);
}

.post-card-excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.post-card-meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-card-meta i {
  width: 14px;
  height: 14px;
}

/* Pagination */
.archive-pagination {
  margin-top: var(--spacing-xl);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 0 var(--spacing-sm);
  background: rgba(26, 11, 46, 0.5);
  border: 1px solid rgba(255, 47, 212, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--gradient-primary);
  border-color: var(--neon-pink);
  color: var(--text-primary);
  box-shadow: var(--glow-pink);
}

.page-numbers i {
  width: 18px;
  height: 18px;
}

/* No Posts Found */
.no-posts-found {
  text-align: center;
  padding: var(--spacing-2xl);
}

.no-posts-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 47, 212, 0.1);
  border: 2px solid var(--neon-pink);
  border-radius: 50%;
  box-shadow: var(--glow-pink);
}

.no-posts-icon i {
  width: 50px;
  height: 50px;
  color: var(--neon-pink);
}

.no-posts-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.no-posts-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-section {
    padding: 6rem 0 3rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  /* Header */
  .site-header {
    padding: 0.75rem 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(11, 0, 20, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 5rem var(--spacing-lg) var(--spacing-lg);
    transition: left var(--transition-base);
    z-index: 1000;
    overflow-y: auto;
  }
  
  .main-navigation.active,
  .main-navigation.is-open {
    left: 0;
    box-shadow: 0 0 50px rgba(255, 47, 212, 0.5);
  }
  
  .menu-wrapper {
    width: 100%;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-menu a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 47, 212, 0.1);
  }
  
  .header-cta {
    display: none;
  }
  
  /* Hero */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-stats {
    gap: var(--spacing-md);
  }
  
  /* Sections */
  .section-padding {
    padding: 2rem 0;
  }
  
  .rewards-grid,
  .community-features,
  .video-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .reward-card.featured {
    transform: scale(1);
  }
  
  /* Footer */
  .footer-widgets-inner,
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .footer-brand {
    align-items: center;
    text-align: center;
  }
  
  .footer-social {
    text-align: center;
  }
  
  .footer-menu {
    justify-content: center;
    text-align: center;
  }
  
  .social-links,
  .footer-nav {
    justify-content: center;
  }
  
  .footer-copyright {
    font-size: 0.8rem;
    padding-top: var(--spacing-md);
  }
  
  .footer-copyright .separator {
    display: none;
  }
  
  .footer-copyright a {
    display: block;
    margin-top: 0.5rem;
  }
  
  /* Back to Top */
  .back-to-top {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .registration-wrapper {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .registration-benefits {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .footer-social {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Desktop Medium */
@media (min-width: 769px) and (max-width: 1200px) {
  .footer-bottom-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .footer-social {
    grid-column: span 2;
    text-align: center;
  }
  
  .footer-menu {
    grid-column: span 2;
  }
}

/* ========================================================================== 
   SEARCH & ERROR STATES
   ========================================================================== */

.search-hero .section-header {
  text-align: center;
}

.search-tools {
  margin-top: var(--spacing-lg);
}

.search-form {
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.search-form-inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.search-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--neon-aqua);
}

.search-icon i {
  width: 20px;
  height: 20px;
}

.search-field {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.search-field:focus {
  outline: none;
  border-color: var(--neon-pink);
  box-shadow: 0 0 0 3px rgba(255, 47, 212, 0.25);
}

.search-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.search-results .posts-grid {
  margin-top: var(--spacing-2xl);
}

.not-found-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

.not-found-card {
  text-align: center;
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.not-found-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-lg);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-aqua);
}

.not-found-icon i {
  width: 40px;
  height: 40px;
}

.not-found-card .hero-cta {
  justify-content: center;
  margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
  .search-form {
    padding: var(--spacing-sm);
  }

  .search-form-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .search-icon {
    width: 100%;
    border-radius: var(--radius-md);
    height: 48px;
  }

  .search-submit {
    width: 100%;
    justify-content: center;
  }

  .not-found-section {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.no-content {
  text-align: center;
  color: var(--text-muted);
  padding: var(--spacing-xl);
}

/* ==========================================================================
   BREADCRUMBS NAVIGATION
   ========================================================================== */

.breadcrumbs-wrapper {
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.breadcrumbs a:hover {
  color: var(--neon-pink);
  background: rgba(255, 47, 212, 0.1);
}

.breadcrumbs li.active span {
  color: var(--neon-aqua);
  font-weight: 600;
  padding: 4px 8px;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .breadcrumbs-wrapper {
    padding: 12px 0;
    margin-top: 70px;
  }
  
  .breadcrumbs {
    font-size: 0.75rem;
  }
  
  .breadcrumb-separator {
    margin: 0 4px;
  }
}

/* ==========================================================================
   MEGA FOOTER SITEMAP
   ========================================================================== */

.mega-footer-sitemap {
  padding: 80px 0 50px;
  background: linear-gradient(135deg, rgba(255, 47, 212, 0.03) 0%, rgba(0, 255, 255, 0.03) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.sitemap-column {
  text-align: left;
}

.sitemap-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 47, 212, 0.3);
  position: relative;
}

.sitemap-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
}

.sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-links li {
  margin-bottom: 14px;
}

.sitemap-links li:last-child {
  margin-bottom: 0;
}

.sitemap-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 20px;
  line-height: 1.6;
}

.sitemap-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--neon-aqua);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
}

.sitemap-links a:hover {
  color: var(--neon-pink);
  transform: translateX(6px);
  text-shadow: 0 0 10px rgba(255, 47, 212, 0.5);
}

.sitemap-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

/* Desktop Large Screens */
@media (min-width: 1400px) {
  .sitemap-grid {
    gap: 60px;
  }
}

/* Tablet & Desktop Medium */
@media (max-width: 1200px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .mega-footer-sitemap {
    padding: 60px 0 40px;
  }
  
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .sitemap-title {
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
  
  .sitemap-links li {
    margin-bottom: 12px;
  }
  
  .sitemap-links a {
    font-size: 0.875rem;
    padding-left: 18px;
  }
}

@media (max-width: 640px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .sitemap-column {
    text-align: center;
  }
  
  .sitemap-title {
    text-align: center;
  }
  
  .sitemap-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .sitemap-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .sitemap-links li {
    width: 100%;
    text-align: center;
  }
  
  .sitemap-links a {
    padding-left: 0;
    justify-content: center;
  }
  
  .sitemap-links a::before {
    display: none;
  }
  
  .sitemap-links a:hover {
    transform: scale(1.05) translateX(0);
  }
}

@media (max-width: 480px) {
  .mega-footer-sitemap {
    padding: 50px 0 30px;
  }
  
  .sitemap-grid {
    gap: 28px;
  }
  
  .sitemap-title {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }
  
  .sitemap-links a {
    font-size: 0.85rem;
  }
}
