/* Hub View & Container */
.tool-section:not(.active) { display: none !important; }
.tool-section.active { display: block !important; }

.hub-view {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: block;
  padding-top: 10px;
  padding-bottom: 34px;
  scroll-margin-top: 80px;
}

.workbench-scene-container {
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(180deg, #4CA1AF, #C4E0E5);
  border-radius: 4px;
  border: 4px solid #282016;
  overflow: hidden;
  box-shadow: inset 0 10px 40px rgba(0,0,0,0.2), 0 15px 35px rgba(0,0,0,0.2);
  min-height: 600px;
}

/* Environment: Sun, Sky, Clouds */
.sun {
  position: absolute;
  top: 30px;
  right: 50px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 50% 50%, #ffeba0, #ffdf00);
  border-radius: 50%;
  box-shadow: 0 0 60px #ffdf00, 0 0 100px rgba(255, 223, 0, 0.5);
  animation: sunGlow 4s infinite alternate;
  z-index: 1;
}

@keyframes sunGlow {
  from { transform: scale(1); }
  to { transform: scale(1.05); box-shadow: 0 0 80px #ffdf00, 0 0 120px rgba(255, 223, 0, 0.6); }
}

.sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky .cloud {
  position: absolute;
  z-index: 0;
  width: 140px;
  height: 54px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 40%, rgba(255,255,255,0.88) 0 28px, transparent 29px),
    radial-gradient(circle at 48% 20%, rgba(255,255,255,0.82) 0 36px, transparent 37px),
    radial-gradient(circle at 74% 42%, rgba(255,255,255,0.88) 0 30px, transparent 31px);
  opacity: 0.5;
  animation: drift 18s linear infinite;
  pointer-events: none;
}

.sky .cloud-a { top: 18%; right: 4%; }
.sky .cloud-b { bottom: 14%; left: 8%; animation-duration: 26s; }

@keyframes drift {
  0% { transform: translateX(50vw); }
  100% { transform: translateX(-50vw); }
}

/* Scene Objects (Bench & Marker) */
.scene-objects {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1;
  z-index: 2;
  padding: 50px 15px 180px;
  gap: 40px;
}

@media (min-width: 1100px) {
  .scene-objects {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 160px;
  }
}

/* Wooden Bench 3D */
.wooden-bench {
  width: 100%;
  max-width: 700px;
  min-height: 180px;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 5;
  margin: 0 auto;
  perspective: 1000px;
}

.bench-top {
  width: 100%;
  height: 220px;
  background: linear-gradient(180deg, #8a5a3a, #5c3a21);
  border: 4px solid #3e2723;
  border-bottom: 16px solid #2b180d;
  border-radius: 4px;
  position: relative;
  box-shadow: 
    inset 0 10px 20px rgba(0,0,0,0.3), 
    0 30px 40px rgba(0,0,0,0.6);
  transform: rotateX(20deg);
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

.bench-top::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  width: 40px;
  height: 120px;
  background: linear-gradient(90deg, #5c3a21, #3e2723);
  border: 4px solid #2b180d;
  border-top: none;
  transform: rotateX(-20deg);
  transform-origin: top;
  box-shadow: 5px 10px 15px rgba(0,0,0,0.5);
  z-index: -1;
}

.bench-top::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 20px;
  width: 40px;
  height: 120px;
  background: linear-gradient(90deg, #5c3a21, #3e2723);
  border: 4px solid #2b180d;
  border-top: none;
  transform: rotateX(-20deg);
  transform-origin: top;
  box-shadow: 5px 10px 15px rgba(0,0,0,0.5);
  z-index: -1;
}

.bench-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  text-align: center;
  color: #e4c2a3;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  opacity: 0.4;
  pointer-events: none;
  transform: translate(-50%, -50%) translateZ(1px);
  z-index: 1;
}

.wood-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: 
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 40px);
  pointer-events: none;
}

.workbench-tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  position: relative;
  z-index: 5;
  transform: translateZ(30px);
}

.workbench-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 15px 10px rgba(0,0,0,0.6));
}

.workbench-item:hover {
  transform: translateY(-8px) scale(1.05);
}


.tool-graphic {
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.tool-name {
  background: rgba(43, 24, 13, 0.8);
  color: #e4c2a3;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'Syne', sans-serif;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  transform: translateZ(10px);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Marker Board */
.wooden-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.4));
  margin-top: auto;
  margin-bottom: -160px;
  z-index: 4;
}

.marker-board {
  background: linear-gradient(180deg, #8a5a3a, #5c3a21);
  border: 3px solid #3e2723;
  border-radius: 6px;
  padding: 20px 40px;
  color: #F4ECD8;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 3.5vw, 2.2rem);
  letter-spacing: 2px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  max-width: 90vw;
  z-index: 2;
}

.marker-board::before, .marker-board::after {
  content: "•";
  position: absolute;
  color: #2b180d;
  font-size: 24px;
  top: 50%;
  transform: translateY(-50%);
  text-shadow: 1px 1px 0 rgba(255,255,255,0.2);
}
.marker-board::before { left: 10px; }
.marker-board::after { right: 10px; }

.marker-post {
  width: 18px;
  height: 260px;
  background: linear-gradient(90deg, #4a2e1b, #6e482b, #4a2e1b);
  border: 2px solid #2b180d;
  border-top: none;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  margin-top: -10px;
  z-index: 1;
}

/* Flora and Grass */
.flora {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 5;
  pointer-events: none;
}

.flora::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25px;
  background: linear-gradient(to bottom, transparent, #2E7D32 40%, #1B5E20);
  z-index: 0;
}

@keyframes windSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(3deg); }
}

