/* ═══════════════════════════════════════════════════════════════
   RE:BELLE™ Media — Brand Override
   "The Art of Feeling. Amplified."
   ═══════════════════════════════════════════════════════════════ */

/* ── Color Strategy ────────────────────────────────────────────
   Fuchsia Fedora   #C62A88  – Brand-Spannung, Headlines, Glow
   Calypso Coral    #E8604C  – Conversion-Flächen, Karten, Highlights
   Oriole           #F7941D  – Energie, Buttons, Hover
   Quince           #E5D430  – Marker, Zahlen, Micro-Highlights
   Blue Atoll       #00B5C8  – Kontrast, Tiefe, technische Klarheit
   Schwarz/Dunkel              – Eleganz, keine Spielzeug-Optik
   ────────────────────────────────────────────────────────────── */

:root {
  /* ── Brand Palette Tokens ── */
  --rb-fuchsia:      #C62A88;
  --rb-fuchsia-glow: #C62A8840;
  --rb-coral:        #E8604C;
  --rb-coral-soft:   #E8604C22;
  --rb-oriole:       #F7941D;
  --rb-oriole-glow:  #F7941D30;
  --rb-quince:       #E5D430;
  --rb-atoll:        #00B5C8;
  --rb-atoll-deep:   #008FA0;
  --rb-black:        #0A0A0A;
  --rb-dark:         #111111;
  --rb-dark-card:    #151515;
  --rb-dark-muted:   #1C1C1C;
  --rb-warm-white:   #F8F0E8;
  --rb-warm-gray:    #A89B8E;

  /* ── Override Design System Variables ── */
  --background:            var(--rb-black);
  --foreground:            var(--rb-warm-white);
  --card:                  var(--rb-dark-card);
  --card-foreground:       var(--rb-warm-white);
  --popover:               var(--rb-dark-card);
  --popover-foreground:    var(--rb-warm-white);
  --primary:               var(--rb-fuchsia);
  --primary-foreground:    #ffffff;
  --secondary:             var(--rb-atoll);
  --secondary-foreground:  #ffffff;
  --muted:                 var(--rb-dark-muted);
  --muted-foreground:      var(--rb-warm-gray);
  --accent:                var(--rb-fuchsia);
  --accent-foreground:     #ffffff;
  --destructive:           var(--rb-coral);
  --destructive-foreground:#ffffff;
  --border:                rgba(255, 255, 255, 0.08);
  --input:                 rgba(255, 255, 255, 0.06);
  --ring:                  var(--rb-fuchsia);

  /* ── Chart Colors ── */
  --chart-1: var(--rb-fuchsia);
  --chart-2: var(--rb-coral);
  --chart-3: var(--rb-oriole);
  --chart-4: var(--rb-quince);
  --chart-5: var(--rb-atoll);

  /* ── Sidebar ── */
  --sidebar:                  #080808;
  --sidebar-foreground:       var(--rb-warm-white);
  --sidebar-primary:          var(--rb-fuchsia);
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent:           var(--rb-dark-muted);
  --sidebar-accent-foreground: var(--rb-warm-white);
  --sidebar-border:           rgba(255, 255, 255, 0.06);
  --sidebar-ring:             var(--rb-fuchsia);

  /* ── Radius ── */
  --radius: 0.625rem;
}

/* ── Global Overrides ──────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--rb-black) !important;
  color: var(--rb-warm-white) !important;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Selection ── */
::selection {
  background: var(--rb-fuchsia);
  color: #fff;
}

/* ── Scrollbar (Webkit) ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--rb-black);
}
::-webkit-scrollbar-thumb {
  background: var(--rb-dark-muted);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--rb-fuchsia);
}

/* ── Headlines: Fuchsia Fedora Glow ── */
h1, h2, h3 {
  color: var(--rb-warm-white);
}

/* ── Brand Script Font (Allura) ── */
.script, .font-allura {
  font-family: 'Allura', cursive !important;
  font-weight: 400;
}

/* ── Buttons: Oriole Energy ── */
button[data-slot="button"],
a[data-slot="button"],
.btn-primary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

button[data-slot="button"]:hover,
a[data-slot="button"]:hover {
  box-shadow: 0 0 20px var(--rb-oriole-glow),
              0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* ── Cards: Calypso Coral highlights ── */
[data-slot="card"],
.card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s ease;
}

[data-slot="card"]:hover,
.card:hover {
  border-color: var(--rb-coral-soft);
  box-shadow: 0 0 30px var(--rb-coral-soft),
              0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Links ── */
a {
  transition: color 0.2s ease;
}

/* ── KPI / Numbers: Quince Highlights ── */
.tabular-nums,
[class*="text-4xl"],
[class*="text-5xl"] {
  color: var(--rb-quince);
}


/* ═══════════════════════════════════════════════════════════════
   RE:BELLE™ Footer
   ═══════════════════════════════════════════════════════════════ */

.rebelle-footer {
  background: linear-gradient(180deg, var(--rb-black) 0%, #050505 100%);
  color: var(--rb-warm-white);
  padding: 5rem 1.5rem 3rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  border-top: 1px solid rgba(198, 42, 136, 0.15);
  position: relative;
  overflow: hidden;
}

.rebelle-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rb-fuchsia),
    var(--rb-coral),
    var(--rb-oriole),
    transparent
  );
}

.rebelle-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* ── Head ── */
.rebelle-head {
  margin-bottom: 3.5rem;
}

.rebelle-brand {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rb-fuchsia);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.rebelle-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 300;
  line-height: 1.4;
  margin: 0 0 1.25rem;
  color: var(--rb-warm-white);
}

