/* ============================================================
   VIBE LAB — Fernando Comet
   style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:        #3F3D4D;
  --bg-dark:   #2F2E3A;
  --c-black:   #111113;
  --c-near-black: #17181A;
  --c-grey:    #9CA3A5;
  --c-muted:   #A9A8B3;
  --c-light:   #D6D6DC;
  --c-white:   #F2F2F4;

  --c-purple:  #FF4967;
  --c-orange:  #B9C3FF;
  --c-yellow:  #5563B5;
  --c-green:   #000000;
  --c-green-active: #4BA353;

  --r-card:    20px;
  --r-pill:    999px;
  --r-sm:      10px;

  --font: 'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --track-tight: -0.6px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── Base ───────────────────────────────────────────────── */
body {
  background-color: var(--bg);
  font-family: var(--font);
  color: var(--c-white);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 48px 56px;
}

/* ── Nav ────────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 52px;
}

.brand {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--c-white);
}

/* ── Nav right group ────────────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Filter row — centered on desktop, full-width row on tablet/mobile */
.filter-row {
  display: flex;
  align-items: center;
}

@media (min-width: 1025px) {
  nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .filter-row {
    justify-content: center;
  }

  .nav-right {
    justify-content: flex-end;
  }
}

@media (max-width: 1024px) {
  nav {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 16px;
    margin-bottom: 36px;
  }

  .brand      { grid-column: 1; grid-row: 1; }
  .nav-right  { grid-column: 2; grid-row: 1; }
  .filter-row { grid-column: 1 / -1; grid-row: 2; }
}

.webflow-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: #146EF5;
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.webflow-link:hover { opacity: 0.88; }

.webflow-link svg { flex-shrink: 0; }

/* ── Segmented control ──────────────────────────────────── */
.seg {
  background: var(--bg-dark);
  border-radius: var(--r-pill);
  padding: 3px;
  display: flex;
  gap: 2px;
}

.seg-item {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: var(--c-light);
}

.seg-item.active {
  background: var(--c-green-active);
  color: var(--c-black);
}

.seg-item svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: var(--track-tight);
  color: var(--c-white);
  margin-bottom: 14px;
}

.hero p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-muted);
}

/* ── Block view ─────────────────────────────────────────── */
.view-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.view-block.hidden,
.view-list.hidden {
  display: none;
}

.project-card {
  border-radius: var(--r-card);
  padding: 22px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
}

.project-card:hover { transform: scale(0.99); }

.card-color-0 { background: #FF4967; color: var(--c-black); }
.card-color-1 { background: #B9C3FF; color: var(--c-black); }
.card-color-2 { background: #5563B5; color: var(--c-white); }
.card-color-3 { background: #000000; color: var(--c-white); }

.card-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: inherit;
  opacity: 0.7;
}

.tool-pill {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(128,128,128,0.2);
  color: inherit;
}

.card-title {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.4px;
  color: inherit;
}

.card-desc {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: inherit;
  opacity: 0.7;
  max-width: 80%;
  margin-top: 6px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 16px;
}

.card-link {
  font-size: 10px;
  font-weight: 500;
  color: inherit;
  opacity: 0.6;
  letter-spacing: 0.2px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s;
}

.card-link:hover { opacity: 1; }

.card-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-date {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: inherit;
  opacity: 0.7;
}

.card-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  background: #191A1E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  text-decoration: none;
}

.card-btn:hover { background: #23242A; }

.dots {
  display: flex;
  gap: 2.5px;
}

.dot {
  width: 3.5px;
  height: 3.5px;
  background: var(--c-white);
  border-radius: 50%;
}

/* ── List view ──────────────────────────────────────────── */
.view-list table {
  width: 100%;
  border-collapse: collapse;
}

.view-list thead th {
  padding: 14px 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--c-grey);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}

.view-list thead th:last-child { text-align: right; }

.list-row {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.15s;
}

.list-row:hover { background: rgba(255,255,255,0.03); }

.list-row td {
  padding: 18px 0;
  font-size: 13px;
  vertical-align: middle;
}

.list-date {
  color: var(--c-grey);
  width: 56px;
  font-size: 12px;
  font-weight: 400;
}

.list-name-cell { }

.list-name {
  font-weight: 500;
  color: var(--c-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.list-desc {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 3px;
  padding-left: 16px;
}

.list-tag {
  color: var(--c-grey);
  font-size: 12px;
}

.list-tool {
  color: var(--c-grey);
  font-size: 12px;
}

.list-link-cell {
  text-align: right;
}

.list-link-cell a {
  color: var(--c-green);
  opacity: 0.3;
  transition: opacity 0.2s;
  display: inline-block;
}

.list-row:hover .list-link-cell a { opacity: 1; }

/* ── Bottom utility cards ───────────────────────────────── */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.util-card {
  border-radius: 16px;
  padding: 16px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.util-card.status  { background: #9EA3A6; }
.util-card.contact { background: var(--c-near-black); }

.util-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.util-val {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}

.util-sub {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.status .util-label,
.status .util-val,
.status .util-sub { color: var(--c-black); }

.contact .util-label { color: #AEB0B5; }
.contact .util-val   { color: var(--c-white); }
.contact .util-sub   { color: #D9D9DD; opacity: 0.7; }

/* Toggle */
.toggle {
  width: 36px;
  height: 20px;
  background: var(--c-black);
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 2px;
  cursor: pointer;
}

.toggle-knob {
  width: 16px;
  height: 16px;
  background: var(--c-white);
  border-radius: 50%;
  margin-left: auto;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Plus button */
.plus-btn {
  width: 28px;
  height: 28px;
  background: var(--c-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.plus-btn:hover { transform: scale(1.05); background: #e8896f; }

.plus-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--c-white);
  stroke-width: 2.5;
}

/* ── Social footer ──────────────────────────────────────── */
.social-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.social-footer a {
  color: var(--c-grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.social-footer a:hover { color: var(--c-white); }

.social-footer svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────── */

/* Desktop: project cards in 2-column grid */
@media (min-width: 1025px) {
  .view-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .container { padding: 24px 32px 48px; }
  .hero h1   { font-size: 38px; }
}

@media (max-width: 520px) {
  .bottom-grid  { grid-template-columns: 1fr; }
  .hero h1      { font-size: 32px; }
  .card-title   { font-size: 36px; }
  .container    { padding: 20px 16px 40px; }
  .social-footer { justify-content: flex-start; }
  .webflow-link span { display: none; } /* show icon only on mobile */
}
