/*
Theme Name: Sublime Wilderness Blog
Description: WordPress theme for Sublime Wilderness blog section with matching Angular app styling
Version: 1.0
Author: Roopam Paradkar
Author URI: https://inborndeveloper.com
*/

/* Import Google Fonts to match Angular app */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

/* Custom CSS Variables to match Angular app */
:root {
  --color-primary: #6b6957;     
  --color-secondary: #565335;     
  --color-accent: #474d4b;        
  --color-highlight: #b0a377;     
  
  --color-primary-light: #7a7866;
  --color-primary-dark: #5c5d48;
  --color-secondary-light: #656144;
  --color-secondary-dark: #474426;
  --color-accent-light: #56615a;
  --color-accent-dark: #38403c;
  --color-highlight-light: #c0b486;
  --color-highlight-dark: #a19468;

  --headerHeight: 96px;
}

  /* Tailwind base font-size for 100% zoom consistency */
  @layer base {
    html {
      font-size: 0.80rem; /* Equivalent to 80% of default, but at 100% zoom */
    }
  }

  /* Tailwind container adjustment for max width */
  @layer components {
    .container {
      @apply max-w-screen-lg mx-auto px-4;
    }
  }
  
.scroll-indicator {
  animation: bounce 1.5s infinite;
  background: transparent !important;
}
/* Header Navigation Styles */
.nav-link {
    color: #fff !important;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-family: 'Athelas', serif !important;
}
.primary-font {
    font-family: 'Athelas', serif !important;
}
.nav-link span {
    font-family: 'Athelas', serif !important;
}

.nav-link:hover {
    cursor: pointer;
}

.white-header {
    background: #fff !important;
    border-bottom: 1px solid var(--color-primary-light) !important;
    box-shadow: 0 2px 8px 0 rgba(107, 105, 87, 0.1);
}

.white-header .nav-link {
    color: var(--color-accent) !important;
}

.white-header .nav-link:hover {
    color: var(--color-primary) !important;
}

.header-search-form {
  gap: 0;
}

.header-search-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
  transition: border-color 0.25s ease;
}

.header-search-form.active .header-search-wrap {
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.4);
}

.header-search-input {
  width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: width 0.25s ease, opacity 0.2s ease;
  color: #fff;
}

.header-search-form.active .header-search-input {
  width: 7rem;
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .header-search-form.active .header-search-input {
    width: 10rem;
  }
}

.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.header-search-btn {
  color: #fff;
}

.header-search-btn:hover,
#mobile-search-btn:hover {
  cursor: pointer;
}

.header-search-input::-webkit-search-cancel-button,
.mobile-search-input::-webkit-search-cancel-button,
#mobile-header-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.white-header .header-search-wrap {
  border-color: transparent;
}

.white-header .header-search-form.active .header-search-wrap {
  border-width: 3px;
  border-color: #d1d5db;
}

.mobile-search-wrap {
  align-items: center;
  border-width: 3px;
  border-color: #d1d5db;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
}

.mobile-search-input {
  color: var(--color-accent);
}

.mobile-search-input::placeholder {
  color: rgba(71, 77, 75, 0.7);
}

.mobile-search-btn {
  color: var(--color-accent);
}

