/**
 * Organic Validation Styles
 * DaVinci notebook aesthetic for variable validation display
 */

/* ==========================================================================
   MAIN CONTAINER
   ========================================================================== */
.organic-validation {
  position: relative;
  padding: 20px;
  min-height: 300px;
}

.organic-validation__sketch-layer-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.organic-validation__content {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   MISSION ILLUSTRATION (top section)
   ========================================================================== */
.organic-validation__mission {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.mission-sketch {
  flex-shrink: 0;
  width: 200px;
  height: 100px;
}

.mission-sketch__svg {
  width: 100%;
  height: 100%;
  color: var(--planning-ink, #3a3530);
}

.mission-sketch__label {
  font-family: 'Caveat', cursive;
  font-size: 14px;
  fill: var(--planning-ink, #3a3530);
}

.mission-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mission-summary__precision {
  font-size: 20px;
  font-weight: 600;
  color: var(--planning-ink-bold, #1a1510);
}

.mission-summary__variables {
  font-size: 16px;
  color: var(--planning-ink, #3a3530);
  opacity: 0.8;
}

/* ==========================================================================
   DOMAIN CLUSTERS (compositional layout)
   ========================================================================== */
.organic-validation__clusters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 20px 10px;
}

.organic-validation__cluster {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  border-left: 3px solid var(--accent-color, #3a3530);
}

/* Compositional positioning - each domain gets its own column */
.cluster--top-left {
  grid-column: 1;
}

.cluster--top-right {
  grid-column: 2;
}

.cluster--bottom-left {
  grid-column: 3;
}

.cluster--bottom-right {
  grid-column: 4;
}

/* Responsive: 2 columns on medium, 1 on small */
@media (max-width: 900px) {
  .organic-validation__clusters {
    grid-template-columns: 1fr 1fr;
  }
  .cluster--bottom-left { grid-column: 1; }
  .cluster--bottom-right { grid-column: 2; }
}

@media (max-width: 500px) {
  .organic-validation__clusters {
    grid-template-columns: 1fr;
  }
  .cluster--top-left,
  .cluster--top-right,
  .cluster--bottom-left,
  .cluster--bottom-right {
    grid-column: 1;
  }
}

/* ==========================================================================
   CLUSTER HEADER
   ========================================================================== */
.cluster__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(58, 53, 48, 0.2);
}

.cluster__icon {
  font-size: 18px;
}

.cluster__label {
  font-size: 18px;
  font-weight: 600;
  color: var(--planning-ink-bold, #1a1510);
}

.cluster__count {
  font-size: 14px;
  opacity: 0.6;
  margin-left: auto;
}

/* ==========================================================================
   VARIABLE CARDS
   ========================================================================== */
.cluster__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variable-card {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-left: 2px solid var(--accent-color, #3a3530);
}

.variable-card:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.variable-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--planning-ink-bold, #1a1510);
  margin-bottom: 4px;
}

.variable-card__impact {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.variable-card__ratio {
  font-weight: 600;
}

.variable-card__budget {
  opacity: 0.7;
}

/* "And X more" note */
.cluster__more {
  font-size: 14px;
  font-style: italic;
  opacity: 0.6;
  padding: 6px 0;
  text-align: center;
}

/* ==========================================================================
   MINIMAL MISSION (no variables)
   ========================================================================== */
.organic-validation__minimal {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  text-align: center;
  justify-content: center;
}

.minimal__icon {
  font-size: 48px;
  color: #059669;
  opacity: 0.8;
}

.minimal__message {
  font-size: 18px;
  line-height: 1.6;
  color: var(--planning-ink, #3a3530);
}

.minimal__message em {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  opacity: 0.7;
}

/* ==========================================================================
   TILT CLASSES (organic imperfection)
   ========================================================================== */
.tilt-slight-left {
  transform: rotate(-0.5deg);
}

.tilt-slight-right {
  transform: rotate(0.5deg);
}

.tilt-natural {
  transform: rotate(-0.3deg);
}

/* ==========================================================================
   HANDWRITING FONT
   ========================================================================== */
.handwriting {
  font-family: 'Caveat', 'Patrick Hand', cursive;
}
