/* Figma-inspired theme (Top nav + centered pages + purple footer) */

:root{
  --brand: #8A3B86;         /* purple used across screenshots */
  --brand-ink: #6f2f6b;
  --brand-light: #B569B0;   /* lighter purple for gradient start */
  --brand-gradient: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-ink) 100%);
  --surface: #ffffff;
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --line: rgba(138, 59, 134, .55);
  --soft-line: rgba(138, 59, 134, .28);
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:#fff;
}

.app{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.95);
  border-bottom:1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(8px);
}
.topbar__inner{
  height:70px;
  max-width:1200px;
  margin:0 auto;
  padding:0 22px;
  padding-left:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-left:-6px;
  color:var(--brand);
  text-decoration:none;
}
.brand__mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
/* Specificity + sizing: logo menor e encostado à esquerda da topbar */
a.brand .brand__mark-img{
  height:66px;
  width:auto;
  max-height:66px;
  max-width:216px;
  display:block;
  object-fit:contain;
}

.nav{
  display:flex;
  align-items:center;
  gap:0;
}
.nav__link{
  position:relative;
  padding:14px 22px;
  text-decoration:none;
  color:#161616;
  font-weight:600;
  letter-spacing:.04em;
  font-size:13px;
}
.nav__link + .nav__link{
  border-left:1px solid rgba(138,59,134,.25);
}
.nav__link.is-active{
  color:#111;
}
.nav__link.is-active::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:10px;
  height:2px;
  background:rgba(138,59,134,.35);
  border-radius:999px;
}

.icon-button{
  border:0;
  background:transparent;
  padding:10px;
  border-radius:10px;
  cursor:pointer;
  color:var(--brand);
}
.icon-button:hover{
  background:rgba(138,59,134,.08);
}
.icon-button--small{
  padding:8px;
  border:1px solid rgba(138,59,134,.35);
  background:#fff;
}

.hamburger{
  width:22px;
  height:14px;
  display:inline-block;
  position:relative;
}
.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:currentColor;
  border-radius:999px;
}
.hamburger::before{ top:0; }
.hamburger::after{ bottom:0; }

.content{
  flex:1;
}

/* Home hero */
.hero{
  padding:0;
  min-height:calc(100vh - 70px - 150px);
  display:flex;
  align-items:stretch;
}
.hero--home{
  background:
    linear-gradient(rgba(0,0,0,.10), rgba(0,0,0,.10)),
    radial-gradient(1200px 600px at 50% 40%, rgba(255,255,255,.12), rgba(0,0,0,.18)),
    linear-gradient(120deg, #2b2b2b, #4b4b4b);
  background-size:cover;
  background-position:center;
}
.hero__inner{
  max-width:1200px;
  margin:0 auto;
  padding:78px 22px;
  width:100%;
  display:flex;
  align-items:center;
  gap:26px;
}
.hero__avatar{
  width:120px;
  height:120px;
  border-radius:999px;
  background:rgba(255,255,255,.85);
}
.hero__title{
  margin:0;
  color:#fff;
  font-size:52px;
  font-weight:700;
  letter-spacing:-.02em;
  text-shadow:0 12px 30px rgba(0,0,0,.35);
}

/* Centered list pages */
.page{
  padding:70px 0 44px;
}
.page__header{
  display:flex;
  justify-content:center;
  padding:10px 22px 22px;
}
.page__title{
  margin:0;
  color:var(--brand);
  font-size:54px;
  letter-spacing:.02em;
  font-weight:700;
}

.toolbar{
  max-width:920px;
  margin:0 auto 14px;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.search-form{
  margin:0;
}
.search{
  position:relative;
  width:min(420px, 60vw);
}
.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
button.search__submit.search__icon{
  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;
  line-height:0;
}
.search__input{
  width:100%;
  height:36px;
  border-radius:999px;
  border:2px solid var(--soft-line);
  outline:none;
  padding:0 42px 0 16px;
  font-size:14px;
}
.search__input:focus{
  border-color:rgba(138,59,134,.55);
  box-shadow:0 0 0 4px rgba(138,59,134,.10);
}
.search__icon{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:var(--brand);
  opacity:.75;
}

.sort{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--muted);
  font-size:13px;
}
.sort__label{ white-space:nowrap; }
.sort__button{
  height:36px;
  padding:0 14px;
  border-radius:999px;
  border:2px solid var(--soft-line);
  background:#fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#3a3a3a;
  font-weight:500;
}
.sort__chev{
  width:10px;
  height:10px;
  border-right:2px solid rgba(138,59,134,.7);
  border-bottom:2px solid rgba(138,59,134,.7);
  transform:rotate(45deg);
  margin-top:-2px;
}
.grid-icon{
  width:18px;
  height:18px;
  display:inline-block;
  background:
    linear-gradient(currentColor, currentColor) 0 0/7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 11px 0/7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px/7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 11px 8px/7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 16px/7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 11px 16px/7px 2px no-repeat;
  color:rgba(138,59,134,.85);
}

.table-card{
  max-width:920px;
  margin:0 auto;
  padding:0 22px;
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:2px solid var(--soft-line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  box-shadow: var(--shadow);
}
.table thead th{
  text-align:left;
  font-weight:500;
  color:#6a6a6a;
  padding:14px 16px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.table tbody td{
  padding:16px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.table tbody tr:last-child td{
  border-bottom:0;
}
.table__link{
  color:#111;
  text-decoration:none;
  font-weight:500;
}
.table__link:hover{
  text-decoration:underline;
}

/* Footer */
.footer{
  background:var(--brand);
  color:#fff;
  padding:22px 0;
}
.footer__inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 22px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:18px;
  align-items:start;
}
.footer__col{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.footer__col--center{ align-items:center; }
.footer__col--right{ align-items:flex-end; }
.footer__pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.80);
  color:#2a2a2a;
  border-radius:999px;
  padding:6px 16px;
  font-weight:600;
  font-size:13px;
  width:fit-content;
}
.footer__link{
  color:rgba(255,255,255,.92);
  text-decoration:none;
  font-size:13px;
}
.footer__link:hover{ text-decoration:underline; }
.footer__text{
  font-size:13px;
  color:rgba(255,255,255,.92);
}

@media (max-width: 920px){
  .nav{ display:none; }
  .page__title{ font-size:42px; }
  .hero__title{ font-size:40px; }
  .footer__inner{ grid-template-columns:1fr; }
  .footer__col--right,
  .footer__col--center{ align-items:flex-start; }
}

/* ── Purple text gradient (light → dark) — applied globally ─────────────── */
.brand,
.page__title,
.auth-title,
.welcome-card h2,
.confirm-title,
.form-section__title,
.form-details > summary,
.auth-link a,
.hero__title{
  background: var(--brand-gradient) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

