/* Urška & Uroš 23.5.2026 — u2u.si */
:root {
  --olive-deep: #4A5D2C;
  --olive-sage: #8A9968;
  --olive-bright: #A8B968;
  --cream: #FAF4E8;
  --beige: #E8DCC5;
  --walnut: #3E2C1F;
  --shadow: 0 4px 20px rgba(74,93,44,.12);
}

[hidden] { display: none !important; }

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--walnut);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.slideshow { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
  animation: kenburns 8s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.08) translate(-1%, 1%); }
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250,244,232,.15) 0%,
    rgba(250,244,232,.05) 40%,
    rgba(74,93,44,.55) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem 3rem;
  text-align: center;
  color: var(--cream);
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}

.couple {
  font-family: 'Allura', cursive;
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 1;
  margin-bottom: .5rem;
  letter-spacing: 0;
}

.date {
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 3.2vw, 1.6rem);
  letter-spacing: 0.4em;
  margin: .6rem 0;
}

.date .sep {
  display: inline-block;
  margin: 0 .5em;
  opacity: .7;
  font-weight: 300;
}

.venue {
  font-size: clamp(.7rem, 2.5vw, .9rem);
  letter-spacing: 0.3em;
  font-weight: 400;
  opacity: .9;
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: var(--cream);
  max-width: 640px;
  margin: 0 auto;
}

.tagline {
  text-wrap: balance;
  font-family: 'Allura', cursive;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 400;
  color: var(--olive-deep);
  line-height: 1.2;
  margin-bottom: 2rem;
}

#upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.field { display: flex; flex-direction: column; gap: .4rem; text-align: left; }

.field .label {
  font-size: .75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive-sage);
  font-weight: 500;
}

.field input {
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--beige);
  background: rgba(255,255,255,.6);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--walnut);
  transition: border-color .2s, background .2s;
}

.field input:focus {
  outline: none;
  border-color: var(--olive-sage);
  background: white;
}

.btn {
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, background .2s, box-shadow .2s;
  letter-spacing: 0.05em;
  -webkit-tap-highlight-color: transparent;
}

.btn.primary {
  background: var(--olive-deep);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.btn.primary:hover { background: var(--olive-sage); }
.btn.primary:active { transform: scale(.98); }

.btn.big { padding: 1.2rem 1.5rem; font-size: 1.05rem; }

.btn.submit { background: var(--olive-bright); color: var(--walnut); font-weight: 600; }
.btn.submit:hover { background: var(--olive-sage); color: var(--cream); }

.btn:disabled { opacity: .5; cursor: wait; }

.file-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-align: left;
  background: rgba(168,185,104,.08);
  padding: 1rem;
  border-radius: 12px;
  font-size: .9rem;
  color: var(--olive-deep);
}

.file-list .file-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}

.file-list .remove {
  background: none; border: none; color: var(--olive-sage);
  font-size: 1.4rem; cursor: pointer; padding: 0 .3rem;
}

.status {
  padding: 1rem;
  border-radius: 12px;
  font-size: .9rem;
  text-align: left;
}

.status.info { background: rgba(168,185,104,.15); color: var(--olive-deep); }
.status.success { background: rgba(74,93,44,.1); color: var(--olive-deep); }
.status.error { background: rgba(181,99,76,.12); color: #8B3A22; }

.progress-bar {
  height: 6px;
  background: var(--beige);
  border-radius: 4px;
  overflow: hidden;
  margin-top: .6rem;
}

.progress-bar > div {
  height: 100%;
  background: var(--olive-bright);
  transition: width .3s ease;
}

/* ===== GALLERY ===== */
.gallery-section {
  padding: 3rem 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2rem;
  color: var(--olive-deep);
  text-align: center;
  letter-spacing: .1em;
}

.gallery-sub {
  text-align: center;
  color: var(--olive-sage);
  font-size: .85rem;
  letter-spacing: .15em;
  margin: .5rem 0 2rem;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}

@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
}

.gallery .tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--beige);
  border-radius: 6px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.gallery .tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.gallery .tile img,
.gallery .tile video {
  width: 100%; height: 100%; object-fit: cover;
}

.gallery .tile .name-tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .8rem .6rem .4rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
  color: white;
  font-size: .72rem;
  letter-spacing: .05em;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.gallery .tile .video-badge {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,.6); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
}

.gallery .empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--olive-sage);
  font-style: italic;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(30,25,15,.92);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  flex-direction: column;
  gap: 1rem;
}

.lightbox img, .lightbox video {
  max-width: 100%; max-height: 80vh; border-radius: 6px;
}

.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.15); color: white;
  border: none; width: 44px; height: 44px;
  border-radius: 50%; font-size: 1.5rem; cursor: pointer;
}

.lightbox-caption { color: rgba(255,255,255,.85); font-size: .9rem; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background: var(--cream);
}

.footer-tagline {
  font-family: 'Allura', cursive;
  font-size: 1.6rem;
  color: var(--olive-sage);
}

.footer-leaf { font-size: 1.2rem; margin-top: .3rem; }


/* Hero CTA button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: 1.8rem;
  padding: 1rem 2rem;
  background: rgba(250, 244, 232, 0.95);
  color: var(--olive-deep);
  text-decoration: none;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.2);
  transition: transform .2s ease, background .2s ease;
  text-shadow: none;
  animation: hero-cta-pulse 2.4s ease-in-out infinite;
}
.hero-cta:hover { background: var(--cream); transform: translateY(-2px); }
.hero-cta:active { transform: translateY(0); }
@keyframes hero-cta-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.2); }
  50%      { box-shadow: 0 8px 36px rgba(168,185,104,0.55), 0 2px 10px rgba(0,0,0,0.2); }
}

/* On mobile, ensure the CTA is above the bottom fade */
@media (max-width: 600px) {
  .hero-content { padding-bottom: 2rem; }
  .hero-cta { font-size: .95rem; padding: .9rem 1.6rem; }
}
