@import "tailwindcss";

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 640px) {
  .premium-card {
    padding: 1rem;
    gap: 1rem;
  }

  .premium-card .card-title {
    font-size: 1rem;
  }

  .premium-card .card-subtitle {
    font-size: 0.75rem;
  }

  .premium-card .feature-item {
    font-size: 0.75rem;
  }

  .card-button {
    font-size: 0.875rem !important;
    padding: 0.75rem 1.5rem !important;
    min-height: 40px !important;
  }

  input[type="range"] {
    height: 8px;
    cursor: pointer;
  }

  button {
    min-height: 44px;
    font-size: 0.875rem;
  }

  textarea, input[type="text"] {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 1024px) {
  body {
    font-size: 14px;
  }
}

/* ===== IMPROVED INPUT ACCESSIBILITY ===== */
input[type="range"] {
  -webkit-appearance: slider-horizontal;
  appearance: slider-horizontal;
  height: 6px;
  border-radius: 5px;
  background: linear-gradient(to right, #4f46e5, #8b5cf6);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

input[type="range"]::-moz-range-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.5);
}

/* ===== TOUCH-FRIENDLY ELEMENTS ===== */
button, a, input[type="button"], input[type="submit"] {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ===== CANVAS RESPONSIVE ===== */
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== LOADING SHIMMER ===== */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== PREMIUM CARD ===== */
.premium-card {
  --white: hsl(0, 0%, 100%);
  --black: hsl(240, 15%, 9%);
  --paragraph: hsl(0, 0%, 83%);
  --line: hsl(240, 9%, 17%);
  --primary: hsl(266, 92%, 58%);
  --primary-light: hsl(266, 95%, 75%);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background-color: rgba(15, 23, 42, 0.5);
  background-image: radial-gradient(
      at 88% 40%,
      rgba(99, 102, 241, 0.05) 0px,
      transparent 85%
    ),
    radial-gradient(at 49% 30%, rgba(139, 92, 246, 0.05) 0px, transparent 85%),
    radial-gradient(at 14% 26%, rgba(168, 85, 247, 0.05) 0px, transparent 85%),
    radial-gradient(at 0% 64%, rgba(99, 102, 241, 0.1) 0px, transparent 85%),
    radial-gradient(at 41% 94%, rgba(139, 92, 246, 0.1) 0px, transparent 85%),
    radial-gradient(at 100% 99%, rgba(168, 85, 247, 0.1) 0px, transparent 85%);

  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 1rem;
  box-shadow: 0px -16px 24px 0px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.premium-card:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0px -16px 24px 0px rgba(255, 255, 255, 0.1) inset, 
              0px 20px 40px rgba(99, 102, 241, 0.15);
}

.premium-card .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.premium-card .card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin: 0;
}

.premium-card .card-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--paragraph);
  margin: 0;
  line-height: 1.4;
}

.premium-card .card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.premium-card .card-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, transparent 100%);
  border: none;
  margin: 0;
}

.premium-card .card-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.premium-card .feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--white);
  margin: 0;
}

.premium-card .feature-check {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.25rem;
  height: 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  flex-shrink: 0;
}

.premium-card .feature-check svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: var(--black);
}

.premium-card .card-button {
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  width: 100%;
  background: linear-gradient(135deg, hsl(266, 92%, 58%) 0%, hsl(277, 95%, 65%) 100%);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  border: 0;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.premium-card .card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.premium-card .card-button:active {
  transform: translateY(0);
}

/* ===== SMOOTH TRANSITIONS ===== */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HOVER LIFT ===== */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* ===== GRADIENT BUTTON ===== */
.btn-gradient {
  background: linear-gradient(135deg, hsl(266, 92%, 58%) 0%, hsl(277, 95%, 65%) 100%);
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}
/* ===== RANGE INPUT STYLING ===== */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 12px;
  background: linear-gradient(to right, #1e293b 0%, #334155 100%);
  border-radius: 5px;
  outline: none;
  -webkit-slider-thumb-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2), 0 2px 8px rgba(79, 70, 229, 0.4);
  transition: all 0.2s ease;
  border: none;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3), 0 4px 12px rgba(79, 70, 229, 0.6);
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2), 0 2px 8px rgba(79, 70, 229, 0.4);
  transition: all 0.2s ease;
  border: none;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3), 0 4px 12px rgba(79, 70, 229, 0.6);
}

input[type="range"]::-moz-range-thumb:active {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
}

input[type="range"]::-moz-range-progress {
  background: linear-gradient(to right, #4f46e5, #7c3aed);
  height: 12px;
  border-radius: 5px;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #1e293b 0%, #334155 100%);
  height: 12px;
  border-radius: 5px;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: #334155;
  height: 12px;
  border-radius: 5px;
}