/**
 * StyleyeS v1.8 — Base Styles
 * Reset, Typography, and Foundation
 */

/* Box Sizing & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Root HTML */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  background: var(--bg);
}

/* Body */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--t1);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: rgba(220, 47, 90, 0.3);
  color: var(--t1);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
}

/* Links */
a {
  color: var(--c2);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c1);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--t1);
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 0.85rem;
}

/* Paragraph */
p {
  color: var(--t2);
}

/* Labels */
label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

/* Inputs */
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

input[type="text"],
select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--t1);
  outline: none;
  transition: all 0.2s ease;
}

input[type="text"]::placeholder {
  color: var(--t3);
}

input[type="text"]:focus,
select:focus {
  border-color: var(--c1);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* Multi-line Subject Input (Textarea) */
.subject-input {
  width: 100%;
  min-height: 80px;
  max-height: 200px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--t1);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subject-input:focus {
  border-color: var(--c1);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.subject-input::placeholder {
  color: var(--t3);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b98a5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Range Input */
input[type="range"] {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--gradient);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--gradient);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

/* Buttons Base */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--t3);
}

/* Utility Classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
