/* ============================================
   VENKOVSKÁ SVATBA - cs-gray Monochromatic
   Color palette: monochromatic gray
   ============================================ */

/* Fonty se načítají přes <link> v header.php (paralelně, ne sériově přes @import).
   display=block je záměrný – brání problikávání textu (FOUT) při načítání. */

/* Atribut hidden musí vyhrát i nad vlastními display pravidly (flex, inline-block…),
   jinak JS přepínání el.hidden na .select-bar/.lightbox-panel/.btn nefunguje. */
[hidden] {
  display: none !important;
}

:root {
  /* Colors – cs-gray scheme */
  --color-bg: #FFFFFF;
  --color-bg-light: #FFFFFF;
  --color-bg-section: #f9f7fa;
  --color-text: #666666;
  --color-text-light: #9d9d9d;
  --color-heading: #393939;
  --color-accent: #393939;
  --color-accent2: #4d4d4d;
  --color-white: #FFFFFF;
  --color-dark: #222222;
  --color-border: #d4d4d4;
  --color-overlay: rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Josefin Sans', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 900px;
  --nav-height: 70px;

  /* Hero photo vertical position: 0%=top, 50%=center, 100%=bottom */
  --hero-bg-y: 30%;

  /* Detaily hero position */
  --detaily-bg-x: center;
  --detaily-bg-y: 35%;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--color-accent2);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 400;
  line-height: 1.3;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 30px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-heading);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 1.0rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text);
  padding: 8px 16px;
  transition: color 0.3s ease;
  border-radius: 3px;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background-color: var(--color-heading);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION – Photo with bottom strip
   ============================================ */
.hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero/hero-bg.webp');
  background-size: cover;
  background-position: 35% var(--hero-bg-y);
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.0) 30%,
      rgba(0, 0, 0, 0.45) 100%);
}

/* Bottom strip – standalone section below hero */
.hero-bottom {
  text-align: center;
  padding: 60px 30px 50px;
  background-color: var(--color-bg-light);
}

.hero-label {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.hero-names {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--color-text);
}

.hero-cta {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 50px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  background-color: var(--color-accent);
  border: 1px solid var(--color-accent);
  box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.1);
}

.hero-cta:hover {
  background-color: var(--color-accent2);
  border-color: var(--color-accent2);
  color: var(--color-white);
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section-light {
  background-color: var(--color-bg-light);
}

.section-warm {
  background-color: var(--color-bg-section);
}


.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-align: center;
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 50px;
}

.section-text {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px;
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--color-text);
}


/* ============================================
   STORY SECTION (Náš příběh - home preview)
   ============================================ */
.story-preview {
  text-align: center;
}

.story-preview .section-subtitle {
  font-size: 1.45rem;
}

/* Two-column image grid (50/50) */
.story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.story-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

/* Story text block – card-like visual */
.story-block {
  max-width: 750px;
  margin: 0 auto 50px;
  padding: 40px 45px;
  background-color: var(--color-bg-section);
  border-left: 3px solid var(--color-border);
  border-radius: 0 6px 6px 0;
  text-align: left;
}

.story-block p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 16px;
}

.story-block p:last-child {
  margin-bottom: 0;
}


/* Photo Gallery */
.gallery {
  padding: var(--section-padding);
  background-color: var(--color-bg-section);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background-color: var(--color-bg-section); /* placeholder, než se náhled dotáhne */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

/* ============================================
   RSVP SECTION (Potvrzení účasti)
   ============================================ */
.rsvp-section {
  background-color: var(--color-bg-light);
}

.rsvp-form {
  max-width: 550px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-submit {
  display: block;
  width: 100%;
  padding: 16px 40px;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-accent);
  border: 1px solid var(--color-accent);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.1);
}

.form-submit:hover {
  background-color: var(--color-accent2);
  border-color: var(--color-accent2);
}

#formResponse {
  text-align: center;
  font-size: 1.15rem;
  margin-top: 10px;
  min-height: 1.2em;
}

