/* Primary Colors: 2-3 mains. E.g., Deep Forest Green (#2E5B3A) for animism, Warm Terracotta (#A85C3B) for vitality, Neutral Slate (#4A4E69) for post-rational depth.
Secondary/Accents: 2-4 supports. E.g., Soft Gold (#D4AF37) for epiphanies, Muted Blue (#6B8E9E) for introspection.
Neutrals: Black/White with earthy off-whites (#F2EDE4) for backgrounds.
Total: 6-8 colors max for simplicity.
 */

:root {
  /* Primary Colors */
  --color-forest-green: #2e5b3a;
  --color-terracotta: #a85c3b;
  --color-slate: #4a4e69;

  /* Secondary/Accents */
  --color-gold: #d4af37;
  --color-muted-blue: #6b8e9e;

  /* Neutrals */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-off-white: #f2ede4;

  /* Semantic Mappings */
  --bg-primary: var(--color-off-white);
  --text-primary: var(--color-slate);
  --accent-vitality: var(--color-terracotta);
  --accent-epiphany: var(--color-gold);
  --accent-animism: var(--color-forest-green);
  --accent-introspection: var(--color-muted-blue);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-forest-green);
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

button, .btn {
  background-color: var(--color-slate);
  color: var(--color-white) !important;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

button:hover, .btn:hover {
  background-color: var(--color-forest-green);
}

.text-vitality {
  color: var(--color-terracotta);
}
.text-introspection {
  color: var(--color-muted-blue);
}
.text-epiphany {
  color: var(--color-gold);
}

.bg-animism { background-color: var(--color-forest-green); color: var(--color-white); }

.bg-slate { background-color: var(--color-slate); color: var(--color-white); }



.btn-prism-diamond {

  /* Shape & Layout */

  width: 5rem;

  height: 5rem;

  display: inline-flex;

  justify-content: center;

  align-items: center;

  margin: 2rem; /* Spacing for the corners */

  transform: rotate(45deg);

  

  /* Prismatic/Gem styling */

  background: linear-gradient(135deg, var(--color-forest-green), var(--color-slate));

  border: 2px solid var(--color-off-white);

  box-shadow: 

    inset 4px 4px 0 var(--color-gold),   /* Top-left inner highlight */

    inset -4px -4px 0 var(--color-terracotta), /* Bottom-right inner shading */

    5px 5px 10px rgba(0,0,0,0.2);        /* Drop shadow */

    

  /* Typography & Interaction */

  color: var(--color-off-white);

  font-weight: bold;

  font-size: 0.9rem;

  cursor: pointer;

  transition: transform 0.2s, box-shadow 0.2s;

}



/* Counter-rotate text so it appears horizontal */

.btn-prism-diamond > span {

  transform: rotate(-45deg);

  pointer-events: none; /* Let clicks pass through to the button */

}



/* Hover State - shift slightly and brighten */

.btn-prism-diamond:hover {

  transform: rotate(45deg) translate(-2px, -2px);

  box-shadow: 

    inset 4px 4px 0 var(--color-white),

    inset -4px -4px 0 var(--color-terracotta),

    7px 7px 15px rgba(0,0,0,0.3);

  background: linear-gradient(135deg, var(--color-forest-green), var(--color-muted-blue));

}



/* Active/Pressed State */

.btn-prism-diamond:active {

  transform: rotate(45deg) translate(1px, 1px);

  box-shadow: 

    inset 2px 2px 0 var(--color-gold),

    inset -2px -2px 0 var(--color-terracotta),

    2px 2px 5px rgba(0,0,0,0.2);

}

/* Glass morphism styles */
.glass {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Dark variant of glass */
.glass-dark {
  background: rgba(4, 44, 2, 0.67);
  color: var(--color-off-white);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10.5px);
  -webkit-backdrop-filter: blur(10.5px);
  border: 1px solid rgba(4, 44, 2, 1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.glass-dark h1, .glass-dark h2, .glass-dark h3 {
  color: var(--color-gold);
}

#drop-zone.dragover { 
  border-color: var(--color-terracotta) !important; 
  background-color: rgba(168, 92, 59, 0.1) !important; 
}
