/* ============================================ */
/* CASA 24 RECORDS - MAIN STYLESHEET          */
/* Complete Responsive Layout & Styling        */
/* ============================================ */

/* ============================================ */
/* 1. CSS VARIABLES & ROOT CONFIGURATION      */
/* ============================================ */

:root {
  --color-bg: #1a1a1a;
  --color-text: #e0e0e0;
  --color-accent: #00a651; /* Green */
  --color-secondary: #6b7fd7;
  --color-tertiary: #8c52ff;
  --color-spotify: #1DB954;
  --color-youtube: #FF0000;
  --color-discord: #7289DA;
  --color-instagram: #E1306C;
}

/* ============================================ */
/* 2. GLOBAL LAYOUT & RESPONSIVE BASE         */
/* ============================================ */

* {
  box-sizing: border-box;
}

*:not(svg):not(path) {
  max-width: 100%;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Mono', monospace;
  background-color: var(--color-bg);
  color: var(--color-text);
  background-image: 
    radial-gradient(rgba(0, 166, 81, 0.1) 2px, transparent 2px),
    radial-gradient(rgba(107, 127, 215, 0.1) 2px, transparent 2px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

h1, h2, h3, h4 {
  font-family: 'VT323', monospace;
  letter-spacing: 1px;
}

/* Root container */
#root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content container - responsive padding */
.max-w-7xl {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .max-w-7xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .max-w-7xl {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .max-w-7xl {
    max-width: 1280px;
  }
}

@media (min-width: 1280px) {
  .max-w-7xl {
    max-width: 1536px;
  }
}

@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 1800px;
  }
}

/* ============================================ */
/* 3. HEADER - CENTERED & RESPONSIVE          */
/* ============================================ */

header {
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  header {
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }
}

header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  word-wrap: break-word;
}

header p {
  font-size: clamp(1rem, 3vw, 1.5rem);
  line-height: 1.4;
}

header p.text-sm {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
}

/* ============================================ */
/* 4. MODERN NAVIGATION SLIDER                */
/* ============================================ */

/* Navigation container with gradient indicators */
.nav-container {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(0, 166, 81, 0.3);
}

@media (min-width: 768px) {
  .nav-container {
    margin-bottom: 2rem;
  }
}

/* Scroll wrapper - enables horizontal scrolling */
.nav-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  position: relative;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.nav-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

/* Navigation slider - horizontal layout */
.nav-slider {
  display: flex;
  gap: 0;
  width: max-content;
  min-width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
}

