/* Portugal blog styles — extends style.css */

/* ── Password Gate ───────────────────────────────────── */

.password-gate {
  max-width: 400px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.password-gate h2 {
  font-family: 'Caveat', cursive;
  font-size: 2em;
  margin-bottom: 10px;
}

.password-gate p {
  color: #666;
  margin-bottom: 20px;
}

.password-gate input[type="password"] {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 3px;
  width: 100%;
  max-width: 280px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.3s;
}

.password-gate input[type="password"]:focus {
  border-color: #999;
}

.password-gate button {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 30px;
  background: #1f2024;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
}

.password-gate button:hover {
  background: #353535;
}

.password-gate .error {
  color: #994447;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

.protected-content {
  display: none;
}

/* ── Blog Post Styles ────────────────────────────────── */

.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post .post-date {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 30px;
}

.blog-post .entry-content p {
  margin-bottom: 1.4em;
}

.blog-post .post-signature {
  font-style: italic;
  color: #666;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

/* ── Blog Listing ────────────────────────────────────── */

.blog-listing {
  max-width: 700px;
  margin: 0 auto;
}

.blog-listing-item {
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

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

.blog-listing-item h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.blog-listing-item h3 a {
  color: #353535;
  border-bottom: 2px solid transparent;
}

.blog-listing-item h3 a:hover {
  border-bottom-color: #999;
}

.blog-listing-item .post-date {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #666;
}

/* ── Image Carousel ──────────────────────────────────── */

.carousel {
  position: relative;
  max-width: 700px;
  margin: 25px auto;
  overflow: hidden;
  border-radius: 3px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  object-fit: contain;
  max-height: 500px;
  background: #f5f5f5;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 3px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  text-align: center;
  padding: 10px 0;
}

.carousel-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .dot.active {
  background: #666;
}

/* ── Post Gallery (grid of images) ───────────────────── */

.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin: 25px 0;
}

.post-gallery img {
  width: 100%;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.3s;
}

.post-gallery img:hover {
  transform: scale(1.02);
}

/* ── Video Links ─────────────────────────────────────── */

.video-links {
  margin: 20px 0;
  padding: 15px 20px;
  background: #f9f9f9;
  border-radius: 3px;
}

.video-links p {
  margin-bottom: 5px;
  font-size: 15px;
}

@media (max-width: 767px) {
  .post-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .carousel-track img {
    max-height: 350px;
  }
}
