/* 
 * The Oracle - Phoebe Philo Aesthetic
 * Minimal. Refined. Quietly confident.
 */

:root {
  /* Color Palette - Céline-inspired neutrals */
  --bg-primary: #faf9f7;
  --bg-secondary: #f5f4f2;
  --bg-accent: #ebe9e5;
  
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;
  
  --accent: #1a1a1a;
  --accent-hover: #333;
  --border: #e5e4e2;
  --border-dark: #d1d0ce;
  
  /* Typography */
  --font-display: 'EB Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Transitions */
  --transition: 200ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-style: italic;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

p {
  color: var(--text-secondary);
  max-width: 55ch;
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

a:hover {
  border-bottom-color: currentColor;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: none;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: var(--space-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-bottom: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
}

/* Cards */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: var(--space-md);
  transition: border-color var(--transition);
}

.card:hover {
  border-color: var(--border-dark);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Oracle Response - the signature element */
.oracle-response {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: var(--space-sm) 0;
  max-height: 400px;
  overflow-y: auto;
}

.oracle-response p {
  font-family: var(--font-body);
  color: var(--text-primary);
  max-width: none;
  margin-bottom: var(--space-sm);
}

.oracle-response p:last-child {
  margin-bottom: 0;
}

.oracle-response--compact {
  font-size: 1rem;
  max-height: 250px;
  padding: var(--space-sm) 0;
}

/* Context Summary - styled display */
.context-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.context-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.context-value {
  color: var(--text-primary);
}

/* Outfit Visual Grid */
.outfit-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: var(--space-md) 0;
}

.outfit-visual-item {
  aspect-ratio: 3/4;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.outfit-visual-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outfit-visual-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(250,249,247,0.95));
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.form-input,
.form-textarea,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input[type="file"] {
  padding: 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

input[type="file"]::file-selector-button:hover {
  background: var(--bg-accent);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8a8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

.form-textarea,
textarea {
  min-height: 100px;
  resize: vertical;
}

/* Dashboard */
.dashboard {
  padding-top: 80px;
  min-height: 100vh;
}

.dashboard-header {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-header h1 {
  font-size: 2rem;
  margin-top: var(--space-xs);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}

.dashboard-section {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-section:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Wardrobe Grid */
.wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.wardrobe-item {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg-primary);
  overflow: hidden;
}

.wardrobe-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.wardrobe-item:hover img {
  transform: scale(1.02);
}

.wardrobe-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(250,249,247,0.95));
  transform: translateY(0);
  opacity: 0;
  transition: opacity var(--transition);
}

.wardrobe-item:hover .wardrobe-item-info {
  opacity: 1;
}

.wardrobe-item-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.wardrobe-item-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Empty wardrobe item placeholder */
.wardrobe-item--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.wardrobe-item--empty span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Philosophy Section */
.philosophy {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  text-align: center;
}

.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto var(--space-md);
}

/* Process Steps */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

.process-step {
  background: var(--bg-primary);
  padding: var(--space-lg);
}

.process-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.process-step h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.process-step p {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .process {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin: 0 auto;
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  animation: fadeIn 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