.form-success {
  color: #27ae60;
}

.form-error {
  color: #c0392b;
}


/* RSVP Confirmation State */
.rsvp-confirmed {
  text-align: center;
  padding: 40px 20px;
}

.rsvp-confirmed-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #27ae60;
  color: #fff;
  font-size: 1.8rem;
  line-height: 60px;
  font-weight: 600;
}

.rsvp-confirmed-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.rsvp-confirmed-sub {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 25px;
}

.rsvp-confirmed-again {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.rsvp-confirmed-again:hover {
  color: var(--color-heading);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-bg-light);
  color: var(--color-text);
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--color-border);
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-heading);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.footer p {
  font-size: 1.0rem;
  letter-spacing: 1px;
  color: var(--color-text);
}

.footer a {
  color: var(--color-text-light);
}

.footer a:hover {
  color: var(--color-heading);
}

/* ============================================
   INTERNAL PAGE HEADER (for sub-pages)
   ============================================ */
.page-header {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center 65%;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.page-header-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  padding: 20px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
}

.page-header .page-subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  margin-top: 10px;
  opacity: 0.9;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respektuj systémové "omezit pohyb" + pojistka, kdyby fade-in nenaběhl (JS vypnutý/chyba) */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================
   DETAILY PAGE – Dress code columns
   ============================================ */
.detail-columns {
  display: flex;
  gap: 40px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.detail-columns-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-columns-text>p:first-child {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 25px;
}

.detail-columns-image {
  flex: 1;
}

.detail-columns-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.detail-tip {
  margin-bottom: 18px;
  padding: 15px 20px;
  background: var(--color-bg-section);
  border-left: 3px solid var(--color-border);
  border-radius: 0 4px 4px 0;
}

.detail-tip h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.detail-tip p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text);
}

.color-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}



/* ============================================
   DETAILY PAGE – Timeline
   ============================================ */
.guest-timeline {
  max-width: 600px;
  margin: 0 auto 50px;
  position: relative;
}

.guest-timeline::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--color-border);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 24px;
  position: relative;
}

.timeline-time {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-heading);
  width: 45px;
  text-align: right;
  flex-shrink: 0;
  line-height: 1.4;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 49px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--color-heading);
  border-radius: 50%;
}

.timeline-content {
  padding-left: 10px;
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 2px;
}

.timeline-content p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================
   DETAILY PAGE – Cards (menu choices, accommodation)
   ============================================ */


.guest-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 900px;
  margin: 0 auto 30px;
}

.guest-cards-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
}

.guest-card {
  text-align: center;
  padding: 35px 25px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.guest-card-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.guest-card h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.guest-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.guest-card-detail {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 5px;
}

.guest-card-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.guest-card-link:hover {
  color: var(--color-accent2);
}



/* ============================================
   DETAILY PAGE – Gift section
   ============================================ */
.gift-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.gift-text {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 35px;
}



.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0 30px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--color-border);
}

.divider-icon {
  font-size: 1.5rem;
}


/* ============================================
   DETAILY PAGE – TBD Timeline & Notice
   ============================================ */
.timeline-item-tbd .timeline-content h4 {
  color: var(--color-text-light);
}

.timeline-item-tbd .timeline-content p {
  font-style: italic;
}

.timeline-item-tbd::after {
  background: var(--color-border);
}

.tbd-notice {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 25px;
  background: var(--color-bg-light);
  border: 1px dashed var(--color-border);
  border-radius: 4px;
}

.tbd-notice p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}


/* ============================================
   INFO COLUMNS (Kdy a kde page)
   ============================================ */
.info-columns {
  padding: calc(var(--nav-height) + 60px) 0 40px;
}

.info-columns-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  gap: 60px;
  align-items: center;
}

.info-columns-map {
  width: 50%;
  height: 450px;
}

.info-columns-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 2px;
}