/* Individual navigation items */
.nav-slider-item {
  position: relative;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-family: 'VT323', monospace;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-decoration: none;
  color: #9ca3af;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 3px solid transparent;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile optimization */
@media (max-width: 767px) {
  .nav-slider-item {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    min-width: auto;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .nav-slider-item {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}

/* Tablet and up - center items */
@media (min-width: 768px) {
  .nav-slider {
    justify-content: center;
  }
  
  .nav-slider-item {
    padding: 1.125rem 1.75rem;
    font-size: 1.125rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav-slider-item {
    padding: 1.125rem 2rem;
    font-size: 1.25rem;
  }
}

/* Hover state - desktop only */
@media (hover: hover) and (pointer: fine) {
  .nav-slider-item:hover {
    color: #00ff7f;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 166, 81, 0.05) 100%);
  }
  
  .nav-slider-item:hover::after {
    transform: scaleX(0.7);
    opacity: 0.5;
  }
}

/* Active state */
.nav-slider-item.active {
  color: #00a651;
  font-weight: bold;
  border-bottom-color: #00a651;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 166, 81, 0.08) 100%);
}

/* Active state glow effect */
.nav-slider-item.active::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00a651, transparent);
  box-shadow: 0 0 8px rgba(0, 166, 81, 0.6);
}

/* Underline animation on hover */
.nav-slider-item::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00ff7f, transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

/* Touch/Active feedback */
.nav-slider-item:active {
  transform: scale(0.97);
  opacity: 0.8;
}

/* Gradient fade indicators - Left side */
.nav-fade-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 2px;
  width: 40px;
  background: linear-gradient(to right, #1a1a1a 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

/* Gradient fade indicators - Right side */
.nav-fade-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 2px;
  width: 40px;
  background: linear-gradient(to left, #1a1a1a 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

/* Show fade indicators on mobile when scrollable */
@media (max-width: 767px) {
  .nav-container.has-scroll .nav-fade-right {
    opacity: 1;
  }
  
  .nav-container.has-scroll.scrolled-middle .nav-fade-left,
  .nav-container.has-scroll.scrolled-middle .nav-fade-right {
    opacity: 1;
  }
  
  .nav-container.has-scroll.scrolled-end .nav-fade-left {
    opacity: 1;
  }
  
  .nav-container.has-scroll.scrolled-end .nav-fade-right {
    opacity: 0;
  }
}

/* Scroll snap for better UX on mobile */
@media (max-width: 767px) {
  .nav-scroll-wrapper {
    scroll-snap-type: x proximity;
    scroll-padding: 0 1rem;
  }
  
  .nav-slider-item {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

/* Ensure proper spacing on very small screens */
@media (max-width: 360px) {
  .nav-slider-item {
    padding: 0.75rem 0.875rem;
    font-size: 0.85rem;
  }
  
  .nav-fade-left,
  .nav-fade-right {
    width: 30px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav-slider-item {
    border-bottom-width: 4px;
  }
  
  .nav-slider-item.active {
    border-bottom-width: 5px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .nav-scroll-wrapper {
    scroll-behavior: auto;
  }
  
  .nav-slider-item,
  .nav-slider-item::after,
  .nav-slider-item::before,
  .nav-fade-left,
  .nav-fade-right {
    transition: none;
  }
}

/* ============================================ */
/* 5. SECTION CONTAINERS & TRANSITIONS        */
/* ============================================ */

[data-section] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

[data-section][style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}

#about-container,
#collective-overview-root,
#life-at-24-container,
#untitled-unmastered-container,
#beat-lab-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

[data-section] h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
  text-align: center;
  word-wrap: break-word;
}

@media (min-width: 768px) {
  [data-section] h2 {
    margin-bottom: 2rem;
    text-align: left;
  }
}

.mb-8.flex {
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .mb-8.flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================ */
/* 6. STAT BOXES & GRID LAYOUT               */
/* ============================================ */

.stat-grid {
  display: grid;
  gap: 1.5rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.stat-box h3 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #9ca3af;
}

.stat-content {
  display: flex;
  align-items: center;
  height: 36px;
  margin-top: auto;
}

.stat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.stat-value {
  font-size: 1.875rem;
  line-height: 1;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.stat-value span {
  font-size: 1.25rem;
  margin-left: 0.25rem;
  font-weight: normal;
}

/* ============================================ */
/* 7. PLATFORM HOVER BOXES (Discord, etc.)   */
/* ============================================ */

/* Discord Hover Box */
.discord-hover-box {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.discord-hover-box:hover {
  background: linear-gradient(135deg, rgba(114, 137, 218, 0.15) 0%, rgba(88, 101, 242, 0.15) 100%) !important;
  border-color: var(--color-discord) !important;
  box-shadow: 
    0 0 20px rgba(114, 137, 218, 0.3),
    4px 4px 0px var(--color-discord) !important;
  transform: translateY(-2px);
}

.discord-hover-box .discord-logo-container {
  z-index: 1;
}

.discord-hover-box:hover .discord-logo-container {
  opacity: 1 !important;
  color: #fff !important;
}

.discord-hover-box .discord-logo-container svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.discord-hover-box:hover .discord-hover-overlay {
  opacity: 1 !important;
}

.discord-hover-box:hover .discord-join-text {
  opacity: 1 !important;
  z-index: 10;
}

.discord-hover-box:hover .discord-title,
.discord-hover-box:hover .discord-value {
  opacity: 0.1 !important;
}

.discord-hover-box:focus {
  outline: 2px solid var(--color-discord);
  outline-offset: 4px;
}

.discord-hover-box:focus:not(:focus-visible) {
  outline: none;
}

.discord-hover-box:active {
  transform: translateY(0);
  box-shadow: 2px 2px 0px var(--color-discord) !important;
}

/* Spotify Hover Box */
.spotify-hover-box {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.spotify-hover-box:hover {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.15) 0%, rgba(30, 215, 96, 0.15) 100%) !important;
  border-color: var(--color-spotify) !important;
  box-shadow: 
    0 0 20px rgba(29, 185, 84, 0.3),
    4px 4px 0px var(--color-spotify) !important;
  transform: translateY(-2px);
}

.spotify-hover-box .spotify-logo-container {
  z-index: 1;
}

.spotify-hover-box:hover .spotify-logo-container {
  opacity: 1 !important;
  color: #fff !important;
}

.spotify-hover-box .spotify-logo-container svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.spotify-hover-box:hover .spotify-hover-overlay {
  opacity: 1 !important;
}

.spotify-hover-box:hover .spotify-visit-text {
  opacity: 1 !important;
  z-index: 10;
}

.spotify-hover-box:hover .spotify-title,
.spotify-hover-box:hover .spotify-value {
  opacity: 0.1 !important;
}

.spotify-hover-box:focus {
  outline: 2px solid var(--color-spotify);
  outline-offset: 4px;
}

.spotify-hover-box:focus:not(:focus-visible) {
  outline: none;
}

.spotify-hover-box:active {
  transform: translateY(0);
  box-shadow: 2px 2px 0px var(--color-spotify) !important;
}

/* Instagram Hover Box */
.instagram-hover-box {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.instagram-hover-box:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15) 0%, rgba(253, 52, 165, 0.15) 100%) !important;
  border-color: var(--color-instagram) !important;
  box-shadow: 
    0 0 20px rgba(225, 48, 108, 0.3),
    4px 4px 0px var(--color-instagram) !important;
  transform: translateY(-2px);
}

.instagram-hover-box .instagram-logo-container {
  z-index: 1;
}

.instagram-hover-box:hover .instagram-logo-container {
  opacity: 1 !important;
  color: #fff !important;
}

.instagram-hover-box .instagram-logo-container svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.instagram-hover-box:hover .instagram-hover-overlay {
  opacity: 1 !important;
}

.instagram-hover-box:hover .instagram-visit-text {
  opacity: 1 !important;
  z-index: 10;
}

.instagram-hover-box:hover .instagram-title,
.instagram-hover-box:hover .instagram-value {
  opacity: 0.1 !important;
}

.instagram-hover-box:focus {
  outline: 2px solid var(--color-instagram);
  outline-offset: 4px;
}

.instagram-hover-box:focus:not(:focus-visible) {
  outline: none;
}

.instagram-hover-box:active {
  transform: translateY(0);
  box-shadow: 2px 2px 0px var(--color-instagram) !important;
}

/* YouTube Hover Box */
.youtube-hover-box {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.youtube-hover-box:hover {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.15) 0%, rgba(204, 0, 0, 0.15) 100%) !important;
  border-color: var(--color-youtube) !important;
  box-shadow: 
    0 0 20px rgba(255, 0, 0, 0.3),
    4px 4px 0px var(--color-youtube) !important;
  transform: translateY(-2px);
}

.youtube-hover-box .youtube-logo-container {
  z-index: 1;
}

.youtube-hover-box:hover .youtube-logo-container {
  opacity: 1 !important;
  color: #fff !important;
}

.youtube-hover-box .youtube-logo-container svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.youtube-hover-box:hover .youtube-hover-overlay {
  opacity: 1 !important;
}

.youtube-hover-box:hover .youtube-visit-text {
  opacity: 1 !important;
  z-index: 10;
}

.youtube-hover-box:hover .youtube-title,
.youtube-hover-box:hover .youtube-value {
  opacity: 0.1 !important;
}

.youtube-hover-box:focus {
  outline: 2px solid var(--color-youtube);
  outline-offset: 4px;
}

.youtube-hover-box:focus:not(:focus-visible) {
  outline: none;
}

.youtube-hover-box:active {
  transform: translateY(0);
  box-shadow: 2px 2px 0px var(--color-youtube) !important;
}

/* Logo animation on hover for all platforms */
@keyframes platform-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.discord-hover-box:hover .discord-logo-container svg,
.spotify-hover-box:hover .spotify-logo-container svg,
.instagram-hover-box:hover .instagram-logo-container svg,
.youtube-hover-box:hover .youtube-logo-container svg {
  animation: platform-pulse 2s infinite;
}

.discord-hover-box *,
.spotify-hover-box *,
.instagram-hover-box *,
.youtube-hover-box * {
  transition: all 0.3s ease;
}

/* ============================================ */
/* 8. RETRO STYLING & BRAND ELEMENTS         */
/* ============================================ */

.retro-card {
  background: rgba(26, 26, 26, 0.7);
  border: 2px solid var(--color-accent);
  box-shadow: 4px 4px 0px var(--color-accent);
}

.retro-btn {
  transition: all 0.2s;
}

.retro-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px var(--color-accent);
}

.retro-tab {
  position: relative;
  overflow: hidden;
}

.retro-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: bottom left;
}

.retro-tab-active::after,
.retro-tab:hover::after {
  transform: scaleX(1);
}

.bg-casa24 {
  background-color: #00a651;
}

.text-casa24 {
  color: #00a651;
}

.border-casa24 {
  border-color: #00a651;
}

/* ============================================ */
/* 9. DECORATIVE ELEMENTS                     */
/* ============================================ */

.vinyl-bg {
  position: relative;
}

.vinyl-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    #1a1a1a 20%,
    rgba(26, 26, 26, 0.8) 21%,
    rgba(26, 26, 26, 0.8) 40%,
    #1a1a1a 41%,
    #1a1a1a 60%,
    rgba(26, 26, 26, 0.8) 61%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.1;
  z-index: -1;
}

.vinyl-decoration {
  position: fixed;
  top: -120px;
  left: -120px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    #1a1a1a 15%,
    var(--color-accent) 16%,
    var(--color-accent) 17%,
    #1a1a1a 18%,
    #1a1a1a 19%,
    var(--color-accent) 20%,
    var(--color-accent) 21%,
    #1a1a1a 22%,
    #1a1a1a 30%,
    var(--color-accent) 31%,
    var(--color-accent) 32%,
    #1a1a1a 33%
  );
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.cassette-decoration {
  position: fixed;
  bottom: -80px;
  right: -80px;
  width: 240px;
  height: 150px;
  background-color: rgba(0, 166, 81, 0.1);
  border: 2px solid rgba(0, 166, 81, 0.2);
  border-radius: 10px;
  z-index: -1;
  transform: rotate(-15deg);
}

.cassette-decoration::before,
.cassette-decoration::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(26, 26, 26, 0.7);
  border: 2px solid rgba(0, 166, 81, 0.3);
  transform: translateY(-50%);
}

.cassette-decoration::before {
  left: 40px;
}

.cassette-decoration::after {
  right: 40px;
}

/* ============================================ */
/* 10. MAGAZINE STYLES (LIFE@24)             */
/* ============================================ */

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.magazine-card {
  border: 2px solid var(--color-accent);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}

.magazine-card:hover {
  transform: scale(1.03);
}

.magazine-thumbnail {
  position: relative;
  padding-bottom: 140%;
  overflow: hidden;
}

.magazine-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magazine-info {
  padding: 0.75rem;
  text-align: center;
}

.magazine-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.magazine-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
}

.magazine-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 0.5rem;
  border: 2px solid var(--color-accent);
  background-color: var(--color-bg);
  overflow: hidden;
}

