
/* =============================================
   Bootstrap color overrides
   ============================================= */
:root {
  --bs-primary: #8b1a4a;
  --bs-primary-rgb: 139, 26, 74;
  --bs-link-color: #8b1a4a;
  --bs-link-hover-color: #3d0a28;
}

.btn-primary {
  --bs-btn-bg: #8b1a4a;
  --bs-btn-border-color: #8b1a4a;
  --bs-btn-hover-bg: #3d0a28;
  --bs-btn-hover-border-color: #3d0a28;
  --bs-btn-active-bg: #3d0a28;
  --bs-btn-active-border-color: #3d0a28;
  --bs-btn-focus-shadow-rgb: 139, 26, 74;
}

.btn-outline-primary {
  --bs-btn-color: #8b1a4a;
  --bs-btn-border-color: #8b1a4a;
  --bs-btn-hover-bg: #8b1a4a;
  --bs-btn-hover-border-color: #8b1a4a;
  --bs-btn-active-bg: #3d0a28;
  --bs-btn-active-border-color: #3d0a28;
}

/* =============================================
   Typography
   ============================================= */
body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  margin: 0;
  background-color: #fdf9f5;
  background-image: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* =============================================
   Navigation
   ============================================= */
.site-nav {
  background-color: #ede7df !important;
}

.site-nav .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: #8b1a4a !important;
}

.site-nav .nav-link {
  color: #8b1a4a !important;
}

.site-nav .nav-link.active {
  color: #3d0a28 !important;
  font-weight: 700;
}

.site-nav .dropdown-menu {
  background-color: #ede7df;
  border: 1px solid rgba(139, 26, 74, 0.15);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(139, 26, 74, 0.1);
  padding: 6px;
}

.site-nav .dropdown-item {
  color: #8b1a4a;
  border-radius: 6px;
  font-size: 0.9rem;
}

.site-nav .dropdown-item:hover {
  background-color: rgba(139, 26, 74, 0.08);
  color: #3d0a28;
}

/* =============================================
   Pin Board (masonry grid)
   ============================================= */
.pin-board {
  column-count: 3;
  column-gap: 20px;
  margin-top: 30px;
  color: black;
}

.pin-user {
  color: #8b1a4a;
}

.pin-card {
  display: inline-block;
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  break-inside: avoid;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 26, 74, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(139, 26, 74, 0.25);
}

.pin-image {
  width: 100%;
  height: auto;
  display: block;
}

.pin-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, transparent 100%);
  border-radius: 0 0 20px 20px;
}

.pin-overlay .pin-headline,
.pin-overlay .pin-user {
  color: white;
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pin-view-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pin-card:hover .pin-view-link {
  opacity: 1;
  transform: translateY(0);
}

.pin-headline {
  color: #8b1a4a;
}

.pin-card.small .pin-image {
  height: 220px;
  object-fit: cover;
}

.pin-card.medium .pin-image {
  height: 320px;
  object-fit: cover;
}

.pin-card.tall .pin-image {
  height: 440px;
  object-fit: cover;
}

/* =============================================
   Floating Action Button
   ============================================= */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #8b1a4a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(139, 26, 74, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(139, 26, 74, 0.55);
  color: white;
}

/* =============================================
   Inspiration loading overlay
   ============================================= */
.inspo-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #ede7df, #f5eee8, #fdf9f5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.inspo-loading-inner {
  text-align: center;
  padding: 40px;
}

.inspo-loading-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.inspo-loading-dots span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #8b1a4a;
  animation: inspo-bounce 1.2s ease-in-out infinite;
}

.inspo-loading-dots span:nth-child(1) { animation-delay: 0s; }
.inspo-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.inspo-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes inspo-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1.2); opacity: 1; }
}

.inspo-loading-message {
  font-size: 1.2rem;
  color: #8b1a4a;
  font-style: italic;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
  max-width: 560px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .inspo-loading-inner {
    padding: 24px 20px;
  }

  .inspo-loading-message {
    font-size: 0.95rem;
    max-width: 100%;
    letter-spacing: 0;
  }
}

/* =============================================
   Inspiration page
   ============================================= */
.inspiration-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.inspiration-header {
  margin-bottom: 28px;
}

.inspiration-title {
  font-size: 2rem;
  font-weight: 700;
  color: #3d0a28;
  margin-bottom: 6px;
}

.inspiration-style-echo {
  color: #8b1a4a;
  font-size: 0.9rem;
  opacity: 0.8;
}

.inspiration-form {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #e8ddd8;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 36px;
  backdrop-filter: blur(4px);
}

