/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Aboreto&family=Inter:wght@400;500;600;700&display=swap');

body, .blog-post {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: hsl(32, 100%, 97%);
  font-weight: 400;
  background-color: #1a1a1a;
  margin: 0;
  padding: 0;
}

/* Header Styles */
.site-header {
  height: auto;
  min-height: 120px;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  z-index: 10;
  padding: 1.5rem 0;
}

.header-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-title-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  font-family: 'Aboreto', serif;
  text-transform: uppercase;
}

.site-title-link {
  color: hsl(32, 100%, 97%);
  text-decoration: none;
  pointer-events: auto;
}

.site-title-link:hover {
  color: #8B4513;
}

.site-subtitle {
  margin: 1rem 0 0 0;
  font-size: 1.1rem;
  font-style: italic;
  color: #8B4513;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.9;
  display: block;
}

/* Menu Toggle Button */
.menu-toggle-container {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.menu-toggle {
  background: transparent;
  border: none;
  color: #8B4513;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.menu-toggle:hover {
  background: rgba(139, 69, 19, 0.1);
  color: hsl(32, 100%, 97%);
  transform: scale(1.1);
}

.menu-icon {
  font-size: 1.5rem;
}

/* Expanded Menu */
.expanded-menu {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  border: 2px solid #8B4513;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 0;
}

.expanded-menu.expanded {
  opacity: 1;
  visibility: visible;
}

.menu-items {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 1.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-item {
  color: hsl(32, 100%, 97%);
  text-decoration: none;
  font-family: 'Aboreto', serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.menu-item:hover {
  color: #8B4513;
  background: rgba(139, 69, 19, 0.1);
  transform: translateY(-2px);
}

.menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #8B4513;
  transition: width 0.3s ease;
}

.menu-item:hover::after {
  width: 80%;
}

/* Post List Styles for Homepage */
.posts-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vh;
  padding: 2vh 0;
  width: 100%;
}

.post-item {
  position: relative;
  width: 85%;
  height: 65vh;
  min-height: 300px;
  background: #1a1a1a;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.post-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.post-item:hover {
  transform: translateY(-2px);
}

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

.post-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.post-image img.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.9);
  color: hsl(32, 100%, 97%);
  transition: height 0.3s ease;
  height: 11.5%;
  overflow: hidden;
}

.post-item:hover .post-overlay {
  height: 21%;
}

.post-content {
  padding: 1rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.post-title {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: 'Aboreto', serif;
}

.post-title-text {
  color: hsl(32, 100%, 97%);
}

.post-date {
  font-style: italic;
  color: #e0e0d0;
  font-size: 1rem;
  margin: 0;
  margin-left: 1rem;
}

.post-details {
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 0.5rem;
}

.post-item:hover .post-details {
  opacity: 1;
}

.post-qualifiers {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.post-qualifiers li {
  font-size: 0.9rem;
  color: #e0e0d0;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-excerpt {
  font-size: 0.9rem;
  color: #e0e0d0;
  margin: 0;
  line-height: 1.4;
  font-style: italic;
}

/* Post Styles */
.post-header {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.post-title-single {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.2rem 0;
  letter-spacing: 1.5px;
  color: hsl(32, 100%, 97%);
  font-family: 'Aboreto', serif;
}

.post-featured-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
}

.post-featured-image {
  width: 70%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  background: #444;
}

.trip-stats, .opinion-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 1.2rem 0 2rem 0;
  padding: 0;
  list-style: none;
  font-size: 1.1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
}

.trip-stats li, .opinion-stats li {
  background: #444;
  color: hsl(32, 100%, 97%);
  border-radius: 5px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.post-body {
  margin: 0 auto;
  max-width: 70%;
  padding: 2rem 1rem 4rem 1rem;
  font-size: 1.15rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-align: left;
  font-weight: 400;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  text-align: center;
  font-family: 'Aboreto', serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.post-body h1 {
  font-size: 2.5rem;
  margin: 2rem 0 1rem 0;
}

.post-body h2 {
  font-size: 2rem;
  margin: 1.8rem 0 0.8rem 0;
}

.post-body h3 {
  font-size: 1.6rem;
  margin: 1.5rem 0 0.6rem 0;
}

.post-body img {
  display: block;
  margin: 2.5rem auto;
  width: 80%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  background: #444;
}

/* Footer Styles */
.site-footer {
  background: #1a1a1a;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid #444;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-inner .about-link {
  font-size: 1.1rem;
  color: hsl(32, 100%, 97%);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.2s;
  margin-bottom: 0.5rem;
}

.footer-inner .about-link:hover {
  color: #A0522D;
}

.footer-inner p {
  margin: 0;
  color: #ccc;
  font-size: 0.9rem;
}

/* About Page Styles */
.about-page {
  max-width: 70%;
  margin: 0 auto;
  padding: 2rem 1rem 4rem 1rem;
}

.about-header {
  text-align: left;
  margin-bottom: 3rem;
}

.about-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  letter-spacing: 1px;
  color: hsl(32, 100%, 97%);
  font-family: 'Aboreto', serif;
}

.about-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: hsl(32, 100%, 97%);
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem 0;
  letter-spacing: 1px;
  color: hsl(32, 100%, 97%);
  font-family: 'Aboreto', serif;
  text-align: center;
}

.about-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem 0;
  color: #8B4513;
  font-family: 'Aboreto', serif;
}

.about-content p {
  margin: 1.5rem 0;
  text-align: left;
  text-indent: 1.5rem;
  position: relative;
}

