/* CSS */
.color-1 {
  color: #1a505b;
}

.color-2 {
  color: #3b998a;
}

.color-3 {
  color: #5be1b9;
}

.color-4 {
  color: #ff5c57;
}

.color-5 {
  color: #ffd83d;
}

/* CSS Variables */
:root {
  --color-1: #1a505b;
  --color-2: #3b998a;
  --color-3: #5be1b9;
  --color-4: #ff5c57;
  --color-5: #ffd83d;
  --main-color: #3b998a;
  --background-color: #1a1a1a;
  --filter-shadow: #3b998a;
  --second-background: #333;
  --primary-text-color: #f2b23a;
  --medium-font: 1.2rem;
}

@font-face {
  font-family: MinecraftSeven;
  src: url("../MinecraftBold-nMK1.otf") format("truetype");
}

/* Keyframes para animaciones */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(1deg);
  }

  50% {
    transform: translateY(0) rotate(0deg);
  }

  75% {
    transform: translateY(10px) rotate(-1deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgb(59 153 158 / 70%));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgb(59 153 158 / 90%));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgb(59 153 158 / 70%));
  }
}

@keyframes rotate-hue {
  0% {
    filter: drop-shadow(0 0 15px rgb(59 153 158 / 80%)) hue-rotate(0deg);
  }

  50% {
    filter: drop-shadow(0 0 20px rgb(226 137 56 / 80%)) hue-rotate(60deg);
  }

  100% {
    filter: drop-shadow(0 0 15px rgb(59 153 158 / 80%)) hue-rotate(0deg);
  }
}

@keyframes energize {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

body {
  font-family: MinecraftSeven, Arial, sans-serif;
  background-color: #1a1a1a;
  color: #fff;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Bloquea el scroll del body cuando el menú móvil está abierto */
body.menu-open {
  overflow: hidden;
}

header {
  position: relative;
  background: url("../header-background.jpg") center/cover no-repeat;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: blur(5px);
  z-index: 0;
}

header nav {
  position: relative;
  padding: 0.5rem 0;
  background-color: rgb(0 0 0 / 80%);
  z-index: 2;
}

header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav ul li {
  margin: 0 0.5rem;
  position: relative;
}

header nav ul li a {
  color: var(--color-5);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.7rem 1.2rem;
  display: block;
  position: relative;
  border-radius: 6px;
  background-color: transparent;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

header nav ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  z-index: -1;
  border-radius: 4px;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgb(255 255 255 / 30%) 0%,
    rgb(255 255 255 / 0%) 70%
  );
  opacity: 0;
  transform: scale(0);
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

header nav ul li a:hover {
  color: #fff;
  border-color: var(--main-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgb(59 153 158 / 40%);
  text-shadow: 0 0 5px rgb(255 255 255 / 50%);
  letter-spacing: 1px;
}

header nav ul li a:hover::before {
  opacity: 0.2;
  transform: translateY(0);
}

header nav ul li a:hover::after {
  opacity: 1;
  transform: scale(1);
}

header nav ul li a:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgb(59 153 158 / 40%);
}

header nav ul li.active a {
  color: #fff;
  border-color: var(--main-color);
  background-color: rgb(59 153 158 / 20%);
}

.nav-toggle {
  display: none; /* Oculto en escritorio */
}

header .hero {
  position: relative;
  padding: 4rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(0 0 0 / 60%);
  z-index: 2;
}

.hero-container {
  width: 66%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-radius: 10px;
}

.minecraft-widget,
.discord-widget {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 20px;
  background-color: rgb(0 0 0 / 70%);
  border-radius: 10px;
  transition: all 0.2s ease-out;
  box-shadow: 0 4px 8px rgb(0 0 0 / 30%);
  max-width: 280px;
  flex: 1;
}

.minecraft-widget:hover,
.discord-widget:hover {
  filter: drop-shadow(0 0 5px var(--filter-shadow));
}

.minecraft-widget.copy-success {
  background-color: rgb(59 153 158 / 30%);
  transform: scale(0.98);
}

.widget-icon {
  position: relative;
}

.widget-icon i {
  color: var(--main-color);
  font-size: 50px;
}

.player-count,
.discord-count {
  position: absolute;
  top: -20px;
  background: var(--main-color);
  padding: 3px 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 40px;
  color: var(--background-color);
  font-weight: bold;
  font-size: 1rem;
  font-family: Arial, sans-serif;
}

.description-widget {
  margin-left: 20px;
  letter-spacing: 1px;
}

.widget-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--medium-font);
  color: var(--main-color);
  margin-bottom: 5px;
  margin-top: 0;
}