.info-columns-text {
  width: 50%;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-columns-text h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.info-columns-text h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 30px;
  margin-bottom: 8px;
}

.info-columns-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--color-text);
}

.info-columns-desc {
  margin-bottom: 10px;
}



/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 75vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-img.loaded {
  opacity: 1;
}

/* Během načítání další fotky při listování – stará zůstává, jen ztlumená */
.lightbox-img.switching {
  opacity: 0.35;
}

/* Lightbox – FB panel (uploader + lajk + komentáře u hostovských fotek) */
.lightbox-stage {
  position: relative;
  display: flex;
  align-items: stretch;
  max-width: 94vw;
  max-height: 88vh;
}

.lightbox-stage .lightbox-img {
  max-width: min(66vw, 820px);
  max-height: 88vh;
  border-radius: 8px;
}

.lightbox-panel {
  width: 340px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  margin-left: 14px;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.15);
  padding: 46px 18px 18px;
  box-sizing: border-box;
}

.lb-uploader {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-heading);
  margin: 0 0 6px;
}

.lb-tags {
  margin: 0 0 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-accent);
  word-break: break-word;
}

.lb-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.lb-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-text-light);
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.lb-like .icon {
  width: 20px;
  height: 20px;
}

.lb-like:hover {
  color: var(--color-heading);
}

.lb-like.liked {
  color: #e0245e;
}

.lb-like.liked .icon {
  fill: #e0245e;
  stroke: #e0245e;
}

.lb-comments {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 0;
  min-height: 60px;
}

.lb-comments-empty {
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px 0;
}

.lb-comment {
  margin-bottom: 13px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.lb-comment-name {
  font-weight: 600;
  color: var(--color-heading);
  margin-right: 7px;
}

.lb-comment-time {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.lb-comment-text {
  color: var(--color-text);
  margin-top: 2px;
  word-break: break-word;
}

.lb-comment-form {
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-comment-row {
  display: flex;
  gap: 8px;
}

.lb-comment-row .lb-comment-body {
  flex: 1;
  min-width: 0;
}

.lb-comment-form .btn {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lightbox-stage {
    flex-direction: column;
    width: 94vw;
    max-height: 90vh;
    overflow-y: auto;
  }

  .lightbox-stage .lightbox-img {
    max-width: 94vw;
    max-height: 58vh;
  }

  .lightbox-panel {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
    max-height: none;
    padding-top: 18px;
  }

  .lb-comments {
    overflow: visible;
  }
}

/* Oddělovač předsvatební / posvatební části menu */
.nav-sep {
  align-self: center;
  width: 1px;
  height: 16px;
  background: var(--color-border);
  margin: 0 3px;
}

@media (max-width: 768px) {
  .nav-sep {
    width: 60%;
    height: 1px;
    margin: 10px auto;
  }
}

.lightbox-download {
  position: absolute;
  top: 10px;
  right: 46px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.lightbox-download .icon {
  width: 22px;
  height: 22px;
}

.lightbox-download:hover {
  color: var(--color-heading);
  background: rgba(0, 0, 0, 0.06);
}

/* Ovládání promítání */
.slideshow-img:not(.loaded) {
  opacity: 0;
}

.slideshow-img {
  transition: opacity 0.4s ease;
}

.slideshow-controls {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.55);
  padding: 8px 18px;
  border-radius: 40px;
}

.ss-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  transition: opacity 0.2s ease;
}

.ss-btn.ss-pp {
  font-size: 1.05rem;
}

.ss-btn:hover {
  opacity: 0.65;
}

.slideshow-pos {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 1px;
  min-width: 58px;
  text-align: center;
}

.lightbox-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-heading);
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.75);
  padding: 3px 10px;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--color-heading);
}

.lightbox-prev,
.lightbox-next {
  flex-shrink: 0;
  align-self: center;
  background: none;
  border: none;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 10px 14px;
  line-height: 1;
  transition: color 0.2s ease;
  user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-heading);
}

