/* ============================================================
   Vesta Dashboard — Minha Conta
   ============================================================ */

/* ── Layout ── */
.vesta-dashboard-wrap {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
  background: #f5f6f7;
  font-family: Metrisch, sans-serif;
}

/* ── Sidebar ── */
.vesta-dash-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e8eceb;
  display: flex;
  flex-direction: column;
  padding: 32px 0 24px;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}

.vesta-dash-logo {
  padding: 0 24px 32px;
  display: block;
}
.vesta-dash-logo img {
  height: 34px;
  width: auto;
}

.vesta-dash-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}

.vesta-dash-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #6b7280;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: Metrisch, sans-serif;
  text-align: left;
  letter-spacing: 0;
}
.vesta-dash-link svg {
  flex-shrink: 0;
  opacity: .65;
  transition: opacity .2s;
}
.vesta-dash-link:hover {
  background: #f0f4f3;
  color: var(--dark-slate-grey, #003a40);
}
.vesta-dash-link:hover svg {
  opacity: 1;
}
.vesta-dash-link.is-active {
  background: rgba(0,58,64,.08);
  color: var(--dark-slate-grey, #003a40);
  font-weight: 700;
}
.vesta-dash-link.is-active svg {
  opacity: 1;
}

.vesta-dash-sidebar-footer {
  padding: 16px 12px 0;
  border-top: 1px solid #f0f4f3;
  margin-top: 12px;
}

/* ── Main content ── */
.vesta-dash-main {
  flex: 1;
  padding: 40px 48px;
  max-width: 900px;
}

.vesta-dash-section {
  display: none;
}
.vesta-dash-section.is-active {
  display: block;
}

.vesta-dash-heading {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--dark-slate-grey, #003a40);
  margin: 0 0 6px;
  font-family: Metrisch, sans-serif;
}
.vesta-dash-subheading {
  font-size: .93rem;
  color: #6b7280;
  margin: 0 0 32px;
  font-family: Metrisch, sans-serif;
}

/* ── Placeholder (em construção) ── */
.vesta-dash-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px dashed #d1d9d8;
  padding: 48px;
  text-align: center;
  gap: 14px;
}
.vesta-dash-placeholder svg {
  color: #c0cac9;
}
.vesta-dash-placeholder p {
  color: #9ca3af;
  font-size: .9rem;
  margin: 0;
  font-family: Metrisch, sans-serif;
}

/* ── Favoritos ── */
.vesta-favorites-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.vesta-fav-tab {
  padding: 8px 18px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all .2s ease;
  font-family: Metrisch, sans-serif;
}
.vesta-fav-tab:hover,
.vesta-fav-tab.is-active {
  background: var(--dark-slate-grey, #003a40);
  color: #fff;
  border-color: var(--dark-slate-grey, #003a40);
}
.vesta-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.vesta-fav-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.vesta-fav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,58,64,.12);
}
.vesta-fav-card-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vesta-fav-card-img {
  height: 140px;
  background: #e0e9de no-repeat center/cover;
}
.vesta-fav-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vesta-fav-card-type {
  font-size: .72rem;
  font-weight: 700;
  color: var(--olive, #89764e);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-family: Metrisch, sans-serif;
}
.vesta-fav-card-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark-slate-grey, #003a40);
  margin: 0;
  line-height: 1.35;
  font-family: Metrisch, sans-serif;
}
.vesta-fav-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 14px;
}
.vesta-fav-see {
  font-size: .8rem;
  color: var(--dark-slate-grey, #003a40);
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
  font-family: Metrisch, sans-serif;
}
.vesta-fav-see:hover { opacity: .7; }
.vesta-fav-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #e05252;
  font-size: .78rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .2s;
  font-family: Metrisch, sans-serif;
}
.vesta-fav-remove:hover { background: #fef2f2; }

.vesta-fav-empty {
  text-align: center;
  padding: 60px 24px;
  color: #9ca3af;
  font-size: .93rem;
  font-family: Metrisch, sans-serif;
}
.vesta-fav-empty svg {
  display: block;
  margin: 0 auto 14px;
  opacity: .35;
}

.vesta-fav-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px;
  color: #9ca3af;
  font-family: Metrisch, sans-serif;
}

