/* -------------------------------------------------------------
   Gacha Gramps Creator Site - Main Stylesheet
   Designed with premium dark gaming vibes, glassmorphism, and neon glows.
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-darker: #06070a;
  --bg-dark: #0b0d14;
  --bg-card: rgba(17, 20, 30, 0.75);
  --bg-card-hover: rgba(25, 29, 43, 0.9);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 245, 255, 0.2);
  
  /* Accent Colors */
  --accent-cyan: #00f5ff;
  --accent-purple: #9b51e0;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --accent-gradient-hover: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  
  /* Text Colors */
  --text-main: #f0f2f5;
  --text-muted: #8e95a5;
  --text-inverse: #06070a;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --nav-height: 80px;
  --max-width: 1200px;
  --border-radius: 16px;
  --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-darker);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(155, 81, 224, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 245, 255, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Helper Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--accent-gradient);
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
  transition: all var(--transition-speed) ease;
  gap: 8px;
}

.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.6), 0 0 10px rgba(155, 81, 224, 0.4);
  color: var(--text-inverse);
}

.glow-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 30px;
  border: 2px solid var(--accent-cyan);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  gap: 8px;
}

.glow-btn-secondary:hover {
  background: rgba(0, 245, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-main);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.burger span {
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: all var(--transition-speed) ease;
}

/* Banner / Hero Section */
.hero-banner {
  position: relative;
  width: 100%;
  height: 350px;
  background: url('../assets/images/banner.jpg') no-repeat center center/cover;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg-darker), transparent);
}

.hero-profile-container {
  position: relative;
  z-index: 10;
  text-align: center;
  transform: translateY(60px);
  margin-bottom: 0;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--bg-darker);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.4), 0 0 10px rgba(155, 81, 224, 0.3);
  margin-bottom: 12px;
  object-fit: cover;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.hero-tag {
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

/* Social Icon Hub */
.social-hub {
  padding-top: 100px;
  padding-bottom: 40px;
  text-align: center;
}

.social-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 160px;
  backdrop-filter: blur(8px);
  transition: all var(--transition-speed) ease;
}

.social-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 5px 20px rgba(0, 245, 255, 0.15);
  background: var(--bg-card-hover);
}

.social-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.social-card:hover .social-icon {
  background: var(--accent-gradient);
  color: var(--text-inverse);
}

.social-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-align: left;
}

.social-handle {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

/* About / Bio Section */
.about-section {
  padding: 60px 0;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
}

.section-title {
  font-size: 28px;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-cyan);
}

.bio-content p {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.8;
}

.bio-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.detail-item h4 {
  color: var(--text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.detail-item p {
  color: var(--text-main);
  font-size: 16px;
  font-weight: 600;
}

/* Featured Videos Section */
.featured-section {
  padding: 60px 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 10px 25px rgba(0, 245, 255, 0.15), 0 0 10px rgba(155, 81, 224, 0.1);
}

.video-thumbnail-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 7, 10, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

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

.play-btn-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: 20px;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
  transform: scale(0.8);
  transition: transform var(--transition-speed) ease;
}

.video-card:hover .play-btn-circle {
  transform: scale(1);
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* Playlists Page specific styles */
.playlists-page-header {
  padding: 140px 0 40px;
  text-align: center;
}

.playlist-carousel-section {
  padding: 40px 0;
  position: relative;
}

.playlist-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.playlist-link-btn {
  font-size: 14px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  display: flex;
  padding: 10px 0 20px;
  scrollbar-width: none; /* Firefox */
}

.carousel-track-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-track {
  display: flex;
  gap: 24px;
}

.carousel-track .video-card {
  width: 320px;
  flex-shrink: 0;
}

.carousel-nav-btn {
  position: absolute;
  top: calc(50% - 30px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 20, 30, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
}

.carousel-nav-btn:hover {
  background: var(--accent-cyan);
  color: var(--text-inverse);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
}

.carousel-nav-btn.prev {
  left: -22px;
}

.carousel-nav-btn.next {
  right: -22px;
}

/* Brand Deals & Media Kit Page Specific Styles */
.brand-page-header {
  padding: 140px 0 40px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.stat-metric-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

.stat-metric-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-metric-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.brand-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .brand-section-grid {
    grid-template-columns: 1fr;
  }
}

.demographics-card, .interests-card, .shopping-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  backdrop-filter: blur(8px);
}

.gender-split-container {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.gender-split-bar {
  flex-grow: 1;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
}

.gender-male {
  height: 100%;
  background: #3a86f0;
}

.gender-female {
  height: 100%;
  background: #ff5e97;
}

.gender-labels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.gender-label-male { color: #3a86f0; }
.gender-label-female { color: #ff5e97; }

.bar-chart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-chart-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
}

.bar-row-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.bar-row-fill {
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 4px;
  transition: width 1s ease-out;
}

.interest-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.interest-tag {
  background: rgba(155, 81, 224, 0.15);
  border: 1px solid rgba(155, 81, 224, 0.3);
  color: #d6b3ff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.interest-tag.cyan {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.25);
  color: #bbfdff;
}

.brand-pitch-container {
  text-align: center;
  background: linear-gradient(135deg, rgba(17, 20, 30, 0.9), rgba(6, 7, 10, 0.95));
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 48px;
  margin-bottom: 60px;
}

.brand-pitch-container h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.brand-pitch-container p {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 16px;
}

/* Modal Popup Player styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 7, 10, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 960px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 245, 255, 0.2);
  transform: scale(0.9);
  transition: transform var(--transition-speed) ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 ratio */
  height: 0;
}

.modal-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-header {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}

.modal-close:hover {
  color: var(--accent-cyan);
}

/* Footer Section */
footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  list-style: none;
}

.footer-nav-link {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-nav-link:hover {
  color: var(--accent-cyan);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-speed) ease;
}

.footer-social-icon:hover {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  
  .burger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(6, 7, 10, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 0.4s ease;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero-banner {
    height: 260px;
  }
  
  .profile-avatar {
    width: 110px;
    height: 110px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .about-card {
    padding: 24px;
  }
  
  .carousel-nav-btn {
    display: none;
  }
  
  .carousel-track-container {
    padding-left: 0;
    padding-right: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .carousel-track .video-card {
    width: 280px;
  }
}
