/* ── Framer Pro Specification: Showcase Card & Admin Editor ── */
/* Source: https://framer.com/m/Showcase-Card-hbtb.js@baT94z3cbRmShOSZjllW */

:root {
  --sc-bg-light: #ffffff;
  --sc-bg-dark: #131C33;
  --sc-border-light: rgba(255, 255, 255, 0.95);
  --sc-border-dark: rgba(255, 255, 255, 0.1);
  --sc-card-radius-top: 44px;
  --sc-card-radius-bot: 34px;
  --sc-inner-radius: 34px;
}

/* ── Showcase Card Wrapper (matches track rail & grid) ── */
.showcase-card.card,
.showcase-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(310px, 25vw, 380px);
  box-sizing: border-box;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - clamp(85px, 13vh, 115px));
  border-top-left-radius: var(--sc-card-radius-top);
  border-top-right-radius: var(--sc-card-radius-top);
  border-bottom-left-radius: var(--sc-card-radius-bot);
  border-bottom-right-radius: var(--sc-card-radius-bot);
  background: var(--sc-bg-light);
  border: 1px solid var(--sc-border-light);
  box-shadow: 0px 0.8px 0.8px -0.5px rgba(0, 0, 0, 0.08),
              0px 2.4px 2.4px -1px rgba(0, 0, 0, 0.08),
              0px 6.4px 6.4px -1.5px rgba(0, 0, 0, 0.09),
              0px 20px 20px -2px rgba(0, 0, 0, 0.12);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s ease,
              border-color 0.4s ease;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
  cursor: default;
}

html[data-theme="dark"] .showcase-card,
html[data-theme="dark"] .showcase-card.card {
  background: var(--sc-bg-dark) !important;
  border-color: var(--sc-border-dark) !important;
  color: #f5f2eb !important;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4),
              0px 10px 25px -4px rgba(0, 0, 0, 0.6),
              0px 24px 44px -8px rgba(0, 0, 0, 0.7);
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 1.5px 2px rgba(0, 0, 0, 0.06),
              0px 4px 6px rgba(0, 0, 0, 0.07),
              0px 12px 18px rgba(0, 0, 0, 0.09),
              0px 28px 34px -4px rgba(11, 16, 32, 0.18);
}

html[data-theme="dark"] .showcase-card:hover {
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.6),
              0px 20px 45px -4px rgba(0, 0, 0, 0.85);
}

/* ── Main Container: Thumbnail Image & Scrim ── */
.sc-media-box {
  position: relative;
  width: 100%;
  height: clamp(165px, 26vh, 215px);
  border-radius: var(--sc-inner-radius);
  overflow: hidden;
  background: #111418;
  flex: 0 0 auto;
  transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card.opened .sc-media-box {
  height: clamp(110px, 16vh, 135px);
}

.sc-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .sc-thumb {
  transform: scale(1.08);
}

/* Progressive Blur Overlay */
.sc-progressive-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 35%,
    rgba(12, 14, 20, 0.25) 55%,
    rgba(12, 14, 20, 0.72) 80%,
    rgba(12, 14, 20, 0.94) 100%
  );
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

/* Content inside Thumbnail */
.sc-thumb-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 20px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
}

.sc-thumb-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sc-title {
  margin: 0;
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-category {
  margin: 0;
  font-family: Switzer, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
}

.sc-hero-badge {
  pointer-events: auto;
  flex: 0 0 auto;
  font-family: Switzer, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

/* ── Expanded Content Container (.framer-mff36c) ── */
.sc-expanded {
  max-height: 0;
  opacity: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 16, 32, 0.3) transparent;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.035);
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              padding 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

html[data-theme="dark"] .sc-expanded {
  background: rgba(255, 255, 255, 0.05) !important;
}

.showcase-card.opened .sc-expanded {
  max-height: clamp(190px, 32vh, 250px);
  opacity: 1;
  padding: 12px 14px 14px;
}

.sc-overview {
  margin: 0;
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.015em;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .sc-overview {
  color: #f5f2eb !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* Meta Pills Row */
.sc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sc-pill {
  font-family: Switzer, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink2);
  background: rgba(0, 0, 0, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

html[data-theme="dark"] .sc-pill {
  color: #C9D2E8 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.sc-pill-label {
  color: var(--accent);
  font-weight: 600;
}

/* Project Description Paragraph */
.sc-desc {
  margin: 0;
  font-family: Switzer, system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink2);
  word-break: break-word;
}

html[data-theme="dark"] .sc-desc {
  color: #9AA7C7 !important;
}

/* Deep Case Action inside Expanded Drawer */
.sc-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.sc-case-btn {
  font-family: Switzer, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.sc-case-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* ── Bottom Toggle Button (.framer-1dwaw9f) ── */
.sc-toggle-btn {
  width: 100%;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  font-family: Switzer, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
  outline: none;
}

html[data-theme="dark"] .sc-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sc-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.09);
}

html[data-theme="dark"] .sc-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.sc-toggle-btn:active {
  transform: scale(0.98);
}

.sc-chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card.opened .sc-chevron-icon {
  transform: rotate(180deg);
}

/* Responsive adjustment */
@media (max-width: 800px) {
  .showcase-card {
    width: 86vw;
  }
}

/* ── Work Header Admin Button ── */

.sc-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-btn {
  font-family: Switzer, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sc-btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.sc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 176, 32, 0.35);
}

.sc-btn-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
}

html[data-theme="dark"] .sc-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sc-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .sc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sc-btn-danger {
  background: transparent;
  color: #e03131;
  border: 1px solid rgba(224, 49, 49, 0.3);
}

.sc-btn-danger:hover {
  background: rgba(224, 49, 49, 0.08);
}