.about-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.about-content p:last-of-type {
  text-align: center;
  font-style: italic;
  font-size: 1.3rem;
  color: hsl(32, 100%, 90%);
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(139, 69, 19, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(139, 69, 19, 0.3);
  text-indent: 0;
}

.about-content p:last-of-type span {
  display: block;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.content-type {
  background: rgba(139, 69, 19, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 69, 19, 0.3);
}

.content-type h3 {
  text-align: center;
  margin-top: 0;
}

/* Pagination */
.pagination {
  margin-top: 3vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2vh 0;
}

.pagination a {
  padding: 0.8rem 1.5rem;
  background-color: #8B4513;
  text-decoration: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.2s;
}

.pagination a:hover {
  background-color: #A0522D;
}

/* Image Annotations */
.image-annotated {
  position: relative;
  display: block;
  max-width: 80%;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 10px;
  text-align: center;
}

.image-annotated img {
  position: relative;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  background: #444;
  line-height: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.image-annotation {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  color: hsl(32, 100%, 97%);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  border-radius: 0 0 10px 10px;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 0 1rem;
  overflow: hidden;
  z-index: 2;
  margin-bottom: 0;
}

.image-annotated img:hover + .image-annotation,
.image-annotated img:focus + .image-annotation {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 700px) {
  .site-header {
    min-height: 100px;
    padding: 1rem 0;
  }
  
  .site-title {
    font-size: 2rem;
  }
  
  .site-subtitle {
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
  }
  
  .menu-toggle {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .menu-items {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
  
  .menu-item {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
  
  .post-title-single {
    font-size: 2rem;
  }
  
  .post-featured-image, .post-body img {
    width: 98%;
    max-height: 28vh;
  }
  
  .trip-stats, .opinion-stats {
    flex-direction: column;
    gap: 0.7rem;
    font-size: 1rem;
  }
  
  .post-body {
    padding: 1rem 0.2rem 2rem 0.2rem;
  }
  
  .about-page {
    max-width: 95%;
    padding: 1rem 0.5rem 2rem 0.5rem;
  }
  
  .about-title {
    font-size: 1.8rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .about-content h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 900px) {
  .post-item {
    width: 90%;
    height: 40vh;
  }
  
  .post-title {
    font-size: 1.5rem;
  }
  
  .posts-list {
    grid-template-columns: 1fr;
    gap: 2vh 1vw;
    padding: 2vh 1vw;
  }
}

@media (max-width: 600px) {
  .post-item {
    width: 95%;
    height: 35vh;
  }
  
  .post-title {
    font-size: 1.3rem;
  }
  
  .post-content {
    padding: 0.8rem 1rem;
  }
}

/* Fix Menu Positioning - Replace Button Instead of Below */
.expanded-menu {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  border: 2px solid #8B4513;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 0;
}

.expanded-menu.expanded {
  opacity: 1;
  visibility: visible;
}

.menu-items {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 1.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Ensure menu button stays in place when menu expands */
.menu-toggle {
  background: transparent;
  border: 2px solid #8B4513;
  color: #8B4513;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Aboreto', serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 999;
}

.menu-toggle:hover {
  background: #8B4513;
  color: hsl(32, 100%, 97%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Hide button when menu is expanded */
.menu-container:hover .menu-toggle {
  opacity: 0;
  visibility: hidden;
}

.menu-container:hover .expanded-menu {
  opacity: 1;
  visibility: visible;
}

/* Fix Menu to Push Content Down Instead of Overlay */
.expanded-menu {
  position: relative;
  width: 100%;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  border: 2px solid #8B4513;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
}

.expanded-menu.expanded {
  opacity: 1;
  visibility: visible;
  max-height: 200px;
}

.menu-items {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 1.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Simplify Menu Button - Icon Only, No Border */
.menu-toggle {
  background: transparent;
  border: none;
  color: #8B4513;
  padding: 0.5rem;
  cursor: pointer;
  font-family: 'Aboreto', serif;
  font-weight: 600;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.menu-toggle:hover {
  background: rgba(139, 69, 19, 0.1);
  color: hsl(32, 100%, 97%);
  transform: scale(1.1);
}

.menu-text {
  display: none;
}

.menu-icon {
  font-size: 1.5rem;
}

/* Remove button hiding when menu expands */
.menu-container:hover .menu-toggle {
  opacity: 1;
  visibility: visible;
}

.menu-container:hover .expanded-menu {
  opacity: 1;
  visibility: visible;
  max-height: 200px;
}

/* Center Menu Button */
.menu-container {
  position: relative;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.menu-toggle {
  background: transparent;
  border: none;
  color: #8B4513;
  padding: 0.5rem;
  cursor: pointer;
  font-family: 'Aboreto', serif;
  font-weight: 600;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto;
}


/* Post Filtering Styles */
.post-item {
  transition: all 0.3s ease;
}

.post-item.filtered-out {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Active Menu Item Styles */
.menu-item.active {
  color: #8B4513 !important;
  background: rgba(139, 69, 19, 0.2) !important;
  transform: translateY(-2px);
}

.menu-item.active::after {
  width: 80% !important;
}

/* Smooth transitions for post filtering */
.posts-list {
  transition: all 0.3s ease;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #444;
}

th {
  background-color: #3a3a3a;
  font-weight: 600;
  color: #f4f4f4;
  border-bottom: 2px solid #555;
}

td {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-bottom: 1px solid #444;
}

tr:nth-child(even) td {
  background-color: #333;
}

tr:hover td {
  background-color: #404040;
}

/* Responsive table styling */
@media (max-width: 768px) {
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 8px 12px;
  }
}