/* Mobil: stage scrolluje, takže ovládání musí být pevně k obrazovce (fixed),
   jinak křížek/šipky odscrollují s obsahem nebo kolidují s panelem komentářů. */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }

  .lightbox-close {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    padding: 0;
  }

  .lightbox-download {
    position: fixed;
    top: 8px;
    right: 54px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  }

  .lightbox-counter {
    position: fixed;
    top: 14px;
    left: 10px;
    z-index: 3;
  }
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-section);
  padding: 20px;
}

.login-box {
  background: var(--color-bg);
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.login-box h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.login-box .login-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

.login-box input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 20px;
  box-sizing: border-box;
  transition: border-color 0.3s;
  outline: none;
}

.login-box input[type="password"]:focus {
  border-color: var(--color-accent);
}

.login-box button {
  width: 100%;
  padding: 14px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.login-box button:hover {
  background: transparent;
  color: var(--color-accent);
}

.login-error {
  color: #c0392b;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

/* ============================================
   PAGE-SPECIFIC BACKGROUNDS
   ============================================ */
.page-header-detaily {
  background-image: url('../img/detaily/detaily-bg.webp');
  background-position: var(--detaily-bg-x) var(--detaily-bg-y);
}

.page-header-rsvp {
  background-image: url('../img/detaily/rsvp-bg.webp');
}

.page-header-fotky {
  background-image: url('../img/detaily/fotky-bg.webp');
  background-position: center 10%; /* svislý posun fotky */
}

/* ============================================
   HONEYPOT (anti-spam)
   ============================================ */
.honeypot {
  position: absolute;
  left: -9999px;
}

/* Required field indicator */
.required::after {
  content: ' *';
  color: #c0392b;
  font-weight: 400;
}

/* Skip-to-content link (a11y) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-white);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 1px;
  z-index: 10000;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
  color: var(--color-white);
}

/* Accommodation group animation */
#accommodationGroup {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

#accommodationGroup.accom-visible {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 25px;
}

/* Disabled accommodation option (e.g. full cabins) */
#accommodation option:disabled {
  color: var(--color-text-light);
  font-style: italic;
}

/* ============================================
   404 PAGE
   ============================================ */
body.page-404 {
  height: 100%;
  overflow: hidden;
}

html:has(body.page-404) {
  height: 100%;
}

body.page-404 main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  background: var(--color-bg-section);
}

.error-wrap {
  text-align: center;
  padding: 20px 30px;
  max-width: 600px;
  width: 100%;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1;
  letter-spacing: 8px;
  opacity: 0.12;
  margin-bottom: -20px;
}

.error-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.error-text {
  font-size: 1.2rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 25px;
}

/* ---- Game Container ---- */
.game-area {
  position: relative;
  width: 100%;
  max-width: 550px;
  margin: 0 auto 25px;
}

canvas#gameCanvas {
  display: block;
  width: 100%;
  height: 150px;
  border-bottom: 2px solid var(--color-border);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(to bottom, #f5f3ef 0%, #ece9e3 100%);
}

.game-score {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
  text-align: right;
  padding: 6px 12px;
  background: #f0ede8;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--color-border);
  border-top: 0;
}

.game-hint {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-style: italic;
}

/* ---- CTA Button ---- */
.back-btn {
  display: inline-block;
  padding: 14px 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-white);
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  transition: all 0.3s ease;
  box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
  background: var(--color-accent2);
  border-color: var(--color-accent2);
}



