/* ==========================================================================
   CSS RESET & VARIABLES
   ========================================================================== */
:root {
  --font-base: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-display: 'Space Grotesk', var(--font-base);

  /* Trenic Theme Colors (Deep midnight indigo & icy cyan) */
  --trenic-primary: #38bdf8;
  --trenic-glow: rgba(56, 189, 248, 0.35);
  --trenic-accent: #818cf8;
  --trenic-badge-bg: rgba(56, 189, 248, 0.12);
  --trenic-border: rgba(56, 189, 248, 0.28);

  /* Máshogy Theme Colors (Burnt amber & warm flame) */
  --mashogy-primary: #f97316;
  --mashogy-glow: rgba(249, 115, 22, 0.35);
  --mashogy-accent: #fbbf24;
  --mashogy-badge-bg: rgba(249, 115, 22, 0.12);
  --mashogy-border: rgba(249, 115, 22, 0.28);

  /* Shared Neutrals */
  --bg-dark: #070709;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --text-subtle: #64748b;
  --white: #ffffff;
}

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

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-base);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   FLOATING HEADER BADGE
   ========================================================================== */
.hub-header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(13, 14, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.hub-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e;
  animation: pulse-dot 2.5s infinite ease-in-out;
}

.hub-badge-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e2e8f0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ==========================================================================
   MAIN SPLIT CONTAINER (100% VH & 50/50 HORIZONTAL SPLIT)
   ========================================================================== */
.split-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background: var(--bg-dark);
}

/* ==========================================================================
   SPLIT PANELS
   ========================================================================== */
.split-panel {
  flex: 1 1 50%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 4rem;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: flex 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease,
              transform 0.5s ease;
  z-index: 1;
}

/* Desktop Hover Interactions (Expand side to ~58% / shrink other to ~42%) */
@media (min-width: 861px) {
  .split-container:hover .split-panel {
    filter: brightness(0.6) saturate(0.75);
    flex: 1 1 42%;
  }

  .split-container .split-panel:hover {
    filter: brightness(1.05) saturate(1.15);
    flex: 1 1 58%;
    z-index: 5;
  }
}

/* Focus styles for keyboard accessibility */
.split-panel:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: -3px;
  z-index: 10;
}

/* ==========================================================================
   PANEL BACKGROUND & OVERLAYS
   ========================================================================== */
.panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  will-change: transform;
}

.split-panel:hover .panel-bg {
  transform: scale(1.08);
}

.panel-overlay {
  position: absolute;
  inset: 0;
  transition: opacity 0.5s ease;
}

/* Trenic Ambient Overlay (Atmospheric Cold Cyan & Midnight) */
.panel-trenic .panel-overlay {
  background: radial-gradient(circle at 35% 45%, rgba(14, 25, 48, 0.72) 0%, rgba(6, 11, 22, 0.92) 80%),
              linear-gradient(to top, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.6) 50%, rgba(3, 7, 18, 0.85) 100%);
}

.panel-trenic:hover .panel-overlay {
  background: radial-gradient(circle at 45% 45%, rgba(17, 34, 66, 0.62) 0%, rgba(6, 11, 22, 0.88) 80%),
              linear-gradient(to top, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.45) 50%, rgba(3, 7, 18, 0.8) 100%);
}

/* Máshogy Ambient Overlay (Warm Amber & Espresso Black) */
.panel-mashogy .panel-overlay {
  background: radial-gradient(circle at 65% 45%, rgba(36, 18, 11, 0.74) 0%, rgba(14, 11, 10, 0.92) 80%),
              linear-gradient(to top, rgba(10, 9, 8, 0.98) 0%, rgba(14, 11, 10, 0.6) 50%, rgba(10, 9, 8, 0.85) 100%);
}

.panel-mashogy:hover .panel-overlay {
  background: radial-gradient(circle at 55% 45%, rgba(54, 24, 13, 0.64) 0%, rgba(14, 11, 10, 0.88) 80%),
              linear-gradient(to top, rgba(10, 9, 8, 0.95) 0%, rgba(14, 11, 10, 0.45) 50%, rgba(10, 9, 8, 0.8) 100%);
}

/* Dynamic Cursor Spotlight (Follows mouse via JS) */
.panel-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

.split-panel:hover .panel-spotlight {
  opacity: 1;
}