.magazine-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.magazine-modal-body {
  height: 70vh;
  overflow: hidden;
}

.magazine-modal-footer {
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.magazine-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--color-accent);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  transition: background-color 0.2s;
}

.magazine-btn:hover {
  background-color: rgba(0, 166, 81, 0.2);
}

.life-header {
  text-align: center;
  margin-bottom: 3rem;
}

.life-title {
  font-size: 2.5rem;
  color: #00a651;
  letter-spacing: 2px;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #00a651;
}

.no-magazines-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  border: 2px solid #00a651;
  border-radius: 0.5rem;
  background: rgba(26, 26, 26, 0.7);
  box-shadow: 4px 4px 0px #00a651;
}

.no-magazines-message {
  color: #999;
  font-size: 1.1rem;
  text-align: center;
}

/* ============================================ */
/* 11. TAB NAVIGATION                         */
/* ============================================ */

.nav-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(107, 114, 128, 0.7);
  margin-bottom: 2rem;
}

.nav-tab {
  position: relative;
  padding: 1rem 1.5rem;
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
  color: #999;
  transition: color 0.3s ease;
}

.nav-tab.active, .nav-tab:hover {
  color: #00a651;
}

.nav-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #00a651;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-tab.active::after, .nav-tab:hover::after {
  transform: scaleX(1);
}

