/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --accent-color: #ec4899;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--dark-color);
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    grid-template-areas:
        "header"
        "main"
        "footer";
    view-transition-name: page;
}

/* Header Styles */
header {
    grid-area: header;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem 1rem 1.5rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid transparent;
    border-image: linear-gradient(to right, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-image-slice: 1;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin-top: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: white;
    transition: width 0.3s ease;
}

nav a:hover:before {
    width: 100%;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Main Content Area */
.content-wrapper {
    grid-area: main;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: auto;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.top-bar {
  grid-area: top; /* Asignamos su área de grid */
  display: none;  /* Oculto por defecto en pantallas de escritorio y tablet */
  background-color: var(--primary-color, #6366f1); /* Color de fondo de ejemplo */
  color: var(--light-color, #f8fafc); /* Color de texto de ejemplo */
  padding: 0.75rem 1rem;
  text-align: center;
  /* Otros estilos que desees para tu top-bar */
}

/* Left Sidebar - User Info */
.left-sidebar {
    display: flex; /* Para alinear los botones verticalmente */
    flex-direction: column; /* Apila los botones uno encima del otro */
    align-items: center; /* Centra los botones horizontalmente dentro del aside */
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-sidebar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.left-sidebar .button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  color: var(--light-color); /* Texto claro */
  background-color: var(--primary-color); /* Color primario como base */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 15px 0;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  outline: none;
  position: relative; /* Necesario para el borde animado */
  overflow: hidden; /* Para ocultar el borde animado fuera del hover */
}

.left-sidebar .button:hover {
  background-color: var(--secondary-color); /* Color secundario al pasar el ratón */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.left-sidebar .button.signup {
  background-color: var(--light-color); /* Color de acento para "Sign Up" */
  color: var(--dark-color);
  border: 1px var(--primary-color) solid; 
}

.left-sidebar .button.signup:hover {
  background-color: var(--secondary-color);
  border-color: var(--accent-color);
  color: var(--light-color); /* Un tono más oscuro del acento al pasar el ratón */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Animación de borde para los botones Login y Sign Up */
.left-sidebar .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color); /* Borde inicial */
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  transform: scale(1.1); /* Inicia ligeramente más grande */
}

.left-sidebar .button:hover::before {
  opacity: 1;
  transform: scale(1); /* Vuelve a su tamaño normal */
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.left-sidebar .button.animated {
  animation: pulse 0.5s alternate;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(45deg, var(--primary-color), var(--accent-color)) border-box;
}

.user-name {
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-bio {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stat {
    padding: 0.5rem;
}

.stat-number {
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    cursor: pointer;
}

/* Main Column - Posts */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
}

.post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.post-author {
    margin-right: 1rem;
}

.post-date {
    margin-right: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 30px;
    font-size: 0.75rem;
}

.post-excerpt {
    margin: 1rem 0;
    line-height: 1.6;
    color: #334155;
    word-break: break-word;
}


.btn-bk-efct {
     text-decoration: none;
 
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-bk-efct:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-bk-efct::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.read-more {
  padding: 0.5rem 1rem;
  float: right;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.read-more::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.read-more:hover::after {
  transform: translateX(100%);
}

.new-post-btn-container {
  display: flex; 
  justify-content: center; 
  margin-top: 15px; 
  font-weight: bolder;
}

/* Right Sidebar - Related Content */
.right-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.right-sidebar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}








.btn-bk-efct:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-bk-efct::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-bk-efct:hover::after {
  transform: translateX(100%);
}

/* Right Sidebar - Related Content */
.right-sidebar {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.right-sidebar:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
















.section-title {
    position: relative;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.related-post {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.related-post:hover {
    background-color: #f1f5f9;
}

.related-post-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.related-post-content {
    flex: 1;
}

.related-post-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.related-post-date {
    font-size: 0.75rem;
    color: #64748b;
}

.news-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.news-source {
    font-size: 0.75rem;
    color: #64748b;
}

/* Footer Styles */
footer {
    grid-area: footer;
    background: var(--dark-color);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr 2fr;
    }
    .right-sidebar {
        display: none;
    }
}

.link-mobile-float-button{
  display: none;
}
.mobile-float-button {
  display: none; /* Ocultar por defecto en pantallas más grandes */
  position: fixed; /* Lo fija a la ventana del navegador */
  left: 2px; /* Ajusta la distancia desde la derecha */
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
  background-color: var(--accent-color); /* Usa tu color de acento */
  color: var(--light-color); /* Texto blanco o claro */
  border: none;
  border-radius: 50%; /* Lo hace circular */
  top: 61px;
  height: 43px;
  width: 43px;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
  align-items: center; /* Centra el icono verticalmente */
  justify-content: center; /* Centra el icono horizontalmente */
}

.mobile-float-button:hover {
  background-color: #d62887; /* Un tono más oscuro del acento al pasar el ratón */
  transform: scale(1.1);
}

/* Estilos para el icono SVG (opcional, si usas SVG) */
.mobile-float-button svg {
  width: 60%; /* Ajusta el tamaño del icono dentro del botón */
  height: 60%;
}

@media (max-width: 768px) {
  .content-wrapper {
    grid-template-areas:
    "top"      /* El .top-bar en la primera fila */
    "main-col"; /* El .main-content debajo */
    grid-template-columns: 1fr; /* Una sola columna */
    grid-template-rows: auto 1fr; /* Fila para .top-bar (altura automática), Fila para .main-content (ocupa el resto) */
    padding: 0; /* Esto ya lo tenías en tu CSS original */
    gap: 0; /* Considera si necesitas gap entre el top-bar y el main-content */
  }
  .left-sidebar {
      display: none;
  }
  .top-bar {
    /* Estilos existentes del .top-bar */
    display: flex; /* <--- CAMBIO: Usamos Flexbox para alinear los botones hijos */
    align-items: stretch; /* Opcional: si los botones deben tener la misma altura */
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 9;
    background-color: var(--primary-color, #6366f1);
    padding: 0;
    gap: 0.5rem;
  }

  .top-bar .button {
    flex: 1; /* <--- NUEVO: Esto hace que cada botón ocupe una parte igual del espacio disponible. */
             /* Es una abreviatura de flex-grow: 1; flex-shrink: 1; flex-basis: 0%; */
             /* Se distribuirá el espacio restante después de aplicar el 'gap'. */

    
    text-align: center; /* <--- NUEVO/IMPORTANTE: Asegura que el texto DENTRO de cada botón esté centrado. */
    margin-right: 0;    /* <--- NUEVO: Anulamos el margin-right de la regla general .button, ya que 'gap' maneja el espaciado. */
    background-color: var(--light-color);
    border: 1px solid var(--dark-color);
    color: var(--dark-color);
    text-decoration: none;
  }

  .top-bar .button:hover{
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--light-color);
    font-weight: bolder;
  }
  .top-bar .user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Mantiene las 3 columnas iguales para los stats */
    gap: 0.25rem; /* Espacio entre cada .stat, reducido para el top-bar */
    margin-top: 0; /* Anula el margen superior que tenía .user-stats originalmente */
    width: 100%;   /* Hace que .user-stats ocupe todo el ancho dentro del padding del .top-bar */
    padding: 0;    /* Quitamos padding aquí, el espaciado lo maneja .top-bar y el gap de .user-stats */
    text-align: center; /* Centra el contenido de los items del grid (los .stat) */
  }

  /* Estilos para cada .stat DENTRO del .top-bar .user-stats */
  .top-bar .stat {
    padding: 0.25rem 0.1rem; /* Padding vertical pequeño, horizontal mínimo */
    display: flex;           /* Usamos flex para centrar el número y la etiqueta verticalmente */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 30px; /* Asegurar una altura mínima para que se vea bien */
  }

  /* Estilos para .stat-number DENTRO del .top-bar */
  .top-bar .stat-number {
    font-weight: bold;
    color: var(--light-color); /* CAMBIO CRUCIAL: Para que sea visible sobre el fondo --primary-color del top-bar */
    font-size: 0.85rem;      /* Reducimos el tamaño de fuente para que quepa mejor */
    line-height: 1.1;        /* Ajustamos interlineado */
  }

  /* Estilos para .stat-label DENTRO del .top-bar */
  .top-bar .stat-label {
    font-size: 0.6rem;        /* Reducimos significativamente el tamaño de fuente */
    color: var(--light-color);  /* CAMBIO CRUCIAL: Para que sea visible */
    opacity: 0.8;               /* Un poco más tenue que el número para diferenciar */
    line-height: 1;           /* Ajustamos interlineado */
    text-transform: uppercase;  /* Opcional: para darle un estilo más compacto y uniforme */
  }
  .main-content {
    grid-area: main-col;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
}
  nav ul {
      /* REMOVED: flex-direction: column; */ /* Quitamos la dirección de columna */
      flex-direction: row;        /* Aseguramos la dirección horizontal (aunque es el default de flex) */
      overflow-x: auto;           /* Permite scroll horizontal si los elementos no caben */
      white-space: nowrap;        /* Evita que los elementos salten a la siguiente línea */
      justify-content: flex-start; /* Alinea los items al inicio para el scroll */
      gap: 0;                  /* Puedes ajustar el espacio entre elementos */
      padding-bottom: 10px;       /* Añade espacio abajo por si aparece la barra de scroll */
      margin-top: 0.5rem;         /* Ajusta el margen superior si es necesario */
  }
  /* Opcional: Podrías querer ajustar el padding de los enlaces en pantallas pequeñas */
  nav a {
     padding: 0.3rem;
  }

  .comment-author, .comment-text {
    word-break: break-all;
  }

  .trix-content figure,
  .post-content figure {
      margin: 1rem 0; /* Espacio alrededor de la figura */
      max-width: 100%;
  }

  trix-toolbar{
    max-width: 320px;
    overflow-x: scroll;
    margin-bottom: 7px;
  }
  
  .trix-content figure img, /* Ya cubierto arriba, pero para ser explícito */
  .post-content figure img {
      max-width: 100%;
      height: auto;
      display: block;
  }
  
  .trix-content figcaption,
  .post-content figcaption {
      text-align: center;
      font-size: 0.9rem;
      color: #64748b; /* O var(--dark-color) con algo de opacidad */
      margin-top: 0.5rem;
  }
  
  img, pre { /* Más específico */
    max-width: 350px !important; /* Usar !important como último recurso */
    height: auto !important;
    display: block !important;
  }

  .mobile-float-button {
    display: flex; 
  }

  .link-mobile-float-button{
    display: block;
  }

  .post-content {
    padding: 1.5rem 5px;
  }

  header{
    padding: 0;
  }
}

/* View Transitions API */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.post {
    view-transition-name: post;
    animation: fade-in 0.5s ease forwards, slide-up 0.5s ease forwards;
}

.left-sidebar, .right-sidebar {
    view-transition-name: sidebar;
    animation: fade-in 0.3s ease forwards;
}

.signout-btn {
    background: linear-gradient(135deg, #8e2de2, #ff416c);
    color: white;
    padding: 10px 20px;
    font-size: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    width:max-content;
  }
  
  .signout-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 10%, transparent 40%);
    transform: rotate(25deg);
    transition: all 0.6s ease;
    opacity: 0;
    pointer-events: none;
  }
  
  .signout-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }
  
  .signout-btn:hover::before {
    top: 0;
    left: 0;
    opacity: 1;
  }
  
  .signout-btn:active {
    transform: scale(0.95);
  }
  
  /* Optional pulse animation */
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
  }
  
  .signout-btn:hover {
    animation: pulse 0.5s;
  }
  
  .follow-btn {
    background-color: var(--primary-color);
    color: white;
    border:none;
    border-radius:6px;
    padding:8px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition:
    background-color 0.2s;
    display: flex;
    align-items: center;
    gap:5px;
  }

  .follow-btn:hover {
    background-color: #3b5bd9;
  }
  
  .following-btn {
    background-color: #e0e7ff;
    color: var(--primary-color);
  }
  
  .following-btn:hover {
    background-color: #d3deff;
  }

  a.sign-out-icon-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex; /* Para alinear el icono */
    align-items: center; /* Alinea verticalmente */
    text-decoration: none; /* Quita el subrayado del link */
  }
  
  a.sign-out-icon-button svg.size-6 {
    height: 1.2em;
    font-size: 19px;
  }

   a.sign-out-icon-button svg.size-6:hover {
    color: var(--accent-color);
    font-weight: bolder;
  }
  
  .new-post-btn {
    background:
    linear-gradient(135deg, #8e2de2, #ff416c);
      color: white;
      padding:
    10px 20px;
      font-size: 10px;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      border:
    2px solid rgba(255, 255, 255, 0.2);
      border-radius:
    50px;
      cursor: pointer;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
      transition:
    all 0.3s ease-in-out;
      position: relative;
      overflow:
    hidden;
      width: max-content;
      height: 45px; 
      font-weight: bolder;
      font-size: 13px;
  }

  /* Estilos para formularios */
form {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box; /* Evita que el padding aumente el ancho total */
}

textarea {
  resize: vertical; /* Permite ajustar la altura del textarea */
}

button[type="submit"] {
  background-color: #5cb85c; /* Verde */
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}

button[type="submit"]:hover {
  background-color: #4cae4c;
}

/* Estilos para botones genéricos (puedes añadir más clases según necesites) */
.button {
  background-color: #007bff; /* Azul */
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  margin-right: 5px; /* Espacio entre botones si hay varios */
}

.button:hover {
  background-color: #0056b3;
}

.cancel-button {
  background-color: #dc3545; /* Rojo para cancelar */
}

.cancel-button:hover {
  background-color: #c82333;
}

/* Estilos básicos para la página de usuarios */
.user-page {
  padding: 20px;
  font-family: sans-serif; /* Fuente genérica */
}

.user-header {
  margin-bottom: 20px;
  text-align: center;
}

.user-info {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 4px;
  background-color: #fefefe;
}

.user-actions ul {
  list-style: none;
  padding: 0;
}

.user-actions li {
  margin-bottom: 8px;
}

.user-actions a {
  text-decoration: none;
  color: #007bff;
}

.user-actions a:hover {
  text-decoration: underline;
}

/* Estilos para la página de índice de usuarios */
.user-index-page {
    font-family: sans-serif;
    padding: 20px;
    display: flex;
    justify-content: center; /* Centra el contenido horizontalmente */
  }
  
  .user-list-container {
    max-width: 800px; /* Ancho máximo para la lista */
    width: 100%;
  }
  
  .user-list {
    list-style: none;
    padding: 0;
  }
  
  .user-item {
    display: flex;
    align-items: center; /* Alinea verticalmente los elementos */
    justify-content: space-between; /* Espacio entre la info del usuario y los botones */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #fefefe;
  }
  
  .user-info-basic {
    flex-grow: 1; /* Permite que la información del usuario ocupe el espacio restante */
  }
  
  .user-info-basic h3 {
    margin-top: 0;
    margin-bottom: 5px;
  }
  
  .user-buttons button {
    margin-left: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
  }
  
  .follow-button {
    background-color: #007bff; /* Azul para el botón de seguir */
    color: white;
  }
  
  .follow-button:hover {
    background-color: #0056b3;
  }
  
  .info-button {
    background-color: #6c757d; /* Gris para el botón de información */
    color: white;
  }
  
  .info-button:hover {
    background-color: #5a6268;
  }

  .post-body-truncated {
    position: relative; /* Necesario para posicionar la máscara */
    overflow: hidden;
    height: 1200px; /* Altura fija del contenedor truncado */
  }
  
  .post-body-truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px; /* Altura reducida del área de desvanecimiento */
    background: linear-gradient(to bottom, transparent 0%, white 100%); /* Desvanece hacia blanco */
  }
  
  .post-body-truncated {
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%); /* Máscara para WebKit/Blink, desvanecimiento en el último 20% */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%); /* Máscara estándar */
  }


  .contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    }

    .info-section,
    .form-section {
    flex: 1 1 400px;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.5rem;
    }

    .info-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
    }

    .info-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
    }

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

    label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    }

    input,
    textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    }

    input:focus,
    textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
    }

    input[type="submit"]{
      cursor: pointer;
    }

    .contact-container ul {
    padding-left: 1.2rem;
    }


