/* ==========================================================================
   THE LAST OF US THEME - Nicolhetti Profile
   Inspirado en el menú principal del juego con estética post-apocalíptica
   ========================================================================== */

@import url("../base_old.css");
@font-face {
  font-display: swap;
  font-family: "Press Gothic";
  font-style: normal;
  font-weight: 600;
  src: url("../../fonts/pressgothic.otf");
}

/* ==========================================================================
     VARIABLES Y CONFIGURACIÓN BASE
     ========================================================================== */

:root {
  --tlou-primary: #fbf7b0;
  --tlou-accent: #5b5c1e;
  --tlou-dark: #1a1a1a;
  --tlou-text: #ffffff;
  --tlou-shadow: rgba(251, 247, 176, 0.8);
  --tlou-glow: rgba(91, 92, 30, 0.4);
}

body {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  font-family: "Press Gothic", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tlou-text);
  background: var(--tlou-dark);
}

/* ==========================================================================
     VIDEO BACKGROUND - Efecto cinemático
     ========================================================================== */

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

/* Overlay oscuro para mejorar legibilidad */
.background-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Efecto de viñeta en los bordes */
.background-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
  pointer-events: none;
}

video.background-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.1);
}

/* ==========================================================================
     AUDIO MESSAGE - Estilo minimalista TLOU
     ========================================================================== */

.audio-message {
  background: rgba(0, 0, 0, 0.7);
  color: var(--tlou-primary);
  border-left: 3px solid var(--tlou-primary);
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ==========================================================================
     CONTAINER - Anclado a la izquierda como el menú de TLOU
     ========================================================================== */

.container {
  position: relative;
  float: left;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 5%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100vh;
}

.content-wrapper {
  width: 100%;
  animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
     PROFILE HEADER - Avatar con efecto post-apocalíptico
     ========================================================================== */

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background-position: center;
  border: 3px solid rgba(91, 92, 30, 0.4);
  box-shadow:
    0 0 20px var(--tlou-shadow),
    inset 0 0 20px var(--tlou-glow);
  filter: brightness(1.2) contrast(1.3);
  transition: all 0.4s ease;
  position: relative;
}

/* Efecto de brillo al hover */
.avatar::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, var(--tlou-primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.avatar:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 40px var(--tlou-shadow),
    inset 0 0 30px var(--tlou-glow);
  border-color: var(--tlou-accent);
}

.avatar:hover::before {
  opacity: 0.5;
}

/* ==========================================================================
     TYPOGRAPHY - Estilo rudo y desgastado
     ========================================================================== */

.profile-name {
  font-family: "Press Gothic", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--tlou-text);
  letter-spacing: 3px;
  margin: 0;
  text-align: left;
  text-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.8),
    0 0 10px rgba(251, 247, 176, 0.3);
  line-height: 1.1;
  position: relative;
}

/* Efecto de texto desgastado */
.profile-name::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  color: var(--tlou-accent);
  opacity: 0.3;
  z-index: -1;
}

.profile-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 1rem 0 2rem 0;
  letter-spacing: 1.5px;
  text-align: left;
  line-height: 1.6;
  max-width: 400px;
  border-left: 2px solid var(--tlou-accent);
  padding-left: 15px;
}

/* ==========================================================================
     LINKS CONTAINER - Lista vertical tipo menú
     ========================================================================== */

.links-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 450px;
}

/* ==========================================================================
     LINK BUTTONS - Estilo minimalista sin fondo
     ========================================================================== */

.link-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 20px 14px 0;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Efecto de línea que crece desde la izquierda */
.link-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--tlou-primary), transparent);
  transform: translateY(-50%);
  transition: width 0.3s ease;
}

/* Estado hover/focus */
.link-button:hover,
.link-button:focus {
  color: var(--tlou-text);
  border-left-color: var(--tlou-primary);
  padding-left: 30px;
  outline: none;
  text-shadow: 0 0 8px rgba(251, 247, 176, 0.5);
}

.link-button:hover::before,
.link-button:focus::before {
  width: 100%;
}

/* Estado activo (click) */
.link-button:active {
  transform: translateX(5px);
  color: var(--tlou-primary);
}

/* Efecto de brillo sutil al pasar el mouse */
.link-button:hover .link-icon {
  filter: drop-shadow(0 0 8px var(--tlou-shadow));
  transform: rotate(-5deg) scale(1.1);
}