/* ── Heart button (universal) ── */
.vesta-heart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.vesta-heart-btn:hover {
  background: #fff;
  border-color: #f87171;
  transform: scale(1.12);
}
.vesta-heart-btn svg {
  transition: fill .2s ease, stroke .2s ease, transform .2s ease;
}
.vesta-heart-btn.is-favorited {
  background: #fef2f2;
  border-color: #f87171;
}
.vesta-heart-btn.is-favorited svg {
  fill: #ef4444;
  stroke: #ef4444;
  transform: scale(1.1);
}
.vesta-heart-btn.is-loading {
  pointer-events: none;
  opacity: .5;
}

/* Card actions wrapper */
.vesta-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Favorite action button (single post/curso) ── */
.vesta-fav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  background: rgba(255,255,255,.9);
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  font-family: Metrisch, sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: #6b7280;
  transition: all .2s ease;
  backdrop-filter: blur(4px);
  text-decoration: none;
}
.vesta-fav-action:hover {
  border-color: #f87171;
  color: #ef4444;
}
.vesta-fav-action svg {
  flex-shrink: 0;
  transition: fill .2s, stroke .2s;
}
.vesta-fav-action.is-favorited {
  border-color: #f87171;
  color: #ef4444;
  background: #fef2f2;
}
.vesta-fav-action.is-favorited svg {
  fill: #ef4444;
  stroke: #ef4444;
}
.vesta-fav-action.is-loading {
  pointer-events: none;
  opacity: .5;
}

/* ── Login Modal ── */
.vesta-login-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
  backdrop-filter: blur(2px);
}
.vesta-login-modal-backdrop.is-open {
  visibility: visible;
  opacity: 1;
}
.vesta-login-modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(24px);
  transition: transform .3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.vesta-login-modal-backdrop.is-open .vesta-login-modal {
  transform: translateY(0);
}
.vesta-login-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 6px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.vesta-login-modal-close:hover {
  color: #374151;
  background: #f5f6f7;
}
.vesta-login-modal-icon {
  width: 58px;
  height: 58px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #ef4444;
}
.vesta-login-modal h3 {
  font-family: Metrisch, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-slate-grey, #003a40);
  margin: 0 0 8px;
}
.vesta-login-modal p {
  color: #6b7280;
  font-size: .9rem;
  margin: 0 0 28px;
  line-height: 1.5;
  font-family: Metrisch, sans-serif;
}
.vesta-login-modal-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--dark-slate-grey, #003a40);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: Metrisch, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease;
}
.vesta-login-modal-btn:hover {
  background: #004d55;
  color: #fff;
}

/* ── Mobile sidebar ── */
.vesta-dash-mob-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e8eceb;
  font-size: .93rem;
  font-weight: 600;
  color: var(--dark-slate-grey, #003a40);
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: Metrisch, sans-serif;
  border-bottom: 1px solid #e8eceb;
}

@media (max-width: 768px) {
  .vesta-dashboard-wrap {
    flex-direction: column;
    padding-top: 60px;
  }
  .vesta-dash-sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 0;
    border-right: none;
    overflow: hidden;
    transition: max-height .35s ease;
    max-height: 52px;
  }
  .vesta-dash-sidebar.is-open {
    max-height: 500px;
  }
  .vesta-dash-mob-toggle {
    display: flex;
  }
  .vesta-dash-logo {
    display: none;
  }
  .vesta-dash-nav {
    padding: 8px 12px 16px;
  }
  .vesta-dash-main {
    padding: 24px 20px;
    max-width: 100%;
  }
  .vesta-fav-grid {
    grid-template-columns: 1fr;
  }
}
