/* Wander with Joy - Test Travel Blog Styles */
:root {
  --teal: #0d7377;
  --teal-dark: #095456;
  --orange: #e07a5f;
  --gold: #f2cc8f;
  --cream: #faf6f1;
  --text: #3d405b;
  --light-text: #6d6875;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo img {
  height: 70px;
  width: auto;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--teal);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  max-width: 600px;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover { background: #c96a52; }

main.container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin: 50px auto;
}

.posts h2, .about-page h1, .post-single h1 {
  font-family: 'Playfair Display', serif;
  color: var(--teal);
  margin-bottom: 20px;
}

.post-grid {
  display: grid;
  gap: 30px;
}

.post-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.post-card:hover { transform: translateY(-4px); }

.post-card img, .placeholder-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

.post-info { padding: 20px; }

.category {
  background: var(--gold);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.post-info h3 { margin: 10px 0; }
.post-info h3 a { color: var(--text); text-decoration: none; }
.post-info h3 a:hover { color: var(--teal); }

.sidebar { position: sticky; top: 100px; }

.about-teaser, .ad {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.about-teaser img { width: 100%; border-radius: 8px; margin-bottom: 15px; }

.ad {
  border: 2px dashed var(--teal);
  background: #f0f9f9;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--teal);
  font-weight: 600;
}

.mediavine-sidebar { height: 250px; }
.mediavine-incontent { margin: 30px auto; max-width: 300px; height: 250px; }
.mediavine-adhesion { width: 100%; max-width: 728px; height: 90px; margin: 0 auto; }

.adhesion-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  padding: 8px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 200;
}

.newsletter {
  background: var(--teal);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.newsletter h2 { font-family: 'Playfair Display', serif; margin-bottom: 10px; }

.newsletter form {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter input {
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  width: 280px;
}

footer {
  background: var(--text);
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
}

.about-page, .post-single { max-width: 800px; margin: 40px auto; }
.about-content { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 30px; }
.about-photo { width: 280px; border-radius: 12px; }
.post-single .featured-image { width: 100%; border-radius: 12px; margin: 20px 0; }
.post-content p { margin-bottom: 20px; }
.post-content a { color: var(--teal); }
.post-image { width: 100%; border-radius: 12px; margin: 20px 0; }
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 25px 0;
}
.image-pair img { width: 100%; border-radius: 12px; }

@media (max-width: 600px) {
  .image-pair { grid-template-columns: 1fr; }
}

.contact-form { max-width: 500px; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

@media (max-width: 800px) {
  main.container { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-text { left: 20px; bottom: 20px; }
  .about-content { flex-direction: column; }
  nav { display: none; } /* Simple mobile hide for demo */
  .logo img { height: 55px; }
}