/* ==========================================================================
     ICONS - Estilo integrado con el texto
     ========================================================================== */

.link-icon {
  margin-right: 15px;
  width: 22px;
  height: 22px;
  filter: brightness(0.7) contrast(1.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.link-button:hover .link-icon,
.link-button:focus .link-icon {
  filter: brightness(1.2) contrast(1.3) drop-shadow(0 0 4px var(--tlou-primary));
}

/* ==========================================================================
     SCROLLBAR - Invisible pero funcional
     ========================================================================== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(251, 247, 176, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 247, 176, 0.4);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 247, 176, 0.2) transparent;
}

/* ==========================================================================
     EFECTOS ADICIONALES - Detalles atmosféricos
     ========================================================================== */

/* Efecto de polvo/partículas sutiles */
/* @keyframes dust {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

.content-wrapper::before {
  content: "";
  position: fixed;
  width: 2px;
  height: 2px;
  background: rgba(251, 247, 176, 0.3);
  border-radius: 50%;
  animation: dust 15s linear infinite;
  left: 20%;
  pointer-events: none;
} */

/* Línea decorativa superior */
.content-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, var(--tlou-primary), transparent);
  opacity: 0.5;
}

/* ==========================================================================
     RESPONSIVE DESIGN - Adaptación a diferentes pantallas
     ========================================================================== */

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 8%;
  }

  .profile-name {
    font-size: 2rem;
  }

  .avatar {
    width: 64px;
    height: 64px;
  }

  .link-button {
    font-size: 16px;
    padding: 12px 15px 12px 0;
  }

  .link-button:hover,
  .link-button:focus {
    padding-left: 20px;
  }

  .profile-description {
    font-size: 13px;
    max-width: 100%;
  }

  .audio-message {
    font-size: 11px;
    padding: 8px 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 5%;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .profile-name {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }

  .link-button {
    font-size: 15px;
    padding: 10px 12px 10px 0;
  }

  .link-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
  }
}

/* Pantallas muy pequeñas (móviles en horizontal) */
@media (max-height: 600px) {
  .container {
    align-items: flex-start;
    padding-top: 5vh;
  }

  .profile-header {
    margin-bottom: 1rem;
  }

  .profile-description {
    margin: 0.5rem 0 1rem 0;
  }

  .links-container {
    gap: 5px;
  }

  .link-button {
    padding: 10px 15px 10px 0;
  }
}

/* Pantallas grandes (desktop) */
@media (min-width: 1200px) {
  .container {
    max-width: 650px;
    padding: 0 6%;
  }

  .profile-name {
    font-size: 3.2rem;
    letter-spacing: 4px;
  }

  .avatar {
    width: 96px;
    height: 96px;
  }

  .link-button {
    font-size: 19px;
    padding: 16px 20px 16px 0;
  }

  .link-button:hover,
  .link-button:focus {
    padding-left: 40px;
  }
}

/* ==========================================================================
     ACCESIBILIDAD Y PREFERENCIAS DEL USUARIO
     ========================================================================== */

/* Reducir animaciones para usuarios que lo prefieran */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .link-button:hover,
  .link-button:focus {
    transform: none;
  }
}

/* Alto contraste para mejor legibilidad */
@media (prefers-contrast: high) {
  .link-button {
    border-left-width: 4px;
  }

  .link-button:hover,
  .link-button:focus {
    color: var(--tlou-primary);
    text-shadow: none;
  }

  .profile-name {
    text-shadow: 2px 2px 0 #000;
  }
}

/* Modo de enfoque visible para navegación por teclado */
.link-button:focus-visible {
  outline: 2px solid var(--tlou-primary);
  outline-offset: 4px;
}

/* ==========================================================================
     DETALLES FINALES - Polish y refinamiento
     ========================================================================== */

/* Prevenir selección de texto accidental */
.profile-name {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Mejorar renderizado de fuentes */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Asegurar que los links sean clickeables en toda su área */
.link-button {
  -webkit-tap-highlight-color: transparent;
}

/* Efecto de carga suave */
.content-wrapper > * {
  animation: fadeIn 0.6s ease-out backwards;
}

.content-wrapper > *:nth-child(1) {
  animation-delay: 0.1s;
}

.content-wrapper > *:nth-child(2) {
  animation-delay: 0.2s;
}

.content-wrapper > *:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