/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 900px) {

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-images {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .info-columns {
    padding: calc(var(--nav-height) + 30px) 0 20px;
  }

  .info-columns-inner {
    flex-direction: column;
    padding: 0 30px;
    gap: 30px;
  }

  .info-columns-map,
  .info-columns-text {
    width: 100%;
  }

  .info-columns-map {
    min-height: 300px;
  }

  .info-columns-text {
    padding: 0;
  }

  .detail-columns {
    flex-direction: column;
    gap: 30px;
  }

  .detail-columns-image {
    width: 100%;
  }

  .guest-cards {
    grid-template-columns: 1fr;
  }

  .guest-cards-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
    --nav-height: 60px;
  }

  /* Mobile Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: right 0.4s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--color-heading);
    font-size: 1.1rem;
    letter-spacing: 3px;
    padding: 12px 30px;
  }

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

  .hamburger {
    display: flex;
  }

  .hamburger.active span {
    background-color: var(--color-heading);
  }

  /* Hero – shorter on mobile */
  .hero {
    height: 70vh;
  }

  .hero-bottom {
    padding: 25px 20px 30px;
  }

  .hero-names {
    font-size: 2.5rem;
  }

  /* Sections */
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.35rem;
  }

  /* Page header */
  .page-header {
    height: 40vh;
    min-height: 280px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  /* Pozadí Fotky na mobilu – laď zvlášť od desktopu.
     Na úzké (skoro čtvercové) hlavičce se fotka ořezává po STRANÁCH,
     takže tady víc zabere 1. číslo (vodorovně) než 2. (svisle). */
  .page-header-fotky {
    background-position: center 10%;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }


}

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

  .section-title {
    font-size: 1.6rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  /* 404 page */
  .error-code {
    font-size: 5rem;
  }

  .error-title {
    font-size: 1.6rem;
  }

  canvas#gameCanvas {
    height: 120px;
  }
}

/* ============================================
   CHAT WIDGET 💬
   ============================================ */

/* Floating bubble */
.chat-bubble {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

.chat-bubble.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

/* Chat window */
.chat-window {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9991;
  width: 370px;
  height: 480px;
  background: var(--color-bg);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--color-accent);
  color: var(--color-white);
  flex-shrink: 0;
}

.chat-header-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.chat-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.chat-close:hover {
  opacity: 1;
}

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-bg-section);
}

/* Message bubbles */
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
  animation: chatMsgIn 0.3s ease;
}

@keyframes chatMsgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg-bot {
  align-self: flex-start;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 12px 12px 12px 2px;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 12px 12px 2px 12px;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-items: center;
}

.chat-typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--color-text-light);
  border-radius: 50%;
  animation: chatTypingDot 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatTypingDot {

  0%,
  60%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  30% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Input area */
.chat-input-wrap {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  outline: none;
  transition: border-color 0.3s;
  background: var(--color-bg);
  color: var(--color-text);
}

.chat-input:focus {
  border-color: var(--color-accent);
}

.chat-input:disabled {
  opacity: 0.6;
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--color-accent2);
  transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 20px);
    height: min(420px, 65vh);
    bottom: 10px;
    right: 10px;
    border-radius: 12px;
  }

  .chat-bubble {
    bottom: 15px;
    right: 15px;
  }
}

/* Matrix mode override for chat */
body.matrix-mode .chat-bubble {
  background: #0F0 !important;
  color: #000 !important;
}

body.matrix-mode .chat-header {
  background: #000 !important;
  border-bottom: 1px solid #0F0 !important;
}

body.matrix-mode .chat-header-title {
  color: #0F0 !important;
}

/* ============================================
   EASTER EGGS 🥚
   ============================================ */

/* Floating hearts (type "love") */
.ee-heart {
  position: fixed;
  bottom: -2rem;
  z-index: 99999;
  pointer-events: none;
  animation: ee-float-up linear forwards;
  opacity: 0;
}

@keyframes ee-float-up {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-110vh) rotate(30deg);
    opacity: 0;
  }
}

/* Confetti (phone shake) */
.ee-confetti {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 8px;
  z-index: 99999;
  pointer-events: none;
  border-radius: 1px;
  animation: ee-confetti-fall linear forwards;
}