.rebelle-head h2 .script {
  font-family: 'Allura', cursive;
  font-size: 1.6em;
  color: var(--rb-fuchsia);
  display: inline-block;
  margin-right: -0.05em;
  line-height: 0.8;
}

.rebelle-sub {
  font-size: 0.85rem;
  color: var(--rb-warm-gray);
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.rebelle-sub strong {
  color: var(--rb-warm-white);
  font-weight: 600;
}

/* ── Block (Partner & Projekte) ── */
.rebelle-block {
  margin-bottom: 2.5rem;
}

.rebelle-block .label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rb-warm-gray);
  margin-bottom: 1rem;
  font-weight: 500;
}

.rebelle-block .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.rebelle-block .grid a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--rb-warm-gray);
  background: var(--rb-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.rebelle-block .grid a:hover {
  color: var(--rb-warm-white);
  border-color: var(--rb-fuchsia);
  background: rgba(198, 42, 136, 0.08);
  box-shadow: 0 0 15px var(--rb-fuchsia-glow);
  transform: translateY(-1px);
}

/* ── CTA ── */
.rebelle-cta {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rebelle-cta a {
  display: inline-block;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 300;
  color: var(--rb-warm-white);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.4s ease;
  position: relative;
  padding: 0.5rem 0;
}

.rebelle-cta a .script {
  font-family: 'Allura', cursive;
  font-size: 1.6em;
  color: var(--rb-fuchsia);
  display: inline-block;
  margin-right: -0.05em;
  line-height: 0.8;
  transition: color 0.4s ease;
}

.rebelle-cta a:hover {
  color: var(--rb-fuchsia);
}

.rebelle-cta a:hover .script {
  color: var(--rb-oriole);
  text-shadow: 0 0 20px var(--rb-oriole-glow);
}

.rebelle-cta a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--rb-fuchsia), var(--rb-oriole));
  transition: width 0.4s ease;
}

.rebelle-cta a:hover::after {
  width: 100%;
}

/* ── Footer Bottom ── */
.rebelle-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
}

.rebelle-bottom a {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color 0.3s ease;
}

.rebelle-bottom a:hover {
  color: var(--rb-fuchsia);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .rebelle-footer {
    padding: 3.5rem 1rem 2rem;
  }

  .rebelle-block .grid {
    gap: 0.4rem;
  }

  .rebelle-block .grid a {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Animations & Polish
   ═══════════════════════════════════════════════════════════════ */

@keyframes rebelle-glow {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

@keyframes rebelle-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rebelle-head,
.rebelle-block,
.rebelle-cta {
  animation: rebelle-slide-up 0.6s ease both;
}

.rebelle-block:nth-child(3) {
  animation-delay: 0.1s;
}

.rebelle-block:nth-child(4) {
  animation-delay: 0.2s;
}

.rebelle-cta {
  animation-delay: 0.3s;
}

/* ── Brand Glow Effect on Primary Elements ── */
[data-active="true"],
[data-state="active"],
[aria-selected="true"] {
  box-shadow: 0 0 12px var(--rb-fuchsia-glow) !important;
}

/* ── Progress bars / completion ── */
[role="progressbar"] > div,
.progress-fill {
  background: linear-gradient(90deg, var(--rb-fuchsia), var(--rb-coral)) !important;
}

/* ── Module complete state ── */
[data-completed="true"],
.module-complete {
  border-color: var(--rb-fuchsia) !important;
}

/* ═══════════════════════════════════════════════════════════════
   App-Specific Enhancements
   ═══════════════════════════════════════════════════════════════ */

/* ── Sidebar styling ── */
[data-slot="sidebar"],
aside {
  background: #080808 !important;
  border-right-color: rgba(255, 255, 255, 0.04) !important;
}

[data-slot="sidebar-header"] {
  border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}

/* ── Active sidebar items: fuchsia accent ── */
[data-slot="sidebar-menu-button"][data-active="true"],
[data-slot="sidebar-menu-button"][aria-selected="true"] {
  background: rgba(198, 42, 136, 0.12) !important;
  color: var(--rb-warm-white) !important;
  border-left: 2px solid var(--rb-fuchsia) !important;
}

/* ── Input fields ── */
input, textarea, select {
  background: var(--rb-dark) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--rb-warm-white) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--rb-fuchsia) !important;
  box-shadow: 0 0 0 2px var(--rb-fuchsia-glow) !important;
  outline: none;
}

/* ── Tooltips ── */
[data-slot="tooltip-content"] {
  background: var(--rb-dark-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--rb-warm-white) !important;
}

/* ── Badge / Tags: Oriole energy ── */
[data-slot="badge"] {
  font-weight: 600;
}

/* ── Dialog / Modal ── */
[data-slot="dialog-overlay"] {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(8px);
}

[data-slot="dialog-content"] {
  background: var(--rb-dark) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
}

/* ── Dashboard KPIs ── */
[data-slot="card"] h3,
[data-slot="card"] .text-2xl,
[data-slot="card"] .text-3xl {
  background: linear-gradient(135deg, var(--rb-fuchsia), var(--rb-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Gradient accent line at top of page ── */
#root::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--rb-fuchsia),
    var(--rb-coral),
    var(--rb-oriole),
    var(--rb-quince),
    var(--rb-atoll)
  );
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* ── Print styles ── */
@media print {
  .rebelle-footer {
    break-before: page;
    background: white !important;
    color: #000 !important;
  }

  .rebelle-footer .rebelle-brand {
    color: #C62A88 !important;
  }

  #root::before {
    display: none;
  }

  ::-webkit-scrollbar {
    display: none;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .rebelle-head,
  .rebelle-block,
  .rebelle-cta {
    animation: none;
  }
}
