/* ===================================================
   Opra.eu – Shared Styles
   =================================================== */

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 120px;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: #020617;
  color: #f8fafc;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.glass {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.glow-border:hover {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
}

/* ===================================================
   Animations
   =================================================== */

@keyframes opra-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes opra-slide-in-from-bottom-4 {
  from { transform: translate3d(0, 1rem, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

@keyframes opra-zoom-in-95 {
  from { transform: scale(0.95); }
  to   { transform: scale(1); }
}

/* Modal animations */
@keyframes modal-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-panel-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-in {
  animation-duration: var(--animate-duration, 700ms);
  animation-timing-function: ease-out;
  animation-fill-mode: both;
  animation-name: var(--animate-name, opra-fade-in);
}

.fade-in {
  --animate-name: opra-fade-in;
}

.slide-in-from-bottom-4 {
  --animate-name: opra-fade-in, opra-slide-in-from-bottom-4;
  animation-duration: var(--animate-duration, 700ms), var(--animate-duration, 700ms);
}

.zoom-in-95 {
  --animate-name: opra-fade-in, opra-zoom-in-95;
  animation-duration: var(--animate-duration, 300ms), var(--animate-duration, 300ms);
}

.duration-300 { --animate-duration: 300ms; }
.duration-500 { --animate-duration: 500ms; }
.duration-700 { --animate-duration: 700ms; }

/* ===================================================
   WIP Modal
   =================================================== */

#wip-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  animation: modal-overlay-in 250ms ease-out both;
}

#wip-modal-overlay.hidden {
  display: none;
}

#wip-modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, rgba(15,23,42,0.98) 0%, rgba(30,12,60,0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.1),
    0 25px 80px -12px rgba(99, 102, 241, 0.3),
    0 0 120px -20px rgba(168, 85, 247, 0.2);
  animation: modal-panel-in 300ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 60ms;
}

#wip-modal-panel .wip-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(168,85,247,0.2) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 32px rgba(99,102,241,0.25);
}

#wip-modal-panel .wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

#wip-modal-panel h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

#wip-modal-panel p {
  font-size: 0.925rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

#wip-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

#wip-modal-close:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(99,102,241,0.45);
}

#wip-modal-close:active {
  transform: scale(0.97);
}

/* Close X button */
#wip-modal-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 150ms;
  line-height: 1;
}

#wip-modal-x:hover {
  background: rgba(255,255,255,0.12);
  color: #f8fafc;
}

/* ===================================================
   Cookie Banner
   =================================================== */

@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes cookie-slide-down {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 0 1rem 1rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease;
  pointer-events: none;
}

#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#cookie-banner.cookie-banner--hiding {
  animation: cookie-slide-down 380ms ease forwards;
  pointer-events: none;
}

#cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 1rem;
  box-shadow:
    0 -4px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(99,102,241,0.08);
}

#cookie-banner-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

#cookie-banner-text {
  flex: 1;
  min-width: 0;
}

#cookie-banner-text strong {
  display: block;
  color: #f1f5f9;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

#cookie-banner-text p {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

#cookie-banner-text p strong {
  display: inline;
  color: #c7d2fe;
  font-weight: 600;
}

#cookie-banner-accept {
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(99,102,241,0.3);
}

#cookie-banner-accept:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 18px rgba(99,102,241,0.45);
}

#cookie-banner-accept:active {
  transform: scale(0.97);
}

@media (max-width: 600px) {
  #cookie-banner-inner {
    flex-wrap: wrap;
  }
  #cookie-banner-accept {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }
}