/* ============================================ */
/* 12. DRUM MACHINE STYLES                    */
/* ============================================ */

.drum-controls-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.drum-section {
  animation: fadeIn 0.4s ease-out;
}

.drum-param-slider {
  accent-color: #00a651;
  cursor: pointer;
}

.drum-param-slider::-webkit-slider-thumb {
  cursor: pointer;
}

.drum-param-slider::-moz-range-thumb {
  cursor: pointer;
}

.drum-effect-toggle {
  transition: all 0.2s ease;
}

.drum-effect-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px #00a651;
}

.drum-effect-toggle.active {
  background: #00a651 !important;
  color: #1a1a1a !important;
  font-weight: bold;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.drum-instrument-controls {
  transition: all 0.3s ease;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.drum-instrument-controls.active {
  opacity: 1;
  max-height: 500px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.drum-step-btn[style*="--velocity-height"] {
  position: relative;
}

.drum-step-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--velocity-height);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
  border-radius: 0 0 0.25rem 0.25rem;
}

.drum-step-btn {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.drum-step-btn.playing::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle, rgba(0, 166, 81, 0.4), transparent);
  border-radius: 0.25rem;
  animation: pulse-ring 0.3s ease-out;
}

@keyframes pulse-ring {
  from {
    transform: scale(0.8);
    opacity: 1;
  }
  to {
    transform: scale(1.2);
    opacity: 0;
  }
}

