/* =====================================================================
   Appleblossom Hub — Tool Shed
   Layered on top of landing.css; shares all the color/type variables.
   ===================================================================== */

.site-nav a.active {
  color: var(--rose);
  border-bottom-color: var(--rose);
}

/* ------------------------- Hero ------------------------- */
.shed-hero {
  padding: 60px 32px 48px;
  background: linear-gradient(
    rgba(253, 246, 237, 0.78),
    rgba(253, 246, 237, 0.95)
  ),
  url('/uploads/default/original/1X/ad3c16360d4d9adb3d23bb30dd161175b8f20b81.png')
  center/cover no-repeat;
  border-bottom: 1px solid var(--cream-dark);
}

.shed-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.shed-hero-text { flex: 1; }

.shed-hero h1 {
  font-size: 48px;
  font-style: italic;
  color: var(--rose);
  margin: 0 0 16px;
  line-height: 1.1;
}

.shed-lead {
  font-size: 19px;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.6;
}

.shed-sublead {
  font-size: 17px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}

.shed-hero-emoji {
  font-size: 120px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(154, 74, 94, 0.2));
}

/* ------------------------- Toolbar ------------------------- */
.shed-toolbar {
  background: var(--cream-light);
  border-bottom: 1px solid var(--cream-dark);
  padding: 24px 32px;
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}

.shed-toolbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.shed-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 280px;
}

.shed-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.shed-search input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--serif-body);
  font-size: 16px;
  border: 1px solid var(--tan-light);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

.shed-search input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(245, 181, 193, 0.35);
}

.shed-select {
  padding: 12px 36px 12px 16px;
  font-family: var(--serif-body);
  font-size: 16px;
  border: 1px solid var(--tan-light);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Cpath fill='%239a4a5e' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.shed-select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(245, 181, 193, 0.35);
}

.shed-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shed-count {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
}

.shed-login-hint {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
}

.shed-login-hint[hidden] { display: none !important; }

/* ------------------------- Grid ------------------------- */
.shed-grid-section {
  padding: 48px 32px 72px;
  min-height: 400px;
}

.shed-grid-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.shed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-rose);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  width: 100%;
  font-family: inherit;
  color: inherit;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(154, 74, 94, 0.15);
  border-color: var(--blush);
}

.tool-card-icon {
  font-size: 40px;
  line-height: 1;
}

.tool-card-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.tool-card-name {
  font-size: 22px;
  font-family: var(--serif-display);
  color: var(--text);
  margin: 0;
  line-height: 1.25;
  font-weight: 600;
}

.tool-card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--cream-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.tool-card-owner {
  font-weight: 600;
  color: var(--rose);
}

.tool-card-availability {
  font-style: italic;
}

/* Empty and loading states */
.shed-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.shed-empty-emoji {
  font-size: 72px;
  margin-bottom: 16px;
}

.shed-empty h3 {
  font-size: 26px;
  color: var(--rose);
  font-style: italic;
  margin: 0 0 8px;
}

.shed-empty p {
  font-size: 17px;
  margin: 0;
}

.shed-loading {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 17px;
}

/* ------------------------- Info cards ------------------------- */
.shed-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.shed-info-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-rose);
}

.shed-info-icon {
  font-size: 44px;
  margin-bottom: 12px;
  line-height: 1;
}

.shed-info-card h3 {
  font-size: 22px;
  color: var(--rose);
  font-style: italic;
  margin: 0 0 10px;
}

.shed-info-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ------------------------- Modals ------------------------- */
.modal-intro {
  font-size: 15px;
  color: var(--text-muted);
  margin: -12px 0 20px;
  line-height: 1.5;
  font-style: italic;
}

.tool-view-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--blush-light);
  color: var(--rose);
  margin-bottom: 12px;
}

.tool-view-description {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  margin: 16px 0;
  padding: 16px 20px;
  background: var(--cream);
  border-radius: 8px;
  border-left: 4px solid var(--blush);
  white-space: pre-wrap;
}

.tool-view-description:empty { display: none; }

.tool-view-meta {
  font-size: 15px;
  color: var(--text-muted);
  margin: 8px 0;
  font-style: italic;
}

.tool-view-meta:empty { display: none; }

.tool-view-owner {
  font-size: 15px;
  color: var(--text-muted);
  margin: 20px 0 0;
}

.tool-view-owner strong {
  color: var(--rose);
  font-family: var(--serif-display);
  font-weight: 700;
}

.tool-view-age {
  color: var(--tan);
  font-style: italic;
  margin-left: 8px;
}

/* Make Message Owner button prominent */
#btn-message-owner {
  min-width: 180px;
}

/* ------------------------- Responsive ------------------------- */
@media (max-width: 840px) {
  .shed-hero { padding: 40px 20px 32px; }
  .shed-hero h1 { font-size: 36px; }
  .shed-hero-inner { flex-direction: column-reverse; gap: 16px; text-align: center; }
  .shed-hero-emoji { font-size: 80px; }

  .shed-toolbar { padding: 16px 20px; top: 0; position: static; }
  .shed-toolbar-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .shed-filters { flex-wrap: wrap; }
  .shed-select { width: 100%; }
  .shed-actions { justify-content: space-between; }

  .shed-grid-section { padding: 32px 20px 48px; }
  .shed-grid { gap: 16px; }
  .tool-card { padding: 20px; }
  .tool-card-name { font-size: 20px; }
}

@media (max-width: 480px) {
  .shed-grid { grid-template-columns: 1fr; }
}