.inspiration-context-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

@media (max-width: 640px) {
  .inspiration-context-row {
    grid-template-columns: 1fr;
  }
}

.inspiration-select-group label {
  display: block;
  margin-bottom: 6px;
}

/* =============================================
   Inspiration cards
   ============================================= */
.inspo-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.inspo-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(139, 26, 74, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.inspo-regen-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

.inspo-regen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  color: #c9956a;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  padding: 0;
}

.inspo-card:hover .inspo-regen-btn {
  opacity: 1;
}

.inspo-regen-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #8b1a4a;
}

@media (hover: none) {
  .inspo-regen-btn {
    opacity: 1;
  }
}

.inspo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 26, 74, 0.18);
}

.inspo-palette-bar {
  display: flex;
  height: 8px;
}

.inspo-swatch {
  flex: 1;
}

.inspo-body {
  padding: 20px;
}

.inspo-reference {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9956a;
  opacity: 0.85;
  margin-bottom: 6px;
  font-style: italic;
}

.inspo-concept-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3d0a28;
  margin-bottom: 10px;
  line-height: 1.2;
}

.inspo-description {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 14px;
}

.inspo-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.inspo-piece-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #f5eee8;
  border: 1px solid #e8ddd8;
  color: #8b1a4a;
  font-size: 0.78rem;
}

.inspo-timeless-note {
  font-size: 0.8rem;
  color: #777;
  font-style: italic;
  border-top: 1px solid #e8ddd8;
  padding-top: 12px;
  margin-bottom: 0;
}

.inspo-card--pinned {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.inspo-pinned-message {
  color: #8b1a4a;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
  text-align: center;
}

.inspo-pin-btn {
  background-color: #8b1a4a;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  width: 100%;
  transition: background-color 0.15s;
}

.inspo-pin-btn:hover {
  background-color: #3d0a28;
  color: white;
}

.inspo-unpin-btn {
  background-color: transparent;
  color: #999;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  width: 100%;
  transition: color 0.15s, border-color 0.15s;
}

.inspo-unpin-btn:hover {
  color: #c9956a;
  border-color: #c9956a;
}

.inspo-empty {
  background: #f5eee8;
  border: 1px dashed #e8ddd8;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: #666;
}

/* =============================================
   About page
   ============================================= */
.about-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.about-hero {
  margin-bottom: 64px;
}

.about-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.about-headline-primary {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 5rem;
  color: #3d0a28;
  line-height: 1.05;
  display: block;
}

.about-headline-secondary {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  color: #8b1a4a;
  letter-spacing: 0.01em;
  display: block;
  padding-left: 3px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.about-lead {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #3d0a28;
  line-height: 1.7;
  margin: 0;
}

.about-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #666;
  line-height: 1.9;
  margin: 0;
}

.about-tenets {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid #8b1a4a;
  padding-left: 20px;
}

.about-tenets span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b1a4a;
}

.about-everyone {
  margin: 0;
}

.about-everyone > p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #3d0a28;
  margin-bottom: 16px;
}

.about-everyone-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.about-everyone-list li {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: #555;
  padding: 12px 0;
  border-top: 1px solid rgba(139, 26, 74, 0.15);
  line-height: 1.4;
}

.about-everyone-list li:last-child {
  border-bottom: 1px solid rgba(139, 26, 74, 0.15);
}

.about-cta {
  padding-top: 8px;
}

.about-cta-btn {
  border-radius: 999px;
  padding: 12px 36px;
}

@media (max-width: 600px) {
  .about-headline-primary {
    font-size: 3.2rem;
  }

  .about-headline-secondary {
    font-size: 1.2rem;
  }
}

/* =============================================
   Forms
   ============================================= */
.outfit-form-wrap {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px;
}

fieldset {
  padding: 24px;
  background-color: transparent;
  color: black;
}

legend,
form-label.mt-4,
.photo-field-wrap {
  text-align: center;
}

button {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

input,
select {
  max-width: 400px;
}

.form-select,
.form-control,
textarea,
input,
.btn.btn-lg.btn-primary,
.btn.btn-outline-primary,
.form-check,
.form-check-input,
.form-check-label {
  background-color: transparent;
  border-color: #8b1a4a;
  color: #8b1a4a;
}

.form-control::placeholder {
  color: #8b1a4a;
  opacity: 0.7;
}

.form-check-input:checked {
  background-color: #c9956a;
  border-color: #c9956a;
}

.form-check-input:focus {
  border-color: #c9956a;
  box-shadow: 0 0 0 0.25rem rgba(201, 149, 106, 0.25);
}