button[onclick*="toggleInstrumentControls"] {
  transition: transform 0.3s ease;
}

button[onclick*="toggleInstrumentControls"]:hover {
  transform: rotate(90deg);
}

.drum-track-label {
  transition: all 0.2s ease;
}

.drum-track-label:hover {
  color: #00ff7f !important;
  transform: translateX(2px);
}

.drum-controls-grid {
  position: relative;
}

.drum-controls-grid::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #00a651, transparent);
  transform: translateY(-50%);
  opacity: 0.3;
}

.drum-section-title {
  position: relative;
  display: inline-block;
}

.drum-section-title::before,
.drum-section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, transparent, #00a651);
  transform: translateY(-50%);
}

.drum-section-title::before {
  right: 100%;
  margin-right: 1rem;
}

.drum-section-title::after {
  left: 100%;
  margin-left: 1rem;
  background: linear-gradient(to left, transparent, #00a651);
}

.drum-preset-btn {
  position: relative;
  overflow: hidden;
}

.drum-preset-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 166, 81, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.drum-preset-btn:hover::before {
  width: 100%;
  height: 100%;
}

.drum-config-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.3);
}

/* ============================================ */
/* 13. LOADING STATES & ANIMATIONS           */
/* ============================================ */

.text-center.py-8 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  min-height: 200px;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ============================================ */
/* 14. CHART CUSTOMIZATION                    */
/* ============================================ */