/* Estilos iniciales del modal (oculto) */
  .modal {
    display: none; /* Oculto por defecto */
    position: fixed; /* Fijo en la ventana */
    z-index: 1000; /* Por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilitar scroll si el contenido es largo */
    background-color: rgba(0, 0, 0, 0.4); /* Fondo oscuro semitransparente */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .modal.show {
    display: flex; /* Cambiar a flex para centrar el contenido */
    justify-content: center;
    align-items: center;
    opacity: 1;
    overflow: hidden;
  }

  .modal-content {
    position: relative;
    background-color: var(--light-color);
    margin: 15% auto; /* Centrar verticalmente */
    padding: 30px;
    border: none;
    border-radius: 12px;
    width: 80%; /* Ancho del modal */
    max-width: 500px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 80vh;
    overflow-y: scroll;
  }

  .modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
  }

  .close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
  }

  .close-button:hover,
  .close-button:focus {
    color: var(--accent-color);
    text-decoration: none;
  }

  .modal-content h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  }

  #modalElementsList {
    list-style: none;
    padding: 0;
  }

  #modalElementsList li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease-in-out;
  }

  #modalElementsList li:last-child {
    border-bottom: none;
  }

  #modalElementsList li a {
    color: var(--dark-color);
    text-decoration: none;
    display: block;
    padding: 10px;
    padding-left: 13px;
  }

  #modalElementsList li a:hover {
    color: var(--secondary-color);
    background-color: #f0f0f0;
    padding: 10px;
    padding-left: 15px;
    font-weight: bolder;
  }

  #modalElementsList li a::before {
    content: '\f007'; /* Icono de usuario de Font Awesome (ejemplo) - Necesitarías incluir Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    opacity: 0.7;
  }

  /* Estilos avanzados */
  .modal-content {
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9)); /* Fondo sutil */
    backdrop-filter: blur(10px); /* Efecto de desenfoque del fondo (si es soportado) */
    border-top: 5px solid var(--accent-color); /* Borde superior llamativo */
    animation: modalEntrance 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación de entrada */
  }

  @keyframes modalEntrance {
    0% {
      transform: translateY(-100px) scale(0.9);
      opacity: 0;
    }
    100% {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
  }

  .close-button {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  }

  .forgot-password-link-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.forgot-password-link {
  color: var(--primary-color, #6366f1);
  background: #f3f4f6;
  border-radius: 8px;
  padding: 7px 18px;
  font-weight: 600;
  font-size: 1em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(99,102,241,0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.forgot-password-link:hover {
  background: linear-gradient(90deg, var(--primary-color, #6366f1), var(--accent-color, #ec4899));
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.13);
  text-decoration: underline;
}







