﻿/* Estilos do Sistema de Pontuação e Pódio do Check no Enem */

.podio-period-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.podio-tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border, #dbe4ea);
  background: #ffffff;
  color: var(--text, #1e293b);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.podio-tab-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.podio-tab-btn.active {
  background: #15658f;
  color: #ffffff;
  border-color: #15658f;
  box-shadow: 0 2px 8px rgba(21, 101, 143, 0.25);
}

/* Card Em Breve - Parceiros e Brindes */
.podio-perks-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 50%, #fef9c3 100%);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.podio-perks-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.podio-perks-content h3 {
  margin: 0 0 6px 0;
  color: #92400e;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.podio-soon-tag {
  background: #dc2626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.podio-perks-content p {
  margin: 0;
  color: #78350f;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Visual do Pódio (3 Lugares) */
.podio-stage-wrapper {
  margin-bottom: 30px;
}

.podio-stage {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 14px;
  padding-top: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.podio-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.podio-place-card {
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease;
}

.podio-place-card:hover {
  transform: translateY(-2px);
}

.podio-place-1 .podio-place-card {
  border: 2px solid #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

.podio-place-2 .podio-place-card {
  border: 1px solid #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.podio-place-3 .podio-place-card {
  border: 1px solid #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.podio-medal {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.podio-place-1 .podio-medal {
  font-size: 2.8rem;
}

.podio-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #15658f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.podio-place-1 .podio-avatar-circle {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.podio-place-2 .podio-avatar-circle {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.podio-place-3 .podio-avatar-circle {
  background: linear-gradient(135deg, #c2410c, #ea580c);
}

.podio-student-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text, #0f172a);
  margin-bottom: 4px;
  word-break: break-word;
  max-width: 100%;
}

.podio-place-1 .podio-student-name {
  font-size: 1.2rem;
  color: #92400e;
}

.podio-correct-badge {
  font-size: 1.25rem;
  font-weight: 800;
  color: #15658f;
  margin: 4px 0 2px;
}

.podio-place-1 .podio-correct-badge {
  font-size: 1.5rem;
  color: #b45309;
}

.podio-accuracy-note {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

.podio-step-pedestal {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  padding: 10px 4px;
}

.podio-step-1 {
  height: 130px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.podio-step-2 {
  height: 95px;
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  font-size: 1.7rem;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.2);
}

.podio-step-3 {
  height: 70px;
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.podio-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

/* Tabela de Classificação */
.podio-table-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  overflow: hidden;
  margin-bottom: 24px;
}

.podio-table-heading {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.podio-table-heading h3 {
  margin: 0;
  font-size: 1.1rem;
}

.podio-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.podio-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.podio-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
  color: var(--text, #1e293b);
}

.podio-table tr:last-child td {
  border-bottom: none;
}

.podio-table tr.current-user-row {
  background: #e0f2fe;
}

.podio-table tr.podium-highlight-1 {
  background: #fffbeb;
  font-weight: 600;
}

.podio-table tr.podium-highlight-2 {
  background: #f8fafc;
  font-weight: 600;
}

.podio-table tr.podium-highlight-3 {
  background: #fff7ed;
  font-weight: 600;
}

.podio-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}

.podio-rank-1 { background: #fef3c7; color: #b45309; }
.podio-rank-2 { background: #f1f5f9; color: #475569; }
.podio-rank-3 { background: #ffedd5; color: #c2410c; }
.podio-rank-other { color: #64748b; }

.podio-you-tag {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* Card de Alerta no Perfil para quem está no Pódio */
.profile-podio-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%) !important;
  border: 2px solid #f59e0b !important;
  border-radius: 16px !important;
  padding: 22px 24px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2) !important;
}

.profile-podio-banner-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-podio-banner-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.profile-podio-banner-header h2 {
  margin: 4px 0 6px 0;
  color: #78350f;
  font-size: 1.35rem;
}

.profile-podio-banner-subtitle {
  color: #92400e;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.profile-podio-positions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.profile-podio-badge {
  background: #ffffff;
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.profile-podio-badge b {
  color: #92400e;
  font-size: 1rem;
}

.profile-podio-badge span {
  color: #64748b;
  font-size: 0.85rem;
}

.profile-podio-perks-box {
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed #d97706;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.profile-podio-perks-box b {
  color: #92400e;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
}

.profile-podio-perks-box p {
  color: #78350f;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}

/* Card Informativo no Perfil (para quem ainda não está no pódio) */
.profile-podio-invite {
  border-left: 4px solid #15658f;
  margin-bottom: 24px;
}

.profile-podio-invite-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-podio-invite-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.profile-podio-invite p {
  margin: 4px 0 12px 0;
  color: #475569;
  font-size: 0.92rem;
}

/* Responsividade */
@media (max-width: 640px) {
  .podio-stage {
    gap: 8px;
  }
  .podio-place-card {
    padding: 12px 6px 10px;
  }
  .podio-student-name {
    font-size: 0.9rem;
  }
  .podio-place-1 .podio-student-name {
    font-size: 1rem;
  }
  .podio-correct-badge {
    font-size: 1.1rem;
  }
  .podio-place-1 .podio-correct-badge {
    font-size: 1.25rem;
  }
  .podio-step-1 { height: 100px; font-size: 1.6rem; }
  .podio-step-2 { height: 75px; font-size: 1.4rem; }
  .podio-step-3 { height: 55px; font-size: 1.2rem; }
  .podio-table th:nth-child(4), .podio-table td:nth-child(4) {
    display: none;
  }
}