.widget-description {
  color: var(--primary-text-color);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

a.discord-widget {
  text-decoration: none;
  color: inherit;
}

a.discord-widget .description-widget {
  margin-right: 20px;
  margin-left: 0;
  text-align: right;
}

a.discord-widget:hover {
  filter: drop-shadow(0 0 5px var(--filter-shadow));
  transform: scale(1.02);
}

a.discord-widget:active {
  transform: scale(0.98);
}

.hero-center {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  position: relative;
  cursor: pointer;
}

.hero-logo {
  max-width: 100%;
  max-height: 300px;
  filter: drop-shadow(0 0 15px rgb(59 153 158 / 80%));
  animation: float 6s ease-in-out infinite;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.hero-logo:hover {
  transform: scale(1.05);
  animation: rotate-hue 3s infinite linear;
}

main {
  font-family: Arial, sans-serif;
  width: 66%;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.blog {
  flex: 2 1 0%;
  width: 0;
}

aside {
  flex: 1 1 0%;
  width: 0;
}

footer {
  width: 100%;
  font-family: Arial, sans-serif;
  text-align: center;
}

#notification-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  pointer-events: none;
}

.notification {
  background-color: rgb(0 0 0 / 80%);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgb(0 0 0 / 50%);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  min-width: 200px;
  max-width: 300px;
  justify-content: center;
  font-family: MinecraftSeven, Arial, sans-serif;
  border-left: 4px solid var(--main-color);
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.hide {
  transform: translateY(-20px);
  opacity: 0;
}

.notification i {
  color: var(--main-color);
  font-size: 20px;
  margin-right: 10px;
}

.notification span {
  font-size: 14px;
}

.section-title {
  color: var(--color-5);
  margin-top: 0;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, var(--color-3), var(--color-5));
  border-radius: 3px;
}

.news-item {
  background-color: var(--second-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgb(0 0 0 / 30%);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow:
    0 8px 25px rgb(0 0 0 / 40%),
    0 0 0 1px rgb(59 153 158 / 10%);
}

.news-image {
  position: relative;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--main-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 30%);
}

.news-content {
  padding: 1.5rem;
  position: relative;
}

.news-title {
  color: var(--color-5);
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.news-summary {
  color: #ddd;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 1rem;
}

.news-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-bottom: 1rem;
  color: #bbb;
  line-height: 1.6;
  font-size: 0.95rem;
  border-top: 1px solid rgb(59 153 158 / 20%);
  padding-top: 1rem;
}

.news-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #999;
}

.news-date,
.news-author {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
}

.news-info i {
  margin-right: 5px;
  color: var(--main-color);
  font-size: 1rem;
}

.read-more-btn {
  margin-left: auto;
  background-color: transparent;
  color: var(--color-5);
  border: 2px solid var(--color-3);
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-family: MinecraftSeven, Arial, sans-serif;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.read-more-btn:hover {
  background-color: var(--color-3);
  color: white;
  box-shadow: 0 0 10px rgb(59 153 158 / 50%);
}

.news-navigation {
  display: flex;
  justify-content: center;
}

.news-nav-btn {
  background-color: var(--color-3);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-family: MinecraftSeven, Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgb(0 0 0 / 30%);
}

.news-nav-btn:hover {
  background-color: var(--color-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgb(0 0 0 / 40%);
}

.news-nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgb(0 0 0 / 30%);
}

.news-item.expanded .news-body {
  padding-top: 1rem;
  margin-top: 1rem;
}

/* Estilos para la barra lateral */
.sidebar-container {
  background-color: var(--second-background);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgb(0 0 0 / 20%);
}

.sidebar-title {
  color: var(--color-5);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 8px;
}

.sidebar-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--main-color);
  border-radius: 3px;
}

.vote-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vote-list li {
  margin-bottom: 10px;
}

.vote-link {
  color: #ddd;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: rgb(0 0 0 / 20%);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.vote-link:hover {
  background-color: rgb(59 153 158 / 20%);
  color: var(--color-5);
  transform: translateX(5px);
}

.vote-link::before {
  content: "→";
  margin-right: 10px;
  color: var(--main-color);
}

.top-players {
  padding-left: 25px;
}

.top-players li {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.player-name {
  color: #ddd;
}

.player-score {
  color: var(--color-5);
  font-weight: bold;
}

.social-links {
  display: flex;
  justify-content: space-around;
}

.social-link {
  color: var(--main-color);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--color-5);
  transform: scale(1.2);
}

