/* ===== VARIABLES CSS PRINCIPALES ===== */
:root {
  --primary-color: #6a0dad;
  --secondary-color: #4a0080;
  --text-color: #e0e0e0;
  --bg-color: #1a1a1a;
  --card-bg: #2a2a2a;
  --orange-color: #ff8c00;
  --purple-color: #8b5cf6;
}

/* ===== ESTILOS BASE ===== */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Roboto", sans-serif;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
  background-color: rgba(106, 13, 173, 0.8) !important;
  transition: all 0.3s ease-in-out;
}
.navbar.scrolled {
  background-color: rgba(74, 0, 128, 0.95) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.nav-link {
  position: relative;
  color: var(--text-color) !important;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--text-color);
  transition: all 0.3s ease-in-out;
}
.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* ===== TARJETAS Y BOTONES ===== */
.card {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(106, 13, 173, 0.3);
}

/* ===== CLASES FALTANTES ===== */
.text-orange {
  color: var(--orange-color) !important;
}
.bg-purple {
  background-color: var(--purple-color) !important;
}
.text-purple {
  color: var(--purple-color) !important;
}

/* ===== SECCIONES ===== */
.section {
  padding: 80px 0;
}

/* ===== IMÁGENES Y ZOOM ===== */
.img-zoom {
  cursor: pointer;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}
.img-zoom:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ===== BOTÓN VOLVER ARRIBA ===== */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
}
#back-to-top:hover {
  transform: translateY(-3px);
}

/* ===== MODAL ===== */
.modal-content {
  background-color: var(--card-bg);
  color: var(--text-color);
}

/* ===== ICONOS SOCIALES ===== */
.social-icons a {
  color: var(--text-color);
  margin: 0 10px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

/* ===== LAYOUT MASONRY PARA MULTIMEDIA DISCORD ===== */
.masonry-container {
  column-count: 1;
  column-gap: 1.5rem;
  column-fill: balance;
}

@media (min-width: 576px) {
  .masonry-container {
    column-count: 2;
  }
}

@media (min-width: 768px) {
  .masonry-container {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .masonry-container {
    column-count: 3;
  }
}

@media (min-width: 1200px) {
  .masonry-container {
    column-count: 4;
  }
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

/* ===== TARJETAS MULTIMEDIA MEJORADAS ===== */
.discord-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(106, 13, 173, 0.1) 100%);
  border-radius: 16px;
  border: 1px solid rgba(106, 13, 173, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.discord-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(106, 13, 173, 0.4);
  border-color: rgba(106, 13, 173, 0.5);
}

.discord-card-header {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.discord-author {
  font-weight: 700;
  font-size: 1rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.discord-card-body {
  padding: 1rem;
}

.discord-content-text {
  background: rgba(106, 13, 173, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
  border-left: 3px solid var(--primary-color);
}

.discord-media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.discord-image,
.discord-gif {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.discord-image:hover,
.discord-gif:hover {
  transform: scale(1.05);
}

.discord-video {
  width: 100%;
  border-radius: 12px;
}

.youtube-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.youtube-thumbnail::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  background: rgba(255, 0, 0, 0.8);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.youtube-thumbnail:hover::after {
  background: rgba(255, 0, 0, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.discord-card-footer {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(106, 13, 173, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(224, 224, 224, 0.7);
}

.media-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.media-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.media-badge.youtube {
  background: #ff0000;
}

.media-badge.twitch {
  background: #9146ff;
}

.media-badge.gif {
  background: #00d4aa;
}

.media-badge.image {
  background: #0099ff;
}

.media-badge.video {
  background: #ff6b35;
}

/* ===== LOADING Y ESTADOS ===== */
.loading-skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.error-message {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 8px;
  padding: 1rem;
  color: #f8d7da;
  text-align: center;
}

/* ===== SEPARADORES DE GALERÍA ===== */
.gallery-section-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== RESPONSIVE ADICIONAL ===== */
@media (max-width: 575px) {
  .masonry-container {
    column-count: 1;
    column-gap: 1rem;
  }

  .masonry-item {
    margin-bottom: 1rem;
  }

  .discord-card-body {
    padding: 0.75rem;
  }

  .youtube-thumbnail::after {
    font-size: 2rem;
    width: 60px;
    height: 60px;
  }
}

.discord-gif, .discord-media {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

video.discord-gif {
    max-height: 320px;
    background-color: #000;
}

