/* Concept 2: The Garden
   A digital garden where ideas grow and connect */

:root {
  --color-bg: #F5F0E8;
  --color-bg-pattern: #EDE7DC;
  --color-text: #3B3832;
  --color-text-muted: #7A756C;
  --color-accent-green: #5A7C65;
  --color-accent-green-light: #8AAB8F;
  --color-accent-earth: #9B7B5C;
  --color-accent-sage: #A8B8A0;
  --color-accent-moss: #4A5E4A;
  --color-line: rgba(90, 124, 101, 0.25);
  --color-node-bg: #FFFFFF;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(168, 184, 160, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(155, 123, 92, 0.2) 0%, transparent 25%),
    radial-gradient(circle at 50% 90%, rgba(90, 124, 101, 0.15) 0%, transparent 35%);
}

/* Organic paper texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 20px;
}

.header h1 {
  font-family: var(--font-hand);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-accent-moss);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.subtitle {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Garden container */
.garden-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.garden-svg {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 4 / 3;
}

/* Connection lines */
.connection-line {
  stroke: var(--color-line);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 4;
  opacity: 0.6;
}

/* Nodes */
.node {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.node:hover {
  transform: scale(1.08);
}

.node-circle {
  fill: var(--color-node-bg);
  stroke-width: 3;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: stroke-width 0.2s;
}

.node:hover .node-circle {
  stroke-width: 4;
}

.node-label {
  font-family: var(--font-hand);
  font-size: 15px;
  fill: var(--color-text);
  text-anchor: middle;
  pointer-events: none;
}

.node-emoji {
  font-size: 24px;
  text-anchor: middle;
  pointer-events: none;
}

/* Preview panel */
.preview-panel {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-node-bg);
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  max-width: 400px;
  width: calc(100% - 48px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

.preview-panel.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

.preview-content {
  text-align: center;
}

.preview-title {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--color-accent-moss);
  margin-bottom: 6px;
}

.preview-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Footer */
.footer {
  margin-top: 20px;
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer a {
  color: var(--color-accent-green);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--color-accent-moss);
}

.dot {
  width: 4px;
  height: 4px;
  background: var(--color-text-muted);
  border-radius: 50%;
  opacity: 0.5;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .header h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .garden-svg {
    aspect-ratio: 3 / 4;
  }

  .preview-panel {
    padding: 16px 20px;
  }

  .preview-title {
    font-size: 1.3rem;
  }
}