.events-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event {
  display: flex;
  background-color: rgb(0 0 0 / 20%);
  border-radius: 5px;
  overflow: hidden;
}

.event-date {
  background-color: var(--main-color);
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  min-width: 70px;
}

.event-info {
  padding: 10px;
  flex-grow: 1;
}

.event-title {
  color: #ddd;
  margin: 0 0 5px;
  font-size: 1rem;
}

.event-time {
  color: #999;
  margin: 0;
  font-size: 0.8rem;
}

/* Ajustes para el layout de administración */
.admin-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: calc(100vh - 400px);
  margin: 0 auto;
  max-width: 90%;
  gap: 1.5rem;
  padding: 20px 0;
  align-items: flex-start;
}

.admin-layout .admin-sidebar {
  flex: 0 0 180px; /* No crece, no se encoge, ancho fijo de 180px */
  background-color: var(--second-background);
  border-radius: 10px;
  padding: 12px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.admin-layout .admin-content {
  flex: 1; /* Ocupa todo el espacio restante */
  background-color: var(--second-background);
  border-radius: 10px;
  padding: 30px;
  min-width: 0; /* Permite que el contenido se comprima si es necesario */
}

/* Media queries para admin layout */
@media (width <= 992px) {
  .admin-layout {
    max-width: 90%;
    flex-direction: column;
    gap: 1.5rem;
  }

  .admin-layout .admin-sidebar {
    display: none; /* Ocultar la sidebar en pantallas menores a 992px */
  }

  .admin-layout .admin-content {
    width: 100%;
    min-width: 0;
  }
}

@media (width <= 768px) {
  .admin-layout {
    max-width: 95%;
    padding: 10px 0;
  }

  .admin-layout .admin-sidebar {
    display: none; /* Asegurar que esté oculta también en móviles */
  }
}

@media (width <= 768px) {
  .admin-layout {
    max-width: 95%;
    padding: 10px 0;
  }

  .admin-layout .admin-sidebar {
    display: none; /* Asegurar que esté oculta también en móviles */
  }
}

.admin-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgb(59 153 158 / 30%);
  padding-bottom: 15px;
}

.admin-title {
  color: var(--color-5);
  font-size: 1.8rem;
  margin: 0;
}

.admin-subtitle {
  color: #aaa;
  font-size: 0.9rem;
  margin: 5px 0 0;
}

