

/* Estilos globales */
body {
  font-family: Arial, sans-serif;
}

.post-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  padding: 1rem;
}

.post-img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
}

.post-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
}

.post-footer {
  margin-top: 1rem;
  display: flex;
  gap: 10px;
  align-items: center;
}

.comments-section {
  margin-top: 1rem;
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
}

.post-options,
.comentario-options {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.options-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.options-menu {
  position: absolute;
  top: 25px;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  list-style: none;
  padding: 5px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
}

.options-menu li {
  padding: 8px 15px;
  cursor: pointer;
}

.options-menu li:hover {
  background-color: #f5f5f5;
}

.comentario-item {
  display: flex;
  flex-direction: column;
}

.image-preview {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.image-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.btn-delete-img {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(255, 0, 0, 0.9);
  color: white;
  border: none;
  font-size: 14px;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
}


.datos_perfil {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 165px;
  padding-bottom: 15px;
}

.contenedor_tienda-perfil {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-perfil {
  background-color: #3e4c5e;
  height: 70px;
  width: 70px;
  border-radius: 17px;
  border: 1px solid #FF9800;
}



.container-perfil img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}


.contenedor_social {
  display: flex;
  margin-left: 25px;
  flex-direction: column;
}

.container-perfil {
  display: flex;
}

.container-perfil h4 {
  display: inline-block;
}

.container-perfil_user {
  font-size: 17px;
}

.info_perfil {
  font-size: 12px;
  display: flex;
}

.info_perfil p {
  margin: 5px;
}

.seguir {
  background-color: #ff8e15;
  padding: 5px 15px;
  margin: 5px 0;
  border: none;
  border-radius: 15px;
  color: #ffffff;
  font-size: 18px;
  transition: background-color 0.2s ease; /* Transición suave para el cambio de color */
}

.seguir:hover {
  background-color: #ff6f47; /* Color diferente al hacer hover */
}
.seguir:hover {
  /* transition: 1s; */
  box-shadow: #ff5315;
}

.tabs ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

.tabs ul li {
  margin: 0 10px;
}

.tabs ul li a {
  color: #333;
  text-decoration: none;
  padding: 5px;
}

.tabs ul li.active a {
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid #45454559;
}

.tab-content {
  display: none;
  padding: 20px;
  max-width: 900px;
  margin-top: 30px;
 
}

.tab-content.active {
  display: block;
  width: 100%;
  max-width: 970px;
  margin-top: 10px;
}


.main_perfil {
  display: flex;
  justify-content: center;
  
}

h2 {
  color: #3d5acd;
  margin-bottom: 10px;
  font-size: 16px;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  grid-gap: 15px;
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-item p {
  overflow: hidden;
  color: #4bbd34;
}

.video-item h3 {
  color:#2d2d2e;
}

.redict__product {
  text-decoration: none;
}

.video-item img {
  width: 100%;
  height: 270px;
  object-fit: contain;
  border-radius: 5px;
}

.video-item h3 {
  margin: 10px 0;
}

.community-posts {
  /* display: flex;
  flex-direction: column;
  align-items: stretch; */
}


.content--box-publicar {
  display: flex;
  justify-content: center;
}

#content-form
  {
    width: 100%;
}


.campo-mensaje {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.campo-mensaje input {
  width: 80%;
  height: 30px;
  margin: 0 0 0 10px;
}

.campo-contenido_tipo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#message-container {
  display: flex;
  flex-direction: column;
}

#message-container textarea {
  width: 100%;
  min-height: 100px;
  margin: 10px 0;
  overflow: auto;
  resize: none;
  padding: 7px;
}

.publicar_perfil {
  display: flex;
  justify-content: flex-end;
}

.publicar_perfil input {
  background-color: #488bdf;
  color: #fff;
  padding: 5px;
  border-radius: 7px;
  border: none;
}

#publish-form {
  display: block;
  margin-top: 24px;
  border: 1px solid #0000001a;
  padding: 16px 16px 8px 16px;
  border-radius: 12px;
}

.post {
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post h3 {
  margin: 10px 0;
}

footer {
  background-color: #ebebeb;
  padding: 10px;
  text-align: center;
}

footer p {
  color: #767676;
}


#content-list {
  display: flex;
  margin-top: 20px;
  background-color: #fff;
  padding: 20px;
  border: 1px solid #0000001a;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#content-list h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 400;
}

#content-items {
  list-style: none;
  padding: 0;
}