@keyframes ee-confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* Triple-click popup */
.ee-popup {
  margin-top: 15px;
  padding: 12px 20px;
  background: rgba(57, 57, 57, 0.9);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ee-popup.visible {
  opacity: 1;
  transform: translateY(0);
}

.ee-popup-main {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px;
}

.ee-popup-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Matrix rain canvas */
.ee-matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
}

/* Matrix mode body override */
body.matrix-mode {
  background: #000 !important;
}

body.matrix-mode .navbar {
  background: rgba(0, 0, 0, 0.9) !important;
  border-bottom-color: #0F0 !important;
}

body.matrix-mode .nav-logo,
body.matrix-mode .nav-links a,
body.matrix-mode h1,
body.matrix-mode h2,
body.matrix-mode h3,
body.matrix-mode h4,
body.matrix-mode p,
body.matrix-mode label {
  color: #0F0 !important;
}

body.matrix-mode .section-light,
body.matrix-mode .section-warm,
body.matrix-mode .hero-bottom,
body.matrix-mode .footer {
  background: #000 !important;
}

/*
 * ============================================
 *  Pokud čtete tenhle kód, tak jste buď
 *  vývojář, nebo se nudíte na svatbě.
 *  V obou případech — díky, že jste tady! 💍
 *
 *  P.S. Zkuste napsat "love" na klávesnici.
 *  P.P.S. A znáte Konami kód? ↑↑↓↓←→←→BA
 * ============================================
 */

/* ============================================
   FOTOGALERIE – upload, tlačítka, galerie
   ============================================ */

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

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

/* ---- Upload ---- */
.photo-upload {
  max-width: 640px;
  margin: 0 auto;
}

.upload-drop {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 44px 20px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.upload-drop.drag {
  border-color: var(--color-accent);
  background: var(--color-bg-section);
}

.upload-drop-text {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.upload-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.upload-name {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.upload-quality {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--color-text);
  font-size: 0.95rem;
}

.upload-quality label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Náhledy vybraných souborů před nahráním */
.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin: 16px 0 4px;
}

.upload-preview:empty {
  margin: 0;
}

.preview-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.preview-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-remove:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* ============================================
   SVG IKONY (sprite) – nahrazují emoji
   ============================================ */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex: none;
}

.icon-filled {
  fill: currentColor;
}

/* Ikona uvnitř textu/tlačítka s mezerou */
.btn .icon {
  vertical-align: -0.15em;
  margin-right: 8px;
}

/* Ikony v dlaždicových tlačítkách galerie */
.gi-download .icon,
.gi-like .icon,
.gi-report .icon,
.gi-comment .icon {
  width: 17px;
  height: 17px;
}

.gi-play .icon {
  width: 20px;
  height: 20px;
}

.gi-private .icon {
  width: 15px;
  height: 15px;
}

.gi-like.liked .icon {
  fill: currentColor;
}

/* Prázdné stavy – kultivované, bez emoji */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-light);
  padding: 56px 20px;
}

.gallery-empty-icon {
  width: 44px;
  height: 44px;
  color: var(--color-border);
  margin-bottom: 14px;
}

.comments-empty {
  text-align: center;
  color: var(--color-text-light);
  padding: 28px 10px;
  line-height: 1.7;
}

/* Příběh dne – časové bloky */
.story-block {
  margin-bottom: 48px;
}

.story-time {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--color-heading);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.story-time-clock {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--color-text-light);
  background: var(--color-bg-section);
  padding: 4px 13px;
  border-radius: 20px;
}

/* Štítek profi fotky v Příběhu dne */
.story-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-heading);
  font-size: 0.66rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 10px;
  pointer-events: none;
}

/* Kniha hostů */
.gb-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 44px;
}

.gb-textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 110px;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

.gb-ok {
  text-align: center;
  background: var(--color-bg-section);
  color: var(--color-heading);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 22px;
}

.gb-list {
  display: flex;
  flex-direction: column;
}