.admin-user {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.admin-user-info {
  text-align: right;
  margin-right: 10px;
}

.admin-username {
  color: var(--color-5);
  font-weight: bold;
  font-size: 1rem;
}

.admin-role {
  color: #aaa;
  font-size: 0.8rem;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.menu-section {
  margin-bottom: 25px;
}

.menu-title {
  color: #aaa;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  margin-bottom: 5px;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #eee;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.menu-link i {
  margin-right: 10px;
  font-size: 1.2rem;
  color: var(--main-color);
}

.menu-link:hover {
  background-color: rgb(59 153 158 / 10%);
  transform: translateX(5px);
}

.menu-link.active {
  background-color: rgb(59 153 158 / 30%);
  color: var(--color-5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: rgb(0 0 0 / 20%);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgb(0 0 0 / 20%);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--main-color);
}

.stat-title {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 5px;
}

.stat-value {
  color: var(--color-5);
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}

.stat-change {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}

.stat-increase {
  color: #4caf50;
}

.stat-decrease {
  color: #f44336;
}

.stat-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  opacity: 0.3;
  color: var(--main-color);
}

.content-panel {
  background-color: rgb(0 0 0 / 20%);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgb(59 153 158 / 20%);
  padding-bottom: 10px;
}

.panel-title {
  color: var(--color-5);
  font-size: 1.2rem;
  margin: 0;
}

.panel-actions {
  display: flex;
  gap: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.admin-table th {
  text-align: left;
  padding: 12px 15px;
  background-color: rgb(59 153 158 / 10%);
  color: var(--color-5);
  font-size: 0.9rem;
  border-bottom: 2px solid rgb(59 153 158 / 20%);
}

.admin-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgb(59 153 158 / 10%);
  color: #ddd;
  font-size: 0.9rem;
}

.admin-table tr:hover {
  background-color: rgb(0 0 0 / 20%);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.status-active,
.status-admin {
  background-color: rgb(76 175 80 / 20%);
  color: #4caf50;
}

.status-inactive {
  background-color: rgb(244 67 54 / 20%);
  color: #f44336;
}

.status-pending,
.status-draft {
  background-color: rgb(255 193 7 / 20%);
  color: #ffc107;
}

.status-published {
  background-color: rgb(46 204 113 / 20%);
  color: #2ecc71;
}

.status-archived {
  background-color: rgb(149 165 166 / 20%);
  color: #95a5a6;
}

.status-user {
  background-color: rgb(52 152 219 / 20%);
  color: #3498db;
}

.admin-btn {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.admin-btn i {
  margin-right: 5px;
}

.admin-btn:hover {
  background-color: var(--color-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
}

.admin-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background-color: var(--main-color);
}

.btn-secondary {
  background-color: #666;
}

.btn-danger {
  background-color: #e74c3c;
}

.btn-success {
  background-color: #2ecc71;
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-label {
  display: block;
  margin-bottom: 5px;
  color: #ddd;
  font-size: 0.9rem;
}

.admin-form-input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid rgb(59 153 158 / 30%);
  background-color: rgb(0 0 0 / 20%);
  border-radius: 5px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.admin-form-input:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 10px rgb(59 153 158 / 30%);
}

.admin-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.tabs {
  display: flex;
  border-bottom: 1px solid rgb(59 153 158 / 20%);
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  color: #aaa;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab:hover {
  color: var(--color-5);
}

.tab.active {
  color: var(--color-5);
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--main-color);
  border-radius: 3px 3px 0 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-notification {
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.admin-notification i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.notification-success {
  background-color: rgb(46 204 113 / 10%);
  border-left: 4px solid #2ecc71;
  color: #2ecc71;
}

.notification-error {
  background-color: rgb(231 76 60 / 10%);
  border-left: 4px solid #e74c3c;
  color: #e74c3c;
}

.notification-warning {
  background-color: rgb(241 196 15 / 10%);
  border-left: 4px solid #f1c40f;
  color: #f1c40f;
}

.notification-info {
  background-color: rgb(52 152 219 / 10%);
  border-left: 4px solid #3498db;
  color: #3498db;
}

.login-container {
  width: 100%;
  max-width: 450px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--second-background);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgb(0 0 0 / 30%);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--color-3), var(--color-5));
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-title {
  color: var(--color-5);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: #bbb;
  font-size: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--main-color);
  font-size: 1.2rem;
}

.form-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid rgb(158 81 164 / 30%);
  background-color: rgb(0 0 0 / 20%);
  border-radius: 5px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 10px rgb(158 81 164 / 30%);
}

.form-input::placeholder {
  color: #777;
}

