/*
==================================================
File: public/CSS/pages.css
Styles spécifiques aux pages OTS
⚠️ Rien de réutilisable ici (sinon → components.css)
==================================================
*/

/* =================================================
   DASHBOARD
   ================================================= */

/* Header du dashboard (titre + sous-texte) */
.dashboard-header {
  margin-bottom: 28px;
}

.dashboard-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
}

.dashboard-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Grille KPI (layout spécifique dashboard) */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

/* Sections dashboard (ex : accès rapide, activité) */
.dashboard-section {
  margin-bottom: 36px;
}

.dashboard-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* =================================================
   USERS
   ================================================= */

/* Wrapper spécifique page users */
.users-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Lien d’action dans tableau users */
.users-action {
  color: var(--primary);
  font-weight: 500;
}

.users-action:hover {
  text-decoration: underline;
}

/* Message vide users */
.users-empty {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  padding: 32px 0;
}

/* =================================================
   COMPANIES
   ================================================= */

/* Page liste entreprises */
.companies-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =================================================
   COMPANY VIEW (fiche entreprise)
   ================================================= */

/* Conteneur fiche entreprise */
.company-view {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Grille d’infos entreprise */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Retour */
.company-back {
  margin-top: 24px;
}

.company-back a {
  font-size: 14px;
}

/* =================================================
   AUTH / LOGIN
   ================================================= */

/* Page login */
.auth-page {
  max-width: 420px;
  margin: 80px auto;
}

/* =================================================
   RESPONSIVE (pages only)
   ================================================= */

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================================
   USER PROFILE VIEW (V2) — FIGMA-LIKE
   Page: userView.ejs (nouveau layout)
   ================================================= */

.user-profile-page {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Titre de contenu (pas un header local) */
.user-profile-title h1 {
  font-size: 26px;
  margin-bottom: 6px;
}

.user-profile-title p {
  font-size: 13px;
}

/* Layout 2 colonnes + bas pleine largeur */
.user-profile-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}

/* Colonne gauche/droite */
.user-profile-left,
.user-profile-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section bas */
.user-profile-bottom {
  grid-column: 1 / -1;
}

/* Panel spécifique identité (hérite panel de components.css) */
.user-profile-card {
  padding: 22px;
}

/* Bloc identité */
.user-profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-main);
}

.user-profile-identity-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* ✅ Pseudo = nom principal */
.user-profile-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
}

/* ✅ @username = secondaire */
.user-profile-handle {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
}

.user-profile-sub {
  font-size: 13px;
}

/* Info-list (réutilise base components.css) */
.user-profile-info li {
  padding: 10px 0;
}

/* Action bar : style proche des actions globales mais en vertical */
.user-profile-actionbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.user-profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background-color: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 12px 14px;

  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);

  transition: all 0.15s ease;
}

.user-profile-action:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Panels droite */
.user-profile-panel {
  padding: 22px;
}

.user-profile-panel-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.user-profile-panel-title h2 {
  font-size: 16px;
}

.user-profile-panel-title p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Texte */
.user-profile-text {
  font-size: 14px;
  line-height: 1.6;
}

/* Activity */
.user-profile-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-profile-activity-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;

  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
}

.user-profile-activity-date {
  font-weight: 700;
  color: var(--text-main);
}

.user-profile-activity-sep {
  color: var(--text-muted);
}

/* DLC */
.user-profile-dlc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-profile-dlc-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
}

.user-profile-dlc-item i {
  color: var(--text-muted);
}

.user-profile-dlc-text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

/* Lien Steam */
.user-profile-dlc-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;
  border-radius: 10px;

  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);

  transition: all 0.15s ease;
}

.user-profile-dlc-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
  .user-profile-layout {
    grid-template-columns: 1fr;
  }

  .user-profile-dlc {
    grid-template-columns: 1fr;
  }
}



/* =================================================
   LOGIN PAGE
   ================================================= */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-wrapper {
  width: 100%;
  padding: 20px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