#content-items li {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.img_content {
  width: 100%;
  /* display: flex;
  justify-content: space-around; */
  margin-bottom: 15px;
}
.img_post {
  width: 50%;

  
}


.img_post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container_perfil-user {
  width: 75px;
  height: 100%;
  margin-right: 15px;
}

.perfil_user {
  width: 55px;
  height: 55px;
}

.perfil_user img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
/* 🧾 Estilo moderno y social para el formulario de comunidad */
#publish-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 20px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  margin: 0 auto 40px auto;
}

#publish-form label {
  font-weight: bold;
  color: #3b3b3b;
  margin-bottom: 5px;
  display: block;
}

#publish-form input[type="text"],
#publish-form textarea,
#publish-form select {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  transition: border 0.3s;
}

#publish-form input[type="text"]:focus,
#publish-form textarea:focus,
#publish-form select:focus {
  border-color: #488bdf;
  outline: none;
}

#publish-form textarea {
  resize: vertical;
  min-height: 120px;
}

#publish-form input[type="file"] {
  background-color: #f9f9f9;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.publicar_perfil {
  display: flex;
  justify-content: flex-end;
}

.publicar_perfil input[type="submit"] {
  background: #4bbd34;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  transition: background 0.3s, transform 0.2s;
}

.publicar_perfil input[type="submit"]:hover {
  background: #3ea72a;
  transform: scale(1.05);
}


/* aca van la ultima modificacion  */

/* NUEVO: Diseño del formulario tipo red social */
.form-post-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  width: 100%;
  margin-bottom: 2rem;
}

.form-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #2c3e50;
}

#publish-form input[type="text"],
#publish-form select,
#publish-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background-color: #fafafa;
  box-sizing: border-box;
}

#publish-form textarea {
  resize: vertical;
  min-height: 100px;
}

#publish-form input[type="submit"] {
  background-color: #2c7be5;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#publish-form input[type="submit"]:hover {
  background-color: #1a5fb4;
}

/* Imagen grande tipo YouTube */
.image-preview {
  display: block;
  max-width: 100%;
  margin-top: 1rem;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.image-preview img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Botón X para cerrar imagen */
.btn-delete-img {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 0, 0, 0.85);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
}

.loader-comunidad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.loader-comunidad .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #488bdf;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.comentario-item {
  background-color: #f9f9f9;
  border-left: 3px solid #3498db;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 5px;
  font-size: 14px;
  position: relative;
}

.comentario-item strong {
  color: #333;
}

.comentario-meta {
  font-size: 12px;
  color: #999;
  margin-left: 10px;
}

.btn-delete-comentario {
  background: transparent;
  border: none;
  color: #e74c3c;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  float: right;
  margin-left: 10px;
}

.btn-delete-comentario:hover {
  color: #c0392b;
}





.comentarios-box {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid #ddd;
}

.comentario-item {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.comentario-meta {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-left: 5px;
}

.ver-mas-btn {
  background: none;
  color: #2c7be5;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 5px;
}
.ver-mas-btn:hover {
  text-decoration: underline;
}


.ver-mas-btn {
  background-color: #f0f0f0;
  border: none;
  color: #333;
  padding: 6px 14px;
  margin-top: 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

.ver-mas-btn:hover {
  background-color: #ddd;
}
.comentario-item {
  background-color: #fdfdfd;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.comentario-header-linea {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comentario-nombre a {
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
}

.comentario-meta-derecha {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #888;
}

.comentario-fecha {
  font-style: italic;
}

.btn-delete-comentario {
  background: transparent;
  border: none;
  color: #e74c3c;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
}

.btn-delete-comentario:hover {
  transform: scale(1.2);
  color: #c0392b;
}

.comentario-contenido {
  margin-top: 8px;
  color: #444;
  white-space: pre-line;
  line-height: 1.5;
}





.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
