/* User Provided Stylesheet */

/* =================================================
   CrocoGallery Custom Styles
   Brand: teal #2BB5C8 | amber #F0A830
   ================================================= */

:root {
  --croco-teal: #2BB5C8;
  --croco-teal-dark: #1A7A8A;
  --croco-teal-light: #E0F5F8;
  --croco-amber: #F0A830;
  --croco-amber-dark: #C8861A;
  --croco-dark: #1A2A2A;
}

/* ---- Hub landing (intro.md) ---- */

.croco-hub__hero {
  background: linear-gradient(135deg, var(--croco-teal-dark) 0%, var(--croco-teal) 65%, #4ecdc4 100%);
  border-radius: 16px;
  padding: 3rem 2.5rem 3rem;
  margin: 0.5rem 0 2.5rem;
  color: white;
  text-align: center;
}

.croco-hub__hero h1 {
  font-size: 2.4rem !important;
  font-weight: 800 !important;
  color: white !important;
  margin-bottom: 1rem !important;
  line-height: 1.2 !important;
}

.croco-hub__tagline {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  color: white;
}

.croco-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .croco-hub__grid { grid-template-columns: 1fr; }
}

.croco-hub-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  text-decoration: none !important;
  color: inherit !important;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.croco-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(43, 181, 200, 0.2);
  border-color: var(--croco-teal);
}

.croco-hub-card--featured {
  border-color: var(--croco-teal);
  background: linear-gradient(135deg, #fff 0%, var(--croco-teal-light) 100%);
}

.croco-hub-card__badge {
  display: inline-block;
  background: var(--croco-amber);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.croco-hub-card__icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.croco-hub-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--croco-teal-dark);
  margin: 0 0 0.5rem;
}

.croco-hub-card__desc {
  font-size: 0.93rem;
  color: #555;
  flex-grow: 1;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.croco-hub-card__cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--croco-teal);
}

/* ---- CrocoDash hero ---- */

.cd-hero {
  background: linear-gradient(135deg, var(--croco-teal-dark) 0%, var(--croco-teal) 65%, #4ecdc4 100%);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  margin: 0.5rem 0 2.5rem;
  color: white;
}

.cd-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-bottom: 0.6rem;
}

.cd-hero__title {
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin-bottom: 1rem !important;
  color: white !important;
}

.cd-hero__desc {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 580px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.cd-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */

.cd-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cd-btn--primary {
  background: var(--croco-amber);
  color: var(--croco-dark) !important;
}

.cd-btn--primary:hover {
  background: var(--croco-amber-dark);
}

.cd-btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: white !important;
  background: transparent;
}

.cd-btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---- CrocoDash feature sections ---- */

.cd-section {
  margin: 2.5rem 0;
}

.cd-section__title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--croco-teal-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--croco-teal-light);
}

.cd-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .cd-features-grid { grid-template-columns: 1fr; }
}

.cd-feature {
  background: var(--croco-teal-light);
  border-radius: 10px;
  padding: 1.25rem;
  border-left: 4px solid var(--croco-teal);
}

.cd-feature__icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.cd-feature h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--croco-teal-dark);
  margin: 0 0 0.3rem;
}

.cd-feature p {
  font-size: 0.88rem;
  color: #444;
  margin: 0;
  line-height: 1.5;
}

.cd-nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .cd-nav-cards { grid-template-columns: 1fr; }
}

.cd-nav-card {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border: 2px solid var(--croco-teal-light);
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.2s ease;
}

.cd-nav-card:hover {
  border-color: var(--croco-teal);
  box-shadow: 0 4px 16px rgba(43, 181, 200, 0.15);
  transform: translateY(-2px);
}

.cd-nav-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--croco-teal-dark);
  margin: 0 0 0.4rem;
}

.cd-nav-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* ---- Subspace headers (Diagnostics, CrocoCamp) ---- */

.croco-subspace-header {
  border-radius: 14px;
  padding: 2.5rem 2rem;
  margin: 0.5rem 0 2rem;
  text-align: center;
}

.croco-subspace-header--diagnostics {
  background: linear-gradient(135deg, #1A5276 0%, #2980B9 100%);
  color: white;
}

.croco-subspace-header--camp {
  background: linear-gradient(135deg, #5D4037 0%, #A0692A 100%);
  color: white;
}

.croco-subspace-header__icon {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.croco-subspace-header h1 {
  color: white !important;
  font-size: 2rem !important;
  margin: 0.4rem 0 !important;
}

.croco-subspace-header p {
  opacity: 0.88;
  max-width: 540px;
  margin: 0.5rem auto 1.25rem;
  line-height: 1.6;
}

/* ---- CrocoDash image showcase ---- */

.cd-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

@media (max-width: 600px) {
  .cd-showcase-grid { grid-template-columns: 1fr; }
}

.cd-showcase-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  text-align: center;
}

.cd-showcase-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.cd-showcase-item p {
  font-size: 0.83rem;
  color: #666;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-style: italic;
}

/* ---- Dark mode overrides ---- */

html.dark .croco-hub-card {
  background: #1e2a2a;
  border-color: #2a3a3a;
}

html.dark .croco-hub-card__title { color: var(--croco-teal); }
html.dark .croco-hub-card__desc  { color: #aaa; }
html.dark .croco-hub-card__cta   { color: var(--croco-teal); }

html.dark .cd-feature {
  background: rgba(43, 181, 200, 0.1);
}

html.dark .cd-feature h3 { color: var(--croco-teal); }
html.dark .cd-feature p  { color: #bbb; }

html.dark .cd-nav-card {
  background: #1e2a2a;
  border-color: rgba(43, 181, 200, 0.2);
}

html.dark .cd-nav-card h3 { color: var(--croco-teal); }
html.dark .cd-nav-card p  { color: #aaa; }