.login-btn {
  background-color: var(--color-3);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-family: MinecraftSeven, Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.login-btn:hover {
  background-color: var(--color-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgb(0 0 0 / 30%);
}

.login-btn:active {
  transform: translateY(0);
}

.login-options {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 10px;
}

.login-option {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-option:hover {
  color: var(--color-5);
}

.error-message {
  background-color: rgb(220 53 69 / 10%);
  color: #ff6b6b;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #ff6b6b;
  font-size: 0.9rem;
}

.go-back {
  display: flex;
  align-items: center;
  color: var(--color-5);
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.go-back i {
  margin-right: 5px;
}

.go-back:hover {
  transform: translateX(-5px);
}

.delete-confirm {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 70%);
  display: none;
  font-family: Arial, sans-serif;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.delete-dialog {
  background-color: var(--second-background);
  border-radius: 10px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 5px 15px rgb(0 0 0 / 30%);
}

.delete-title {
  color: var(--color-5);
  margin-top: 0;
  margin-bottom: 20px;
}

.delete-message {
  color: #ddd;
  margin-bottom: 30px;
}

.delete-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.delete-btn {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: MinecraftSeven, Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.user-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.search-input {
  width: 250px;
  padding: 8px 15px;
  border: 2px solid var(--main-color);
  border-radius: 5px;
  background-color: rgb(0 0 0 / 20%);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-3);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 2rem 0 1rem;
  list-style: none;
  padding: 0;
}

.pagination-item {
  background: var(--second-background);
  color: var(--color-5);
  border: 2px solid var(--main-color);
  border-radius: 5px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 1rem;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  user-select: none;
}

.pagination-item.active,
.pagination-item:hover {
  background: var(--main-color);
  color: #fff;
  border-color: var(--color-3);
}

.pagination-item.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(0 0 0 / 70%);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Asegura que el overlay ocupa toda la pantalla */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(0 0 0 / 80%);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

/* Cuando el modal está visible */
.modal.show {
  display: flex !important;
}

/* El contenido del modal por defecto es un cuadro centrado */
.modal-content {
  background: var(--second-background);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 40%);
  padding: 30px;
  min-width: 320px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  color: #fff;
  animation: modalSlideIn 0.3s ease-out;
}

/* Para móviles: el modal ocupa todo el ancho y alto */
@media (width <= 600px) {
  .modal-content {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    padding: 15px 5px !important;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  color: #fff;
  background-color: rgb(255 255 255 / 10%);
  border-radius: 50%;
}

.log-console {
  background: #181818;
  border-radius: 8px;
  padding: 18px 12px;
  font-family: "Fira Mono", Consolas, monospace;
  font-size: 0.98rem;
  max-height: 500px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
}

.log-line {
  padding: 6px 0;
  border-bottom: 1px solid rgb(59 153 158 / 7%);
  white-space: pre-wrap;
  word-break: break-all;
}

.log-line:last-child {
  border-bottom: none;
}

.level-info {
  color: #5be1b9;
}
.level-warning {
  color: #ffd83d;
}
.level-error {
  color: #ff5c57;
  font-weight: bold;
}
.level-debug {
  color: #bbb;
}

/* Media queries para responsividad */
@media (width <= 992px) {
  main {
    width: 90%;
    flex-direction: column;
  }

  .blog,
  aside {
    width: 100%;
  }

  .admin-dashboard {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

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

@media (width <= 768px) {
  /* --- Arreglo de Navegación y Header --- */
  header {
    padding-top: 56px; /* Añade espacio para la nav fija */
  }

  header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 56px;
    z-index: 1000;
    background-color: rgb(0 0 0 / 95%);
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--color-5);
    font-size: 2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    z-index: 1010;
    cursor: pointer;
  }

  header nav ul {
    display: none;
  }

  header nav ul.open {
    display: flex;
    flex-direction: column;
    background: rgb(0 0 0 / 97%);
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 0;
    margin: 0;
    z-index: 1005;
  }

  header nav ul li {
    margin: 0;
    width: 100%;
  }

  header nav ul li a {
    text-align: center;
    padding: 1.2rem 1rem;
    font-size: 1.1rem;
    border-radius: 0;
    border-bottom: 1px solid rgb(59 153 158 / 10%);
  }

  header nav ul li:last-child a {
    border-bottom: none;
  }

  /* --- Ajustes de Layout General --- */
  header .hero {
    padding: 2rem 0;
  }

  .hero-container {
    flex-direction: column !important;
    width: 100% !important;
    padding: 1rem !important;
    gap: 1.5rem;
  }

  .minecraft-widget,
  .discord-widget {
    max-width: 100% !important;
    width: 90% !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .hero-center {
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .hero-logo {
    max-width: 90vw !important;
    max-height: 160px !important;
  }

  main {
    flex-direction: column !important;
    width: 95% !important;
    padding: 10px !important;
    gap: 1.5rem !important;
  }

  .blog,
  aside {
    width: 100% !important;
    min-width: 0 !important;
  }

  .news-image img {
    height: 120px !important;
  }

  .sidebar-container {
    padding: 1rem !important;
  }

  .section-title {
    font-size: 1.4rem !important;
    padding-bottom: 8px !important;
  }

  .news-title {
    font-size: 1.2rem !important;
  }

  .news-summary,
  .news-body {
    font-size: 0.95rem !important;
  }

  .read-more-btn,
  .news-nav-btn {
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
  }

  .social-links {
    flex-wrap: wrap !important;
    gap: 15px !important;
  }

  .news-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-date,
  .news-author {
    margin-bottom: 8px;
  }

  .read-more-btn {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  .admin-header {
    flex-direction: column;
    text-align: center;
  }

  .admin-user {
    margin: 20px auto 0;
  }

  .admin-user-info {
    text-align: center;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-actions {
    margin-top: 10px;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}

@media (width <= 480px) {
  .hero-logo {
    max-height: 120px !important;
  }

  .news-image img {
    height: 100px !important;
  }

  .sidebar-container {
    padding: 0.8rem !important;
  }

  .section-title {
    font-size: 1.2rem !important;
  }

  .login-container {
    width: 90%;
    padding: 1.5rem;
  }

  .login-options {
    flex-direction: column;
    align-items: center;
  }
}

.no-more-news {
  color: #999;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}
.log-info {
  color: #2196f3;
}
.log-warning {
  color: #ff9800;
}
.log-error,
.log-critical {
  color: #f44336;
}
.log-debug {
  color: #9e9e9e;
}