@keyframes windSwayFloor {
  0%, 100% { transform: skewX(0deg); }
  25% { transform: skewX(-6deg); }
  75% { transform: skewX(4deg); }
}

.grass-floor-back, .grass-floor-mid, .grass-floor {
  position: absolute;
  bottom: 0;
  left: -20%;
  width: 140%;
  background-image: url('/tools/grass.svg');
  background-repeat: repeat-x;
  background-position: bottom;
  transform-origin: bottom center;
}

.grass-floor-back {
  height: 150px;
  background-size: 60px 60px;
  bottom: 25px;
  animation: windSwayFloor 4.5s ease-in-out infinite reverse;
  opacity: 0.65;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
  z-index: 12;
}

.grass-floor-mid {
  height: 120px;
  background-size: 80px 80px;
  bottom: 10px;
  animation: windSwayFloor 5s ease-in-out infinite;
  opacity: 0.85;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.3));
  z-index: 13;
}

.grass-floor {
  height: 90px;
  background-size: 90px 90px;
  animation: windSwayFloor 4s ease-in-out infinite reverse;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.4));
  z-index: 15;
}

.sway-sunflower {
  position: absolute;
  bottom: 5px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  transform-origin: bottom center;
  animation: windSway 4s ease-in-out infinite;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.4));
  width: 80px;
  height: 160px;
  background-image: url('/tools/sunflower.svg');
  z-index: 16;
}

/* Positioning */
.s1 { left: 5%; animation-delay: 0.2s; }
.s2 { left: 20%; animation-delay: 1.1s; width: 60px; height: 120px; }
.s3 { right: 25%; animation-delay: 0.5s; width: 90px; height: 180px; }
.s4 { right: 8%; animation-delay: 1.5s; width: 70px; height: 140px; }
.s5 { left: 50%; animation-delay: 0.8s; width: 75px; height: 150px; }
.s6 { left: 35%; animation-delay: 0.3s; width: 85px; height: 170px; }
.s7 { right: 40%; animation-delay: 0.9s; width: 65px; height: 130px; }
.s8 { right: 15%; animation-delay: 1.2s; width: 80px; height: 160px; }

/* Image Tools (3D Claymorphism) */
.img-trowel { background-image: url('/tools/clay_trowel.webp'); }
.img-seed-bag { background-image: url('/tools/clay_seed_bag.webp'); }
.img-hand-fork { background-image: url('/tools/clay_hand_fork.webp'); }
.img-shovel { background-image: url('/tools/clay_shovel.webp'); }
.img-shears { background-image: url('/tools/clay_shears.webp'); }
.img-watering-can { background-image: url('/tools/clay_watering_can.webp'); }
.img-lawnmower { background-image: url('/tools/clay_lawnmower.webp'); }
.img-bucket { background-image: url('/tools/clay_maroon_bucket.webp'); }
.img-fertilizer { background-image: url('/tools/clay_fertilizer.webp'); }
.img-greenhouse { background-image: url('/tools/clay_greenhouse.png'); }
.img-wheelbarrow { background-image: url('/tools/clay_wheelbarrow.png'); }
.img-trellis { background-image: url('/tools/clay_trellis.png'); }
.img-basket { background-image: url('/tools/clay_basket.png'); }

@media (max-width: 600px) {
  .marker-board {
    padding: 10px 20px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    max-width: 95vw;
  }
  .marker-board::before, .marker-board::after {
    font-size: 16px;
  }
  .marker-board::before { left: 5px; }
  .marker-board::after { right: 5px; }
}

/* Tool Inner Views - Brutalist / SeedHire Native Theme */
.tool-section { 
  padding: 0 10px; 
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif; 
}

