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

/* 
 * ESTUDIO // Alta Construcción y Reformas
 * Delicate React-App Inspired Obsidian System
 */

:root {
  --canvas: #0A0A0C;
  --card: rgba(18, 18, 22, 0.75);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(197, 168, 128, 0.35);
  --champagne: #C5A880;
  --champagne-light: #E0CAA8;
  --text-primary: #F3F1EC;
  --text-secondary: #9B968E;
  --text-muted: #6E6A63;
}

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

/* Delicate 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(197, 168, 128, 0.4);
}

/* React-App Soft Card Surfaces */
.soft-glass-card {
  background: rgba(18, 18, 22, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.soft-glass-card:hover {
  background: rgba(22, 22, 28, 0.85);
  border-color: rgba(197, 168, 128, 0.32);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.65), 0 0 24px -4px rgba(197, 168, 128, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

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

/* Delicate Champagne Accent Button */
.btn-delicate-champagne {
  background: linear-gradient(135deg, #D4AF37 0%, #C5A880 50%, #A88950 100%);
  color: #0A0A0C;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(197, 168, 128, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-delicate-champagne:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(197, 168, 128, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.04);
}

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

.btn-delicate-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(197, 168, 128, 0.4);
  color: #F3F1EC;
  transform: translateY(-1px);
}

/* React-App Segmented Control Tabs */
.segmented-track {
  background: rgba(10, 10, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  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(197, 168, 128, 0.45);
  color: #F3F1EC;
  box-shadow: 0 2px 10px 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 34s linear infinite;
}

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

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

/* Delicate Slim Slider */
input[type=range].delicate-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  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: #C5A880;
  cursor: pointer;
  border: 2px solid #0A0A0C;
  box-shadow: 0 0 12px rgba(197, 168, 128, 0.5);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

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

input[type=range].delicate-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #C5A880;
  cursor: pointer;
  border: 2px solid #0A0A0C;
  box-shadow: 0 0 12px rgba(197, 168, 128, 0.5);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

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

/* Smooth curtain slider handle */
.slider-handle-glow {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 12px rgba(197, 168, 128, 0.35);
}
