/* 1. Načtení fontů z Google Fonts (musí být na prvním řádku CSS) */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Ultra&display=swap');

:root {
  --bg-color: #1a1410;
  --text-color: #ebdcc2;
  --accent-gold: #c39a3f;
  --stamp-bg: #f4eedd;
  --stamp-text: #2c2017;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  background-image: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Ultra", serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 0.5em;
  letter-spacing: 1px;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #fff;
}

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

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-family: "Ultra", serif;
  font-size: 2.5rem;
}

.logo a {
  color: var(--text-color);
  text-decoration: none;
}

.logo a:hover {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-color);
  font-family: 'Merriweather', serif;
  font-size: 0.9rem;
  text-transform: capitalize;
  position: relative;
}

.nav-links a::after {
  content: "— ★ —";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  color: var(--accent-gold);
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-gold);
}

.nav-links a:hover::after, .nav-links a.active::after {
  opacity: 1;
}

.stars-divider {
  text-align: center;
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.stars-divider::before,
.stars-divider::after {
  content: "";
  height: 1px;
  width: 50px;
  background-color: rgba(195, 154, 63, 0.4);
}

.stamp-card {
  padding: 0;
  border: 2px solid var(--stamp-bg);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.stamp-card:hover {
  transform: translateY(-5px);
}

.stamp-card-inner {
  background-color: var(--stamp-bg);
  padding: 15px;
  color: var(--stamp-text);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stamp-card-inner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.15);
  margin-bottom: 15px;
}

.stamp-card-inner h3 {
  font-size: 1.6rem;
  margin-top: 10px;
  color: #3b281b;
}

.stamp-card-inner p {
  font-size: 0.95rem;
  padding: 0 10px;
  margin-bottom: 0;
}

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

.page-title {
  text-align: center;
  font-size: 4rem;
  margin: 40px 0 10px;
  color: var(--text-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 50px 0;
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

footer h4 {
  color: var(--accent-gold);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background-color: var(--accent-gold);
  color: #1a1410;
  padding: 12px 30px;
  font-family: "Ultra", serif;
  font-size: 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-gold);
  margin-top: 20px;
}
.btn:hover {
  background-color: transparent;
  color: var(--accent-gold);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  margin: 30px -20px 0 -20px;
  border-radius: 4px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,14,9,0.55) 0%, rgba(20,14,9,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
}

/* Shared Gallery & Lightbox Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.gallery-item {
  padding: 0;
  border: 2px solid var(--stamp-bg);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-item-inner {
  background-color: var(--stamp-bg);
  overflow: hidden;
}

.gallery-item-inner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item-inner img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 10, 6, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.open {
  display: flex;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  padding: 0;
  border: 2px solid var(--stamp-bg);
  border-radius: 4px;
  overflow: hidden;
}

.lightbox-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: var(--stamp-bg);
}

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(195, 154, 63, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 2.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  user-select: none;
}

.lb-arrow:hover {
  background: var(--accent-gold);
  color: #1a1410;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}

.lb-close:hover {
  background: var(--accent-gold);
  color: #1a1410;
}

.lb-counter {
  font-family: "Ultra", serif;
  color: var(--accent-gold);
  margin-top: 16px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ---------- Responzivita ---------- */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.4rem;
  }

  .logo {
    font-size: 1.8rem;
  }

  nav {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
}
