/* Estilos para el Blog - Sigue la línea de diseño del sitio */

.blog_main {
  position: relative;
  width: 100%;
  color: #ffffff;
  display: block;
  padding: 2em 3em;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero Section */
.blog_hero {
  text-align: center;
  padding: 1em 0 0.5em;
  margin-bottom: 1em;
}

.blog_title {
  font-size: clamp(2.5em, 5vw, 4.5em);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.1em 0;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.blog_subtitle {
  font-size: clamp(1.1em, 2vw, 1.4em);
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Alerts */
.alert {
  padding: 1em 1.5em;
  border-radius: 12px;
  margin-bottom: 2em;
  font-weight: 500;
}

.alert_error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #ff6b6b;
}

.alert_success {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.5);
  color: #51cf66;
}

/* Container Principal */
.blog_container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3em;
  align-items: start;
}

/* Sidebar */
.blog_sidebar {
  position: sticky;
  top: 8em;
}

.sidebar_section {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2em;
  margin-bottom: 2em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sidebar_title {
  font-size: 1.3em;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1.5em 0;
  padding-bottom: 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Información del Usuario en Sidebar */
.user_info_section {
  margin-bottom: 2em;
}

.user_display {
  display: flex;
  align-items: center;
  gap: 1em;
}

.user_avatar_sidebar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #13601f 0%, #1a8b2c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2em;
  color: #ffffff;
  flex-shrink: 0;
}

.user_details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.user_name_sidebar {
  font-weight: 600;
  color: #ffffff;
  font-size: 1.05em;
}

.logout_link_sidebar {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.logout_link_sidebar:hover {
  color: #ff6b6b;
}

/* Filtros de Tour */
.tour_filters {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.tour_filter {
  padding: 0.75em 1em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95em;
}

.tour_filter:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.tour_filter.active {
  background: linear-gradient(135deg, #13601f 0%, #1a8b2c 100%);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

/* Formularios */
.upload_form,
.login_form {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.form_group {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.form_group label {
  font-size: 0.9em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.form_group input,
.form_group select,
.form_group textarea {
  padding: 0.75em 1em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1em;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form_group input::placeholder,
.form_group textarea::placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.form_group input::-webkit-input-placeholder,
.form_group textarea::-webkit-input-placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.form_group input::-moz-placeholder,
.form_group textarea::-moz-placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.form_group input:-ms-input-placeholder,
.form_group textarea:-ms-input-placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.form_group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit_button {
  padding: 1em 2em;
  background: linear-gradient(135deg, #13601f 0%, #1a8b2c 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(19, 96, 31, 0.5);
}

.submit_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(19, 96, 31, 0.7);
}

/* Login Prompt */
.login_prompt {
  text-align: center;
  padding: 1em 0;
}

.login_prompt p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1em;
}

.login_button {
  display: inline-block;
  padding: 0.75em 2em;
  background: linear-gradient(135deg, #13601f 0%, #1a8b2c 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(19, 96, 31, 0.5);
}

/* Feed Principal */
.blog_feed {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.empty_state {
  text-align: center;
  padding: 4em 2em;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
}

/* Posts */
.blog_post {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.blog_post:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
}

.post_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5em;
}

.post_user {
  display: flex;
  align-items: center;
  gap: 1em;
}

.user_avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #13601f 0%, #1a8b2c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2em;
  color: #ffffff;
  flex-shrink: 0;
}

.user_avatar_small {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #13601f 0%, #1a8b2c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9em;
  color: #ffffff;
  flex-shrink: 0;
}

.user_info {
  display: flex;
  flex-direction: column;
}

.user_name {
  font-weight: 600;
  color: #ffffff;
  font-size: 1.05em;
}

.post_date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
}

.post_tour {
  padding: 0.5em 1em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.9);
}

.post_image {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1.5em;
}

.post_image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.post_description {
  margin-bottom: 1.5em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Acciones del Post */
.post_actions {
  display: flex;
  gap: 1.5em;
  align-items: center;
  margin-bottom: 1em;
  padding-top: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.like_form {
  display: inline-block;
}

.like_button {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.like_button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.like_button.liked {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.5);
  color: #ff6b6b;
}

.like_button.disabled {
  cursor: default;
  opacity: 0.7;
}

.like_icon {
  font-size: 1.2em;
}

.like_count {
  font-weight: 600;
}

.comment_toggle {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.comment_toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.comment_icon {
  font-size: 1.2em;
}

.comment_count {
  font-weight: 600;
}

/* Comentarios */
.post_comments {
  margin-bottom: 1.5em;
  padding-top: 1.5em;
  margin-top: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comment {
  margin-bottom: 1em;
}

.comment_user {
  display: flex;
  gap: 0.75em;
  align-items: flex-start;
}

.comment_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.comment_content strong {
  color: #ffffff;
  font-size: 0.95em;
}

.comment_content span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95em;
  line-height: 1.5;
}

.comment_date {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25em;
}

/* Formulario de Comentario */
.comment_form {
  margin-top: 1em;
}

.comment_input_group {
  display: flex;
  gap: 0.75em;
}

.comment_input_group input {
  flex: 1;
  padding: 0.75em 1em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: #ffffff;
  font-size: 0.95em;
  font-family: inherit;
}

.comment_input_group input::placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.comment_input_group input::-webkit-input-placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.comment_input_group input::-moz-placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.comment_input_group input:-ms-input-placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.comment_input_group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.comment_submit {
  padding: 0.75em 1.5em;
  background: linear-gradient(135deg, #13601f 0%, #1a8b2c 100%);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.comment_submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 96, 31, 0.5);
}

.comment_prompt {
  margin-top: 1em;
  padding: 1em;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
}

.comment_prompt a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Loading Indicator */
.loading_indicator {
  text-align: center;
  padding: 2em;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95em;
}

/* Login Page */
.blog_login_main {
  position: relative;
  width: 100%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 10em);
  padding: 2em 3em;
  box-sizing: border-box;
}

.login_container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3em;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.login_title {
  font-size: 2.5em;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5em 0;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.login_subtitle {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 0 0 2em 0;
}

.login_tabs {
  display: flex;
  gap: 1em;
  margin-bottom: 2em;
}

.tab_button {
  flex: 1;
  padding: 0.75em 1em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab_button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tab_button.active {
  background: linear-gradient(135deg, #13601f 0%, #1a8b2c 100%);
  border-color: var(--primary);
  color: #ffffff;
}

.tab_content {
  display: none;
}

.tab_content.active {
  display: block;
}

.login_footer {
  margin-top: 2em;
  text-align: center;
}

.back_link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.back_link:hover {
  color: #ffffff;
}

/* User Links en Header */
.user_name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-right: 1em;
}

.logout_link,
.login_link {
  padding: 0.5em 1em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9em;
  margin-right: 1em;
  transition: all 0.3s ease;
}

.logout_link:hover,
.login_link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Responsive */
@media all and (max-width: 992px) {
  .blog_main {
    padding: 2em 2em;
  }
  
  .blog_container {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  
  .blog_sidebar {
    position: static;
  }
  
  .tour_filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75em;
  }
  
  .login_container {
    padding: 2em;
  }
}

@media all and (max-width: 768px) {
  .blog_main {
    padding: 2em 1.5em;
  }
  
  .blog_hero {
    padding: 2em 0 1.5em;
  }
  
  .tour_filters {
    grid-template-columns: 1fr;
  }
  
  .post_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }
  
  .comment_input_group {
    flex-direction: column;
  }
  
  .comment_submit {
    width: 100%;
  }
  
  .login_container {
    padding: 1.5em;
  }
}

