@tailwind base;
@tailwind components;
@tailwind utilities;

/* 
 * EJIDO CRISTAL DECORACIÓN // Alta Arquitectura en Vidrio
 * Mediterranean Glass & Precision Engineering System
 * El Ejido · Almería
 */

:root {
  --canvas: #090B0E;
  --card: rgba(14, 18, 25, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);
  --cyan-accent: #38BDF8;
  --cyan-light: #BAE6FD;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
}

body {
  background-color: #090B0E;
  color: #F8FAFC;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Delicate Glass Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.4);
}

/* Studio-Grade Soft Glass Surfaces */
.soft-glass-card {
  background: rgba(14, 18, 26, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.soft-glass-card:hover {
  background: rgba(18, 24, 35, 0.85);
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.65), 0 0 24px -4px rgba(56, 189, 248, 0.12), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Floating Navbar Glass Dock */
.nav-floating-dock {
  background: rgba(11, 15, 22, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Mediterranean Crystal Cyan Primary Button */
.btn-delicate-cyan {
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 50%, #0284C7 100%);
  color: #06111C;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-delicate-cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: brightness(1.06);
}

/* Subtle Secondary Glass Button */
.btn-delicate-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  transition: all 0.25s ease;
}

.btn-delicate-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Segmented Control Tabs */
.segmented-track {
  background: rgba(9, 13, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4px;
  border-radius: 14px;
}

.segmented-item {
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.segmented-item.active {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #F8FAFC;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Infinite Marquee Styles */
.marquee-container {
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

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

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Range Slider */
input[type=range].delicate-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  outline: none;
  transition: background 0.2s;
}

input[type=range].delicate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38BDF8;
  cursor: pointer;
  border: 2px solid #090B0E;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

input[type=range].delicate-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  background: #7DD3FC;
}

input[type=range].delicate-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38BDF8;
  cursor: pointer;
  border: 2px solid #090B0E;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

input[type=range].delicate-slider::-moz-range-thumb:hover {
  transform: scale(1.18);
  background: #7DD3FC;
}

/* Curtain slider handle */
.slider-handle-glow {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.85), 0 0 14px rgba(56, 189, 248, 0.4);
}