/* Přehled / dashboard */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.stat-card {
  text-align: center;
  padding: 26px 14px;
  background: var(--color-bg-section);
  border-radius: 10px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.stat-feature {
  text-align: center;
  margin-bottom: 48px;
}

.stat-feature-img {
  position: relative;
  display: block;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.stat-feature-img img {
  width: 100%;
  display: block;
}

.stat-feature-likes {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.95rem;
}

.stat-feature-likes .icon {
  width: 1em;
  height: 1em;
}

.stat-feature-by {
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.stat-board {
  margin-bottom: 24px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.stat-row-name {
  flex: 0 0 30%;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-bar {
  flex: 1;
  height: 10px;
  background: var(--color-bg-section);
  border-radius: 6px;
  overflow: hidden;
}

.stat-bar-fill {
  display: block;
  height: 100%;
  background: var(--color-accent);
  border-radius: 6px;
}

.stat-row-cnt {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-light);
  min-width: 28px;
  text-align: right;
}

@media (max-width: 600px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-num {
    font-size: 2.1rem;
  }
}

/* Vyhledávání v galerii */
.gallery-search {
  max-width: 480px;
  margin: 0 auto 14px;
}

/* Auto-alba: klikací štítky (předvyplněné hledání nad AI tagy) */
.gallery-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 680px;
  margin: 0 auto 22px;
}

.chip {
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.chip:hover {
  border-color: var(--color-accent);
}

.chip.active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* Aktivní (zvolený) štítek nese křížek – signál „klikni pro odebrání" */
.chip.active::after {
  content: "✕";
  margin-left: 7px;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* Počet fotek u kategoriového chipu (profi) */
.chip-count {
  opacity: 0.55;
  font-size: 0.78rem;
  margin-left: 4px;
}

.chip.active .chip-count {
  opacity: 0.85;
}

.gallery-search input {
  width: 100%;
  padding: 11px 18px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.gallery-search input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Režim výběru fotek + lišta stažení */
.select-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 20px;
  padding: 12px 16px;
  background: var(--color-bg-section);
  border-radius: 8px;
}

.select-count {
  font-weight: 600;
  color: var(--color-heading);
}

.gallery-grid.select-mode .gallery-item {
  cursor: pointer;
}

.gallery-grid.select-mode .gi-download,
.gallery-grid.select-mode .gi-like,
.gallery-grid.select-mode .gi-comment,
.gallery-grid.select-mode .gi-report,
.gallery-grid.select-mode .gi-delete {
  display: none; /* v režimu výběru schováme akce – klik jen vybírá */
}

.gallery-item.selected {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.gallery-item.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  z-index: 4;
}

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

.upload-hint {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 14px;
  font-style: italic;
  text-align: center;
}

.upload-progress {
  margin-top: 22px;
}

.upload-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.upload-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.upload-status {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 8px;
  text-align: center;
}

.upload-result {
  text-align: center;
  margin-top: 14px;
  color: var(--color-heading);
  font-weight: 600;
}

/* ---- Galerie: overlay tlačítka ---- */
.gallery-item {
  position: relative;
}

.gi-download,
.gi-delete {
  position: absolute;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-decoration: none;
  z-index: 2;
}

.gi-download {
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.gi-delete {
  right: 8px;
  top: 8px;
  background: rgba(196, 49, 75, 0.88);
  color: #fff;
  font-size: 22px;
}

.gallery-item:hover .gi-download,
.gallery-item:hover .gi-delete {
  opacity: 1;
}

@media (hover: none) {
  .gi-download,
  .gi-delete {
    opacity: 0.9;
  }
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-light);
  padding: 30px;
}

.gallery-item img {
  cursor: pointer;
}

.gi-report {
  left: 8px;
  top: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
}

.gallery-item:hover .gi-report {
  opacity: 1;
}

@media (hover: none) {
  .gi-report {
    opacity: 0.9;
  }
}

/* Načíst další / počítadlo */
.gallery-more {
  text-align: center;
  margin-top: 28px;
}

.photo-counter {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

/* Video dlaždice – přehrávací ikona */
.gi-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
  pointer-events: none;
  z-index: 2;
}

/* Lajky */
.gi-like {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
  z-index: 3;
}

.gallery-item:hover .gi-like {
  opacity: 1;
}

.gi-like.liked {
  color: #ff5a7a;
}

@media (hover: none) {
  .gi-like {
    opacity: 0.9;
  }
}

/* Toolbar galerie (řazení + akce) */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sort-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sort-switch a {
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-text);
  text-decoration: none;
}

.sort-switch a.active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.gallery-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Nadpis kategorie profi fotek – přes celou šířku mřížky (sekce od fotografky) */
.profi-cat-head {
  grid-column: 1 / -1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-heading);
  margin: 22px 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.profi-cat-head:first-child {
  margin-top: 0;
}

.profi-cat-head span {
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-left: 6px;
}

/* Přepínač zobrazení Hosté / Profi (segmentový ovladač) */
.view-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}

.view-switch button {
  padding: 9px 22px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.view-switch button:hover {
  border-color: var(--color-accent);
}

.view-switch button.active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* Slideshow + video overlay */
.slideshow-overlay,
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-img,
.slideshow-video,
.video-player {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
}

.slideshow-close,
.video-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Upload: soukromé + album */
.upload-private {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 0.95rem;
  cursor: pointer;
}

/* Druhý řádek filtrů (alba + typ) */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin: -8px 0 24px;
}

.gi-private {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 3;
}

/* Komentáře */
.gi-comment {
  position: absolute;
  left: 8px;
  bottom: 44px;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 14px;
  padding: 4px 9px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.gallery-item:hover .gi-comment {
  opacity: 1;
}

@media (hover: none) {
  .gi-comment {
    opacity: 0.9;
  }
}

/* Větší dotykové cíle ovládání fotek na mobilu (blíž k WCAG ~44 px) */
@media (max-width: 768px) {
  .gi-download,
  .gi-report {
    width: 40px;
    height: 40px;
  }

  .gi-like,
  .gi-comment {
    padding: 8px 12px;
    font-size: 14px;
  }

  .gi-comment {
    bottom: 52px;
  }
}

.comments-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.comments-box {
  background: #fff;
  border-radius: 10px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: 24px;
  position: relative;
}

.comments-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
}

.comments-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 2px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.comment:last-child {
  border-bottom: none;
}

.comment-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg-section);
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-main {
  flex: 1;
  min-width: 0;
}

.comment-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
}

.comment-author {
  font-weight: 600;
  color: var(--color-heading);
}

.comment-time {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.comment-body {
  color: var(--color-text);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 4px;
}

/* ============================================
   TOAST + POTVRZOVACÍ DIALOG (náhrada alert/confirm)
   ============================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-heading);
  color: #fff;
  padding: 13px 22px;
  border-radius: 6px;
  font-size: 0.95rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3000;
  max-width: 90vw;
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-error {
  background: #8a2b2b;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2600;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-box {
  background: #fff;
  border-radius: 10px;
  padding: 28px 26px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.confirm-msg {
  margin-bottom: 22px;
  color: var(--color-heading);
  font-size: 1.05rem;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-bg-section);
  color: var(--color-heading);
}

.comments-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comments-form input,
.comments-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  width: 100%;
}

.comments-form textarea {
  min-height: 70px;
  resize: vertical;
}

/* Admin statistiky */
.stats-list {
  list-style: none;
  padding: 0;
  max-width: 360px;
  margin: 12px auto 24px;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 2px;
  border-bottom: 1px solid var(--color-border);
}

/* Viditelný focus pro klávesovou navigaci (a11y) */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.gallery-item:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

/* Upload sekce na úzkém mobilu – jistota čitelného rozložení pod sebou */
@media (max-width: 480px) {
  .upload-options {
    gap: 14px;
  }
  .upload-name {
    width: 100%;
    box-sizing: border-box;
  }
  .upload-quality {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}