/* ════════════════════════════════════════
   APP LAYOUT & NAVEGACIÓN
   ════════════════════════════════════════ */

/* ── Shell principal de la app ── */
#app {
  display: none;
  min-height: 100vh;
  background: var(--paper3);
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

.topbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--crimson);
  letter-spacing: -0.3px;
  white-space: nowrap;
  line-height: 1;
}
.topbar-brand span {
  font-style: italic;
  color: var(--gold);
}

/* ── Buscador ── */
.topbar-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  padding: 0.45rem 0.9rem 0.45rem 2.2rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.85rem;
  background: var(--paper2);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Jost', sans-serif;
}
.topbar-search input:focus {
  border-color: var(--crimson);
  background: var(--paper);
}
/*
.search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink3);
  font-size: 14px;
  width: 14px;  
  height: 14px; 
} */

/* ── Navegación principal ── */
.topbar-nav {
  display: flex;
  gap: 0.2rem;
  margin-left: auto;
}

.nav-btn {
  background: none;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink3);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: color 0.2s, background 0.2s;
  font-family: 'Jost', sans-serif;
  white-space: nowrap;
}
.nav-btn svg          { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.nav-btn.active       { color: var(--crimson); }
.nav-btn.active svg   { stroke: var(--crimson); }
.nav-btn:hover        { background: var(--paper2); color: var(--ink); }

.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 0.5rem;
  border: 2px solid var(--gold);
}

/* ── Body de la app (3 columnas) ── */
.app-body {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  gap: 1.5rem;
}

.sidebar-left  { width: var(--sidebar); flex-shrink: 0; }
.main-feed     { flex: 1; min-width: 0; }
.sidebar-right { width: 260px; flex-shrink: 0; }

/* ── Sidebar izquierdo: tarjeta de perfil mini ── */
.profile-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.profile-card-cover {
  height: 64px;
  background: linear-gradient(135deg, var(--crimson-deep) 0%, var(--crimson) 60%, var(--crimson2) 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.profile-card-cover::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 50%;
}

/*.profile-card-body     { padding: 0 1rem 1rem; margin-top: -24px; }
.profile-card-avatar   { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--paper); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 500; color: #fff; margin-bottom: 8px; }*/
.profile-card-body{
    position: relative;
    padding: 0.75rem 1rem 1rem;
    text-align: center;
}

.profile-card-avatar{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--paper);
    outline: 2px solid var(--gold);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 500;
    color: #fff;

    margin: -28px auto 10px;
    position: relative;
    z-index: 10;
}

.profile-card-name     { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.profile-card-role     { font-size: 0.75rem; color: var(--ink3); margin: 2px 0 8px; }
.profile-card-stats    { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.stat-item             { text-align: center; }
.stat-num              { font-size: 1rem; font-weight: 500; color: var(--crimson); display: block; }
.stat-label            { font-size: 0.68rem; color: var(--ink3); }

/* ── Sidebar izquierdo: navegación secundaria ── */
.side-nav {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.side-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--ink2);
  font-size: 0.875rem;
  border-radius: 12px;
}
.side-nav-item:hover,
.side-nav-item.active { background: var(--crimson-light); color: var(--crimson); }
.side-nav-item svg    { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.side-nav-item .badge { margin-left: auto; background: var(--crimson); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 10px; }

/* ── Sidebar derecho: widgets ── */
.widget {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Artistas sugeridos */
.artist-suggest { display: flex; align-items: center; gap: 9px; margin-bottom: 0.75rem; }
.suggest-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: #fff; flex-shrink: 0; }
.suggest-info   { flex: 1; min-width: 0; }
.suggest-name   { font-size: 0.85rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-role   { font-size: 0.72rem; color: var(--ink3); }

/* Disciplinas / tags de filtro */
.discipline-list { display: flex; flex-wrap: wrap; gap: 6px; }
.disc-tag {
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink2);
}
.disc-tag:hover,
.disc-tag.active { background: var(--crimson); color: #fff; border-color: var(--crimson); }