.tool-header { margin-bottom: 24px; text-align: center; }
.tool-header h1 { 
  font-family: "Syne", ui-sans-serif, system-ui, sans-serif; 
  font-size: 38px; 
  font-weight: 800; 
  letter-spacing: -0.03em; 
  margin-bottom: 12px; 
  color: #ffffff !important; 
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.tool-header p { 
  font-size: 19px; 
  line-height: 1.5; 
  font-weight: 500;
  color: #F4ECD8; 
  max-width: 600px; 
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.tool-body {
  background: #F4ECD8;
  border: 4px solid var(--ink);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 8px 8px 0 var(--ink);
  color: var(--ink);
  margin-bottom: 40px;
}

/* Brutalist Forms (Hand Trowels / etc) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.form-group input, 
.form-group textarea, 
.form-group select {
  background: #F4ECD8;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.05);
  outline: none;
  transition: border-color 0.1s ease;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.output-panel.glass {
  background: #F4ECD8 !important;
  border: 4px solid var(--ink) !important;
  box-shadow: 6px 6px 0 var(--ink) !important;
  border-radius: 4px !important;
  padding: 16px !important;
  backdrop-filter: none !important;
}

.talent-feed, .fractional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.talent-card, .q-card {
  background: #F4ECD8;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.talent-card:hover, .q-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.t-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.t-initials { background: var(--green); border: 2px solid var(--ink); color: var(--ink); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 900; font-family: "Syne", sans-serif; font-size: 20px; box-shadow: 2px 2px 0 var(--ink); }
.t-score { font-weight: 800; color: var(--ink); background: var(--green); padding: 6px 12px; border-radius: 4px; font-size: 14px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.t-role, .q-title { font-family: "Syne", sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; color: var(--ink); }
.t-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; flex-grow: 1; }
.t-skill { background: #F4ECD8; color: var(--ink); padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 700; border: 2px solid var(--ink); box-shadow: 2px 2px 0 rgba(22,19,15,0.2); }
.talent-btn { background: var(--green); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; font-size: 16px; font-family: "DM Sans", sans-serif; padding: 12px; border-radius: 4px; cursor: pointer; transition: all 0.1s; box-shadow: 3px 3px 0 var(--ink); margin-top: auto; width: 100%; display: block; position: relative; z-index: 10; pointer-events: auto; }
.talent-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); background: #f0f0f0; }

.q-category { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); background: #F4ECD8; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 4px; align-self: flex-start; margin-bottom: 16px; box-shadow: 2px 2px 0 var(--ink); }
.q-card p { color: var(--muted) !important; font-weight: 500; font-size: 16px; line-height: 1.5; margin-bottom: 20px !important; }

/* Filter bar */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 8px 16px; border: 2px solid var(--ink); background: #F4ECD8; border-radius: 4px; cursor: pointer; font-weight: 800; font-size: 16px; transition: all 0.1s; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); font-family: "DM Sans", sans-serif; }
.filter-btn.active { background: var(--green); color: var(--ink); }
.filter-btn:hover:not(.active) { background: #f0f0f0; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }

/* Trellis Styles */
.trellis-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 32px; }
.trellis-column { background: #F4ECD8; border: 2px solid var(--ink); border-radius: 4px; padding: 16px; box-shadow: 6px 6px 0 var(--ink); }
.trellis-column h3 { font-family: "Syne", sans-serif; font-size: 28px; font-weight: 800; color: var(--ink); border-bottom: 4px solid var(--ink); padding-bottom: 16px; margin-bottom: 24px; letter-spacing: -0.03em; }

.trellis-goal { margin-bottom: 24px; }
.trellis-goal-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.trellis-goal-title { font-weight: 800; font-size: 18px; color: var(--ink); }
.trellis-goal-status { font-size: 14px; font-weight: 700; color: var(--ink); background: #F4ECD8; border: 2px solid var(--ink); padding: 4px 10px; border-radius: 4px; box-shadow: 2px 2px 0 rgba(22,19,15,0.2); }
.trellis-bar-container { background: #F4ECD8; height: 16px; border-radius: 4px; overflow: hidden; border: 2px solid var(--ink); }
.trellis-bar-fill { background: var(--green); height: 100%; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); border-right: 2px solid var(--ink); }

.harvest-card { border: 2px solid var(--ink); background: #F4ECD8; padding: 16px; margin-bottom: 16px; border-radius: 4px; box-shadow: 3px 3px 0 var(--ink); }
.harvest-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.harvest-avatar { background: var(--green); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; font-family: "Syne", sans-serif; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.harvest-name { font-weight: 800; font-size: 16px; color: var(--ink); }
.harvest-time { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: auto; }
.harvest-content { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.5; }

.health-card { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; background: #F4ECD8; padding: 20px; border-radius: 4px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform 0.1s; }
.health-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.health-status-icon { font-size: 32px; }
.health-info h4 { font-family: "Syne", sans-serif; margin: 0 0 8px 0; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.health-info p { margin: 0; font-size: 16px; font-weight: 500; color: var(--muted); line-height: 1.5; }

.search-bar.card {
  background: #F4ECD8;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.search-bar.card input {
  background: #F4ECD8;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.05);
}
.search-bar.card button.primary {
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.1s;
}
.search-bar.card button.primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* Greenhouse (Kanban) Styles */
.add-candidate-form {
  background: #F4ECD8;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  gap: 12px;
}
.add-candidate-form input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ink);
  padding: 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.add-candidate-form input:focus {
  border-bottom-color: var(--green);
}

.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 20px;
}
.kanban-column {
  background: #F4ECD8;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  min-width: 300px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.column-header {
  border-bottom: 2px solid var(--ink);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.column-header h3 {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.column-header .count {
  background: var(--ink);
  color: #F4ECD8;
  font-family: "Syne", sans-serif;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
}
.column-cards {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  min-height: 100px;
}
.k-card {
  background: #F4ECD8;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 16px;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: grab;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.k-card:active {
  cursor: grabbing;
}
.k-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
