/* NIFIXY MEDIA - DESIGN SYSTEM STYLES */

/* Design Tokens & Colors */
:root {
  --midnight-black: #0B0D12;
  --deep-navy: #081120;
  --premium-gold: #D4AF37;
  --nifixy-red: #FF2A2A;
  --soft-white: #FAFAFA;
  --charcoal: #1F2937;
  --outline: #46464b;
  --outline-variant: rgba(144, 144, 149, 0.15);
  --font-serif: 'EB Garamond', serif;
  --font-sans: 'Hanken Grotesk', sans-serif;
}

/* Global Reset & Typography Overrides */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--midnight-black);
  color: var(--soft-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--midnight-black);
}
::-webkit-scrollbar-thumb {
  background: var(--charcoal);
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--premium-gold);
}

/* Base Headings & Hierarchy */
h1, h2, h3, .font-serif-masthead {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Strict Sharp Edges Policy (Except minor utility tags) */
button, input, select, textarea, div, img, section, nav, footer, a {
  border-radius: 0px !important;
}

.rounded-tag {
  border-radius: 2px !important;
}

/* Vignettes & Overlays */
.scrim-bottom {
  background: linear-gradient(to top, rgba(11, 13, 18, 0.95) 0%, rgba(11, 13, 18, 0.4) 50%, rgba(11, 13, 18, 0) 100%);
}

.scrim-full {
  background: radial-gradient(circle at center, rgba(11, 13, 18, 0.3) 0%, rgba(11, 13, 18, 0.85) 100%);
}

.editorial-overlay {
  background: linear-gradient(0deg, rgba(11, 13, 18, 1) 0%, rgba(11, 13, 18, 0.5) 60%, rgba(11, 13, 18, 0) 100%);
}

/* Glassmorphism */
.glass-header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(11, 13, 18, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: rgba(22, 27, 34, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--outline-variant);
}

/* Marquee Animations (Celebrity Wall) */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 45s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Custom Interactive Gold Trophy Container */
#trophy-canvas-container {
  width: 100%;
  height: 500px;
  position: relative;
  cursor: grab;
}

#trophy-canvas-container:active {
  cursor: grabbing;
}

/* Animated Particles Background */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.6;
}

/* Primary Button Slide-In Effect */
.btn-primary-nifixy {
  background-color: var(--nifixy-red);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-nifixy::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #000000;
  transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: -1;
}

.btn-primary-nifixy:hover::before {
  left: 0;
}

.btn-primary-nifixy:hover {
  transform: scale(1.02);
}

/* Gold Outline Button */
.btn-gold-outline {
  border: 1px solid var(--premium-gold);
  color: var(--premium-gold);
  transition: all 0.4s ease;
}

.btn-gold-outline:hover {
  background-color: var(--premium-gold);
  color: #000000;
  transform: scale(1.02);
}

/* White Outline Button */
.btn-white-outline {
  border: 1px solid var(--soft-white);
  color: var(--soft-white);
  transition: all 0.4s ease;
}

.btn-white-outline:hover {
  background-color: var(--soft-white);
  color: #000000;
  transform: scale(1.02);
}

/* Nav Underline Effect */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--premium-gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link-active::after {
  width: 100%;
  background-color: var(--nifixy-red);
}

/* Card Tilt & Scaling interactions */
.editorial-card {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--outline-variant);
  background-color: #12141C;
}

.editorial-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--premium-gold);
}

/* Asymmetric Divider Grid (Newspaper Style) */
.newspaper-grid {
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.newspaper-col {
  border-right: 1px solid var(--outline-variant);
}

.newspaper-col:last-child {
  border-right: none;
}

/* Custom Transitions for View Swapping */
.view-section {
  display: none;
  opacity: 0;
}

.view-section.active-view {
  display: block;
  opacity: 1;
}

/* Responsive Gaps */
.section-gap-v {
  margin-top: 120px;
  margin-bottom: 120px;
}

@media (max-w: 768px) {
  .section-gap-v {
    margin-top: 64px;
    margin-bottom: 64px;
  }
}