.white-header .header-search-input,
.white-header .header-search-input::placeholder,
.white-header .header-search-btn {
  color: var(--color-accent);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destination-item {
    transition: all 0.2s ease-in-out;
}

.destination-item:hover {
    transform: translateX(4px);
}

.overflow-y-auto {
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dropdown-container {
    border: 1px solid var(--color-primary-light);
}

.dropdown-sidebar {
    border-right: 1px solid var(--color-primary-light);
}

.dropdown-content-bg {
    background-color: rgba(122, 120, 102, 0.1);
}

.dropdown-border-top {
    border-top: 1px solid var(--color-primary-light);
}

.menu-item {
    color: var(--color-secondary);
    transition: all 0.2s ease-in-out;
}

.menu-item span {
    font-family: 'Athelas', serif !important;
}

.menu-item:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn {
    font-family: 'Athelas', serif !important;
    text-decoration: none;
    /* display: inline-flex; */
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    background: white;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-overlay.active {
    transform: translateX(0);
}

.mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-backdrop.active {
    display: block;
}

.accordion-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.accordion-toggle:hover {
    background-color: #f3f4f6;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9fafb;
}

.accordion-content.active {
    max-height: 1000px;
}

.z-2000 {
    z-index: 2000;
}

.max-w-10xl {
    max-width: 1280px;
}

/* Hide mobile menu by default */
.mobile-overlay {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-overlay {
        display: none !important;
    }
}

/* Typography to match Angular app */
body * {
  font-family: 'Montserrat', 'Source Serif 4', serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Serif 4', serif;
}

h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
  font-family: 'Source Serif 4', serif;
}

p, li, span, a {
  font-family: 'Montserrat', sans-serif;
}

/* Main content area positioning */
.content-area {
  /* padding-top: var(--headerHeight);
  min-height: calc(100vh - var(--headerHeight)); */
}

/* Navigation styles */
.nav-link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* Button styles to match Angular app */
.btn {
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.25rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: 'Source Serif 4', serif;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 105, 87, 0.2);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Footer styles */
.footer-container {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)),
    url('./images/footer-bg.jpg');
  color: white;
}

/* Content area */
.content-area {
  margin-top: var(--headerHeight);
  min-height: calc(100vh - var(--headerHeight) - 200px);
}

.blog-post h1 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.blog-post .meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.blog-post .content {
  line-height: 1.8;
}

.blog-list .post-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 2rem 0;
}

.blog-list .post-item:last-child {
  border-bottom: none;
}

.blog-list .post-title {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.blog-list .post-title:hover {
  color: var(--color-accent);
}

.blog-list .post-excerpt {
  color: #666;
  margin-bottom: 1rem;
}

.blog-list .post-meta {
  color: #999;
  font-size: 0.9rem;
}

.nav-link {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-family: 'Athelas', serif !important;
  
  span {
    font-family: 'Athelas', serif !important;
  }
}

.nav-link:hover {
  cursor: pointer;
}

.white-header {
  background: #fff !important;
  border-bottom: 1px solid var(--color-primary-light) !important;
  box-shadow: 0 2px 8px 0 rgba(107, 105, 87, 0.1);
}

.white-header .nav-link {
  color: var(--color-accent) !important;
}

.white-header .nav-link:hover {
  color: var(--color-primary) !important;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.destination-item {
  transition: all 0.2s ease-in-out;
}

.destination-item:hover {
  transform: translateX(4px);
}

.overflow-y-auto {
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.dropdown-container {
  border: 1px solid var(--color-primary-light);
}

.dropdown-sidebar {
  border-right: 1px solid var(--color-primary-light);
}

.dropdown-content-bg {
  background-color: rgba(122, 120, 102, 0.1);
}

.dropdown-border-top {
  border-top: 1px solid var(--color-primary-light);
}
.menu-item {
  color: var(--color-secondary);
  transition: all 0.2s ease-in-out;
  span {
    font-family: 'Athelas', serif !important;
  }
}

.menu-item:hover {
  background-color: var(--color-primary);
  color: white;
}

.mobile-border-bottom {
  border-bottom: 1px solid var(--color-primary-light);
}

.mobile-border-top {
  border-top: 1px solid var(--color-primary-light);
}

.mobile-close-btn {
  color: var(--color-secondary);
  transition: color 0.2s ease-in-out;
}

.mobile-close-btn:hover {
  color: var(--color-primary);
}

.footer-container{
  h4{
    font-family: 'Athelas', serif !important;
    font-size: 1.25rem;
  }
}
.footer-column-link{
  line-height: 19.2px !important;
}
.footer-column-heading{
  line-height: 22.4px !important;
}
.brand-name{
  line-height: 25.6px !important;
}
.section-title {
  color: var(--color-accent) !important;
}

.pagination-nav .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination-nav .page-numbers:hover,
.pagination-nav .page-numbers.current {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.pagination-nav .page-numbers.dots {
  border: none;
  background: none;
  color: #9ca3af;
}