/* =========================================================
   Academia matiads — CSS específico del portal
   Hereda variables de /assets/css/style.css
   ========================================================= */

/* Nav override para academia */
.academy-nav .nav__logo { font-family: 'Kanit', system-ui, sans-serif; }

/* User menu (avatar + dropdown) */
.academy-user-menu { position: relative; }
.academy-user-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--text); font-family: inherit; font-size: .85rem;
  cursor: pointer; transition: background .2s;
}
.academy-user-toggle:hover { background: rgba(255,255,255,.08); }
.academy-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
}
.academy-user-name {
  font-weight: 500; max-width: 100px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.academy-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; min-width: 180px; padding: 6px 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 200;
}
.academy-user-menu.open .academy-dropdown { display: block; }
.academy-dropdown a {
  display: block; padding: 10px 16px; font-size: .85rem;
  color: var(--text); transition: background .15s;
}
.academy-dropdown a:hover { background: rgba(255,255,255,.05); }

/* Close dropdown on outside click */
@media (min-width: 1px) {
  .academy-user-menu.open .academy-dropdown { animation: dropIn .15s ease; }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Google login button */
.btn-google {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 28px; border-radius: 12px;
  background: #fff; color: #3c4043; font-family: inherit;
  font-size: .95rem; font-weight: 500; border: 1px solid #dadce0;
  cursor: pointer; transition: box-shadow .2s, transform .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.btn-google:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transform: translateY(-1px);
}
.btn-google svg { flex-shrink: 0; }

/* Dashboard empty state */
.dashboard-empty-state {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 40px 28px; text-align: center;
  color: var(--muted); font-size: .95rem; line-height: 1.7;
  margin-bottom: 48px;
}

/* Product cards */
.product-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px; display: flex;
  flex-direction: column; gap: 10px; transition: border-color .2s;
}
.product-card:hover { border-color: var(--blue); }
.product-card h3 { font-size: 1rem; font-weight: 600; }
.product-card p { font-size: .82rem; color: var(--muted); line-height: 1.5; flex: 1; }
.product-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line);
}
.product-card__price {
  font-size: 1.1rem; font-weight: 700;
  background: var(--grad-brand); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
  .academy-user-name { display: none; }
  .academy-user-toggle svg { display: none; }
}
@media (max-width: 640px) {
  .dashboard-empty-state { padding: 28px 20px; }
}
