/* =================================================================
   KHE TRE TRAVEL GUIDE - MAIN STYLESHEET
   Poster-style design with SVG curves & natural aesthetics
   ================================================================= */

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #2d5016;
  --secondary-green: #4a7c2c;
  --forest-dark: #1a3409;
  --cream: #f9f6f1;
  --earth-brown: #8b6f47;
  --water-blue: #5b9aa0;
  --text-dark: #2c2c2c;
  --text-light: #ffffff;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  color: var(--forest-dark);
}

/* ========== HEADER - POSTER STYLE ========== */
header {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem 0;
  color: var(--text-light);
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/khe-tre-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

.site-title {
  font-size: 3.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.site-subtitle {
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.site-tagline {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* SVG Curve at bottom of header */
.header-curve {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 3;
}

.header-curve svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========== MAIN CONTENT ========== */
main {
  position: relative;
  background: var(--cream);
  padding: 4rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  margin-bottom: 5rem;
  scroll-margin-top: 80px;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--earth-brown);
  border-radius: 2px;
}

section h3 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--secondary-green);
}

section h4 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--earth-brown);
}

p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

/* Image styles */
section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.attraction-card img {
  margin-bottom: 1rem;
}

/* Legacy image placeholders - kept for compatibility */
.image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #d4e5d4 0%, #a8c5a8 100%);
  border-radius: 8px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-dark);
  font-size: 1.2rem;
  font-style: italic;
  border: 2px dashed var(--secondary-green);
}

.image-placeholder.small {
  height: 250px;
}

/* Grid layouts for attractions */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.attraction-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.attraction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Lists */
ul, ol {
  margin: 1rem 0 1.5rem 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Highlight boxes */
.info-box {
  background: #e8f5e9;
  border-left: 4px solid var(--secondary-green);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.info-box h4 {
  margin-top: 0;
}

/* ========== FOOTER - POSTER STYLE ========== */
footer {
  position: relative;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--primary-green) 100%);
  color: var(--text-light);
  padding: 5rem 2rem 3rem;
  margin-top: 5rem;
}

/* SVG Curve at top of footer */
.footer-curve {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1;
}

.footer-curve svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content h3 {
  color: var(--text-light);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.footer-content p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 1rem auto;
  opacity: 0.9;
}

.contact-info {
  margin: 2rem 0;
}

.contact-info a {
  color: var(--cream);
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: white;
  text-decoration: underline;
}

.footer-partner {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  transition: all 0.3s ease;
}

.footer-partner:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-partner p {
  font-size: 1.1rem;
  margin: 0;
}

.footer-partner strong {
  color: #ffd700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.footer-partner a {
  color: #ffd700;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.footer-partner a:hover {
  color: #fff;
  border-bottom-color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.footer-copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========== LANGUAGE TOGGLE ========== */
.language-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1001;
  background: white;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.lang-flag {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.language-toggle:hover .lang-flag {
  transform: scale(1.1);
}

.lang-text {
  font-weight: 600;
  color: var(--primary-green);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lang-divider {
  width: 1px;
  height: 20px;
  background: var(--earth-brown);
  opacity: 0.3;
}

/* Hide English content by default */
.lang-en {
  display: none;
}

body.lang-english .lang-vi {
  display: none;
}

body.lang-english .lang-en {
  display: block;
}

body.lang-english .lang-text {
  color: var(--water-blue);
}

/* ========== FLOATING NAVIGATION ========== */
.floating-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 1rem 0.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.floating-nav:hover {
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  padding: 1rem 1.5rem 1rem 0.8rem;
  border-radius: 30px;
}

.floating-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.floating-nav li {
  margin: 0;
  position: relative;
}

.floating-nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-green);
  padding: 0.6rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  width: 40px;
  height: 40px;
  justify-content: center;
}

.floating-nav a:hover {
  background: var(--primary-green);
  color: white;
  transform: scale(1.1);
}

.floating-nav a.active {
  background: var(--secondary-green);
  color: white;
}

.nav-icon {
  font-size: 1.3rem;
  min-width: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.nav-title {
  position: absolute;
  right: 100%;
  margin-right: 1rem;
  white-space: nowrap;
  background: var(--forest-dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-title::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--forest-dark);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.floating-nav a:hover .nav-title,
.floating-nav:hover .nav-title {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .site-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .language-toggle {
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
  }
  
  .lang-flag {
    font-size: 1.3rem;
  }
  
  .lang-text {
    font-size: 0.8rem;
  }
  
  .floating-nav {
    right: 1rem;
    padding: 0.8rem 0.6rem;
  }
  
  .floating-nav a {
    width: 36px;
    height: 36px;
  }
  
  .nav-icon {
    font-size: 1.1rem;
  }
  
  .nav-title {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .site-subtitle {
    font-size: 1.3rem;
  }

  .site-tagline {
    font-size: 1rem;
  }

  section h2 {
    font-size: 2rem;
  }

  section h3 {
    font-size: 1.5rem;
  }

  .attractions-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.8rem;
  }

  .header-curve,
  .footer-curve {
    height: 60px;
  }
  
  .language-toggle {
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .lang-flag {
    font-size: 1.2rem;
  }
  
  .lang-text {
    font-size: 0.7rem;
  }
  
  .floating-nav {
    right: 0.5rem;
    padding: 0.6rem 0.5rem;
    border-radius: 30px;
  }
  
  .floating-nav a {
    width: 32px;
    height: 32px;
  }
  
  .nav-icon {
    font-size: 1rem;
  }
  
  .nav-title {
    display: none; /* Ẩn title trên mobile để tránh che màn hình */
  }
}