.recharts-cartesian-grid line {
  stroke: rgba(224, 224, 224, 0.1);
}

.recharts-text {
  fill: var(--color-text);
}

.recharts-default-tooltip {
  background-color: var(--color-bg) !important;
  border-color: var(--color-accent) !important;
}

/* ============================================ */
/* 15. RESPONSIVE BREAKPOINTS                 */
/* ============================================ */

@media (max-width: 1024px) {
  .drum-controls-wrapper {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .drum-section {
    padding: 1.25rem !important;
  }
  
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .drum-section {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .drum-controls-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  
  .drum-param-label {
    min-width: 100px;
    font-size: 0.75rem;
  }
  
  .drum-param-value {
    font-size: 0.75rem;
  }
  
  .drum-section-title {
    font-size: 1rem;
  }
  
  .drum-section-title::before,
  .drum-section-title::after {
    width: 30px;
  }
  
  .drum-instrument-controls {
    padding: 0.75rem !important;
  }
  
  .drum-instrument-controls > div {
    grid-template-columns: 1fr !important;
  }
  
  .drum-step-btn {
    min-height: 35px;
    min-width: 35px;
  }
  
  .drum-step-4n {
    margin-left: 0.25rem !important;
  }
  
  .discord-hover-box .discord-logo-container,
  .spotify-hover-box .spotify-logo-container,
  .instagram-hover-box .instagram-logo-container,
  .youtube-hover-box .youtube-logo-container {
    width: 12px;
    height: 12px;
    top: 0.75rem;
    right: 0.75rem;
  }
  
  .discord-hover-box .discord-join-text,
  .spotify-hover-box .spotify-visit-text,
  .instagram-hover-box .instagram-visit-text,
  .youtube-hover-box .youtube-visit-text {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: 1fr !important;
  }
  
  .stat-box {
    min-height: 120px;
  }
}

@media (max-width: 480px) {
  .drum-track-label {
    font-size: 0.7rem !important;
    padding-right: 0.25rem !important;
  }
  
  .drum-control-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
  }
  
  .drum-preset-btn {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.7rem !important;
  }
}

/* Landscape mode optimizations */
@media (orientation: landscape) and (max-height: 600px) {
  header {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .nav-slider-item {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
  }
  
  .nav-container {
    margin-bottom: 1rem;
  }
}

/* Tablet portrait mode */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .nav-slider {
    gap: 0;
  }
  
  .nav-slider-item {
    font-size: 1rem;
  }
}

/* ============================================ */
/* 16. ACCESSIBILITY & SPECIAL MODES          */
/* ============================================ */

.drum-step-btn:focus,
.drum-control-btn:focus,
.drum-preset-btn:focus,
.drum-effect-toggle:focus {
  outline: 2px solid #00ff7f;
  outline-offset: 2px;
}

/* ============================================ */
/* 17. PRINT STYLES                           */
/* ============================================ */

@media print {
  header,
  .nav-container {
    display: none;
  }
  
  [data-section] {
    display: block !important;
    page-break-inside: avoid;
  }
  
  .nav-slider {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-slider-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .nav-fade-left,
  .nav-fade-right {
    display: none;
  }
}

/* ============================================ */
/* 18. PERFORMANCE OPTIMIZATIONS              */
/* ============================================ */

.drum-step-btn,
.drum-control-btn,
.drum-effect-toggle {
  will-change: transform;
}
