body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: white;
}

.navbar {
  padding: 16px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.feed {
  max-width: 500px;
  margin: auto;
  padding: 16px;
}

.post {
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}

.post-header {
  display: flex;
  align-items: center;
  padding: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
}

.post-image {
  width: 100%;
}

.post-text {
  padding: 12px;
  font-size: 14px;
}

.banner {
  height: 360px;
  background:
    linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0.1)),
    url("https://i.imgur.com/B6wxtrE.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.banner-content {
  color: white;
}

.banner h1 {
  font-size: 40px;
  margin: 8px 0;
}

.members {
  font-size: 12px;
  opacity: 0.8;
}

.banner-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.membership-btn {
  display: inline-block;
  padding: 8px 16px;
  background: white;
  color: black;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}

.membership-btn:hover {
  background: #f0f0f0;
}

.active-users {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.active-dot {
  width: 8px;
  height: 8px;
  background: #00ff00;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px #00ff00;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.active-count {
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.tabs span {
  cursor: pointer;
  padding-bottom: 6px;
}

.tabs .active {
  border-bottom: 2px solid black;
  font-weight: 600;
}

.notice {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 16px;
  margin: 24px;
  font-size: 14px;
}

.membership-box {
  background: #f5f5f2;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.membership-box h3 {
  margin-top: 0;
}

.membership-box p {
  margin: 8px 0;
}

.kofi-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.kofi-btn:hover {
  opacity: 0.9;
}

.kofi-btn.zerose { 
  background: #dcb711; 
}

.kofi-btn.melting { 
  background: #3898dd; 
}

.kofi-btn.blooming { 
  background: #46cfca; 
}

/* style.css */

/* 1. LAYOUT PRINCIPAL */
.layout {
  display: flex;
  max-width: 1100px; /* Mantiene el contenido centrado y legible */
  margin: 0 auto;    /* Centra el bloque en la pantalla */
  gap: 40px;         /* Aumenté el espacio entre el feed y la barra lateral */
  padding: 24px;
  align-items: flex-start; /* IMPORTANTE: Necesario para que el sticky funcione */
}

/* 2. FEED (Columna Izquierda) */
.feed {
  flex: 1;           /* Ocupa todo el espacio disponible sobrante */
  min-width: 0;      /* Evita desbordamientos en flexbox */
}

/* 3. SIDEBAR (Columna Derecha - ROLES) */
.sidebar {
  width: 300px;      /* Ancho fijo para la barra lateral */
  flex-shrink: 0;    /* Evita que se encoja si falta espacio */
  
  /* ESTO HACE LA MAGIA DE "PEGARSE" */
  position: -webkit-sticky; /* Para compatibilidad con Safari */
  position: sticky;
  top: 20px;         /* Se pegará al techo dejando 20px de margen */
  height: fit-content;
}

/* 4. VERSIÓN MÓVIL (Responsive) 
   Esto es vital: en celular NO queremos que la barra esté a la derecha 
   aplastando el contenido, sino que baje al final o cambie de forma. */
@media (max-width: 768px) {
  .layout {
    flex-direction: column; /* Pone una cosa bajo la otra */
  }
  
  .sidebar {
    width: 100%;       /* Ocupa todo el ancho en móvil */
    position: static;  /* En móvil quitamos el efecto sticky para no molestar */
  }
}
.topbar {
  height: 56px;
  background: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  width: 22px;
  height: 22px;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 1px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-img {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.icon-wrapper {
  position: relative;
}

.badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: red;
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 10px;
}
/* Modal de Login */
.modal-overlay {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  width: 300px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}

.discord-btn {
  background: #5865F2;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  transition: background 0.2s;
}

.discord-btn:hover {
  background: #4752c4;
}

/* Ajuste para el avatar de usuario logueado en la barra */
.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd;
}