/* ==========================================================================
   PANEL CONTENT
   ========================================================================== */
.panel-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-panel:hover .panel-content {
  transform: translateY(-4px);
}

/* Meta Tag & Genre Badges */
.meta-tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.panel-trenic .tag-pill {
  color: var(--trenic-primary);
  background: var(--trenic-badge-bg);
  border: 1px solid var(--trenic-border);
}

.panel-mashogy .tag-pill {
  color: var(--mashogy-primary);
  background: var(--mashogy-badge-bg);
  border: 1px solid var(--mashogy-border);
}

.tag-genre {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Title & Branding */
.title-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.band-title {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--white);
  transition: text-shadow 0.4s ease, transform 0.4s ease;
}

.font-trenic {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.font-mashogy {
  font-family: var(--font-base);
  letter-spacing: -0.04em;
}

.panel-trenic:hover .band-title {
  text-shadow: 0 0 35px var(--trenic-glow);
}

.panel-mashogy:hover .band-title {
  text-shadow: 0 0 35px var(--mashogy-glow);
}

.tagline {
  font-size: 1.05rem;
  line-height: 1.4;
  color: #cbd5e1;
  font-weight: 400;
}

.panel-mashogy .tagline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: #fbd38d;
}

/* Short Description */
.short-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 440px;
}

.short-desc strong {
  color: #f1f5f9;
  font-weight: 600;
}

/* ==========================================================================
   CALL TO ACTION BUTTON & FOOTER
   ========================================================================== */
.cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.panel-trenic .cta-button {
  background: rgba(14, 25, 48, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f0f9ff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.1);
}

.panel-trenic:hover .cta-button {
  background: var(--trenic-primary);
  border-color: var(--trenic-primary);
  color: #030712;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.panel-mashogy .cta-button {
  background: rgba(30, 16, 11, 0.8);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fff7ed;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(249, 115, 22, 0.1);
}

.panel-mashogy:hover .cta-button {
  background: var(--mashogy-primary);
  border-color: var(--mashogy-primary);
  color: #0c0a09;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.45);
  transform: translateY(-2px);
}

.arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-panel:hover .arrow-icon {
  transform: translateX(4px);
}

.sub-link {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  transition: color 0.3s ease;
}

.split-panel:hover .sub-link {
  color: var(--text-dim);
}

/* ==========================================================================
   SPLIT DIVIDER (CENTER SEPARATOR)
   ========================================================================== */
.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.divider-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 70%, transparent);
}

.divider-emblem {
  background: rgba(15, 17, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #cbd5e1;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
  transition: transform 0.5s ease, border-color 0.4s ease;
}

/* Divider subtle pulse on hover */
.split-container:hover .divider-emblem {
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET: 50/50 VERTICAL SPLIT, 100dvh)
   ========================================================================== */
@media (max-width: 860px) {
  .split-container {
    flex-direction: column;
  }

  .split-panel {
    flex: 1 1 50%;
    width: 100%;
    height: 50%;
    padding: 2.2rem 1.75rem;
    justify-content: center;
  }

  .panel-content {
    max-width: 100%;
    gap: 0.7rem;
  }

  .band-title {
    font-size: clamp(2.2rem, 6.5vw, 2.8rem);
  }

  .tagline {
    font-size: 0.88rem;
  }

  .panel-mashogy .tagline {
    font-size: 1.05rem;
  }

  .short-desc {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .cta-wrap {
    margin-top: 0.4rem;
    gap: 0.4rem;
  }

  .cta-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
  }

  .sub-link {
    font-size: 0.7rem;
  }

  /* Horizontal Divider for Mobile */
  .split-divider {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    flex-direction: row;
    width: 100%;
    height: 44px;
  }

  .divider-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 70%, transparent);
  }

  .divider-emblem {
    width: 36px;
    height: 36px;
    font-size: 0.65rem;
  }

  .hub-header {
    top: 0.8rem;
  }

  .hub-badge {
    padding: 0.4rem 0.9rem;
  }

  .hub-badge-title {
    font-size: 0.65rem;
  }
}

@media (max-height: 640px) and (orientation: landscape) {
  /* Ultra-wide / small landscape screens */
  .split-panel {
    padding: 1.5rem 2rem;
  }
  .band-title {
    font-size: 2rem;
  }
  .short-desc {
    display: none;
  }
}
