/**
 * TrackBans Steam Profiles - Profile Styles
 * Styles for individual Steam profile pages
 */

/* Container principal */
.trackbans-profile-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  max-width: 1000px;
  margin: 40px auto;
  background-color: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  color: #ececec;
}

/* Cabecera */
.profile-header {
  display: flex;
  align-items: center;
  padding: 30px;
  background: linear-gradient(135deg, #0f0f0f, #1f1f1f);
  border-bottom: 2px solid #4CAF50;
  min-height: 200px;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  margin-right: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #4CAF50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  background-color: #131313;
  position: relative;
}

.profile-avatar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #131313 25%, #202020 50%, #131313 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  z-index: 0;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.profile-info h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

/* Detalles basicos */
.profile-details {
  display: flex;
  gap: 40px;
  margin-top: 15px;
}

.detail-item {
  text-align: center;
}

.detail-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 6px;
}

.detail-value {
  font-size: 18px;
  font-weight: 600;
  color: #ececec;
}

.detail-value.banned {
  color: #f44336;
}

/* Seccion de analisis */
.profile-content {
  background-color: #242424;
  padding: 40px 30px;
}

.profile-analysis h2 {
  margin: 0 0 20px;
  font-size: 24px;
  border-bottom: 2px solid #4CAF50;
  padding-bottom: 8px;
}

.analysis-content {
  font-size: 15px;
  line-height: 1.6;
  color: #ddd;
}

/* Barra de probabilidad */
.cheater-probability {
  margin: 30px 0;
  background: #1f1f1f;
  border-radius: 12px;
  padding: 20px;
}

.probability-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.meter-container {
  position: relative;
  background: #333;
  border-radius: 10px;
  height: 24px;
  overflow: hidden;
}

.meter-gradient {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to right, #4CAF50, #FFEB3B, #F44336);
}

.meter-fill {
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  background: #242424;
  transition: width 1s ease-out;
}

.meter-value {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: #aaa;
}

/* Pie de pagina */
.profile-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: #1f1f1f;
  border-top: 2px solid #4CAF50;
}

.profile-timestamp {
  font-size: 13px;
  color: #888;
  font-style: italic;
}

.profile-actions a {
  margin-left: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.steam-button {
  background: #171a21;
  color: #fff;
}

.steam-button:hover {
  background: #2a3f5a;
}

.analyze-button {
  background: #4CAF50;
  color: #111;
}

.analyze-button:hover {
  background: #388E3C;
}

/* Insignias */
.profile-badges {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.profile-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.vac-banned-badge { background: #f44336; }
.new-account-badge { background: #ff9800; }
.high-skill-badge { background: #4CAF50; }
.pro-player-badge { background: #2196F3; }
.youtuber-badge { background: #FF0000; }
.streamer-badge { background: #9146FF; }
.cheater-badge { background: #F44336; }
.legit-badge { background: #4CAF50; }
.verified-badge { background: #FF9800; }

/* Mejoras para las FAQs */
#tb-dynamic-faq {
  background-color: #121212;
  border-radius: 12px;
  padding: 30px;
  margin: 50px auto;
  max-width: 900px;
}

#tb-dynamic-faq h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #fff;
}

#tb-dynamic-faq h2 span {
  color: #00e676;
  font-weight: 700;
}

#tb-dynamic-faq details {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #252525;
}

#tb-dynamic-faq summary {
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  font-size: 17px;
  color: #ffffff;
  outline: none;
}

#tb-dynamic-faq p {
  padding: 0 20px 20px;
  margin: 0;
  line-height: 1.6;
  color: #cccccc;
}

/* Estilos para las clasificaciones */
#classification-text {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

#classification-text.high-risk {
  background-color: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

#classification-text.suspicious {
  background-color: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

#classification-text.safe {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

#classification-text.unrated {
  background-color: rgba(158, 158, 158, 0.2);
  color: #9e9e9e;
}

/* Estilos para VAC ban */
.vac-status {
  display: inline-block;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.vac-status.banned {
  background-color: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.vac-status.clean {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

/* Estilo para los niveles de riesgo en la explicacion */
.risk-indicator {
  font-weight: 700;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin: 0 2px;
}

.risk-low {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.risk-medium {
  background-color: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.risk-high {
  background-color: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

/* Footer de TrackBans */
.trackbans-footer {
  text-align: center;
  margin-top: 40px;
  color: #777;
  font-size: 14px;
}

.trackbans-tagline {
  font-style: italic;
  margin-bottom: 5px;
}

.trackbans-copyright {
  font-size: 12px;
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #0EB63F;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
  .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .profile-details {
    justify-content: center;
    gap: 20px;
  }
  .profile-footer {
    flex-direction: column;
    gap: 12px;
  }
  #tb-dynamic-faq {
    padding: 20px;
    margin: 30px 15px;
  }
}
