/* =============================================
   STARTUP DIRECTORY — Full Directory Page
   Crail #C15F3C | Cloudy #B1ADA1 | Pampas #F4F3EE | White #FFF
   ============================================= */

.sd-page {
  background: #F4F3EE;
  color: #2D2926;
  min-height: 100%;
}

.sd-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Hero ── */
.sd-hero {
  padding: 20px 24px 24px;
  text-align: center;
  background: linear-gradient(180deg, #F4F3EE 0%, #FFFFFF 100%);
}

.sd-hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #2D2926;
  margin: 0 0 8px;
}

.sd-hero-sub {
  font-size: 0.92rem;
  color: #6B6560;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ── Search ── */
.sd-search {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.sd-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid rgba(177, 173, 161, 0.3);
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sd-search-input-wrap:focus-within,
.sd-search-input-wrap:hover {
  border-color: #C15F3C;
  box-shadow: 0 0 0 3px rgba(193, 95, 60, 0.08);
}

.sd-search-icon {
  color: #B1ADA1;
  font-size: 1rem;
  line-height: 1;
}

.sd-search-field {
  width: 100%;
  border: none;
  background: transparent;
  color: #2D2926;
  font-size: 0.88rem;
  padding: 12px 0;
  font-family: inherit;
}

.sd-search-field:focus {
  outline: none;
}

.sd-search-field::placeholder {
  color: #8d867d;
}

.sd-search-btn {
  background: linear-gradient(135deg, #C15F3C, #d4795a) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-transform: none !important;
  border-radius: 10px !important;
  padding: 8px 24px !important;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ── Category Filters ── */
.sd-filters {
  padding: 20px 0 8px;
}

.sd-category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.sd-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid rgba(177, 173, 161, 0.25);
  border-radius: 20px;
  background: #FFFFFF;
  color: #6B6560;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.sd-chip:hover {
  border-color: #C15F3C;
  color: #C15F3C;
}

.sd-chip.active {
  background: linear-gradient(135deg, #C15F3C, #d4795a);
  color: #FFFFFF;
  border-color: transparent;
}

.sd-active-search {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #6B6560;
}

.sd-clear-search {
  background: none;
  border: none;
  color: #C15F3C;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 8px;
  font-weight: 700;
  vertical-align: middle;
}

/* ── Results Count ── */
.sd-results-count {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #B1ADA1;
  padding: 12px 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Grid ── */
.sd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding-bottom: 32px;
}

/* ── Card ── */
.sd-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #FFFFFF;
  border: 1px solid rgba(177, 173, 161, 0.18);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sd-card:hover {
  border-color: rgba(193, 95, 60, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.sd-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sd-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(177, 173, 161, 0.15);
  flex-shrink: 0;
}

.sd-card-logo-ph {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.08), rgba(193, 95, 60, 0.03));
  border: 1px solid rgba(193, 95, 60, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sd-card-logo-ph {
  font-size: 22px;
  color: #C15F3C;
}

.sd-card-info {
  flex: 1;
  min-width: 0;
}

.sd-card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2D2926;
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-card-verified {
  font-size: 0.88rem;
  color: #4aa363;
  line-height: 1;
}

.sd-card-cat {
  font-size: 0.68rem;
  font-weight: 600;
  color: #C15F3C;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sd-card-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #6B6560;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sd-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(177, 173, 161, 0.12);
}

.sd-card-url {
  font-size: 0.72rem;
  color: #B1ADA1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.sd-error-text {
  margin: 0 0 20px;
  text-align: center;
  color: #c2410c;
  font-size: 0.9rem;
  font-weight: 600;
}

.sd-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4aa363;
  background: rgba(74, 163, 99, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── Empty ── */
.sd-empty {
  text-align: center;
  padding: 60px 20px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid rgba(177, 173, 161, 0.15);
  margin-bottom: 32px;
}

.sd-empty-icon {
  font-size: 48px !important;
  color: #B1ADA1;
  margin-bottom: 16px;
}

.sd-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2D2926;
  margin: 0 0 8px;
}

.sd-empty p {
  font-size: 0.88rem;
  color: #6B6560;
}

.sd-empty a {
  color: #C15F3C;
  font-weight: 600;
  text-decoration: none;
}
.sd-empty a:hover { text-decoration: underline; }

/* ── Load More ── */
.sd-load-more {
  text-align: center;
  padding: 8px 0 32px;
}

.sd-btn-outline {
  border: 1px solid rgba(193, 95, 60, 0.3);
  background: transparent;
  border-color: rgba(193, 95, 60, 0.3) !important;
  color: #C15F3C !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  border-radius: 10px !important;
  text-transform: none !important;
  padding: 10px 32px !important;
  cursor: pointer;
  font-family: inherit;
}
.sd-btn-outline:hover {
  border-color: #C15F3C !important;
  background: rgba(193, 95, 60, 0.04) !important;
}

/* ── CTA Banner ── */
.sd-cta {
  text-align: center;
  padding: 40px 24px;
  margin-bottom: 40px;
  background: #FFFFFF;
  border: 1px solid rgba(193, 95, 60, 0.12);
  border-radius: 16px;
}

.sd-cta h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2D2926;
  margin: 0 0 8px;
}

.sd-cta p {
  font-size: 0.88rem;
  color: #6B6560;
  margin: 0 0 20px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.sd-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #C15F3C, #d4795a) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  border-radius: 10px !important;
  text-transform: none !important;
  padding: 10px 28px !important;
  box-shadow: 0 4px 16px rgba(193, 95, 60, 0.2) !important;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .sd-shell { width: min(100%, calc(100% - 32px)); }
  .sd-hero { padding: 24px 16px 20px; }
  .sd-search { flex-direction: column; }
  .sd-category-chips { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .sd-category-chips::-webkit-scrollbar { display: none; }
  .sd-chip { white-space: nowrap; }
  .sd-grid { grid-template-columns: 1fr; }
  .sd-cta { padding: 28px 16px; margin-bottom: 24px; }
}
