/* =====================================================
   Wedding Uploader — Light Floral Theme
   Paula & Marko | 26.06.2026.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --bg:          #f5f0e8;
  --bg2:         #ede7d9;
  --bg3:         #e6deca;
  --bg-card:     #faf7f2;
  --gold:        #b5923a;
  --gold-light:  #d4aa55;
  --gold-dim:    #c9a55a;
  --olive:       #6b7c4a;
  --olive-light: #8a9e60;
  --olive-dim:   #a8b890;
  --brown:       #3d3427;
  --brown-mid:   #5c4f3a;
  --brown-light: #8a7a60;
  --cream:       #faf7f2;
  --error:       #c0392b;
  --success:     #5a7a3a;
  --border:      rgba(181,146,58,0.22);
  --border-soft: rgba(107,124,74,0.15);
  --shadow:      0 2px 24px rgba(61,52,39,0.10);
  --shadow-card: 0 4px 32px rgba(61,52,39,0.08);
  --radius:      16px;
  --radius-sm:   10px;
  --font-script: 'Dancing Script', cursive;
  --font-serif:  'Cormorant Garamond', 'Georgia', serif;
  --font-sans:   'Lato', -apple-system, sans-serif;
  --transition:  0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--brown);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Botanical SVG decorations ──────────────────── */
.botanical-top {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  user-select: none;
}

.botanical-corner {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
}

/* ── Page wrapper ───────────────────────────────── */
.page-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 0;
  position: relative;
}

.hero-heart {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: 0.5em;
}

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 10vw, 4.2rem);
  color: var(--brown);
  line-height: 1.1;
  margin-bottom: 0.2em;
}

.hero-script .ampersand {
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-mid);
  margin: 0.6rem 0 0.3rem;
}

.hero-location {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--olive);
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.4rem auto;
  max-width: 320px;
  color: var(--gold-dim);
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.hero-divider-icon {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  color: var(--brown);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.hero-desc {
  font-size: 0.88rem;
  color: var(--brown-light);
  margin-bottom: 0.5rem;
}

/* ── Botanical SVG inline ───────────────────────── */
.leaves-svg {
  display: block;
  margin: 0 auto;
  opacity: 0.7;
}

/* ── Steps section ──────────────────────────────── */
.steps-section {
  margin: 1.8rem 0 0;
}

.steps-heading {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 1.2rem;
}

.steps-heading span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.steps-heading span::before,
.steps-heading span::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.steps-heading span::after {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.step {
  padding: 0.75rem 0.4rem;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.55rem;
  background: var(--cream);
}

.step-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  display: block;
}

.step-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-mid);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.72rem;
  color: var(--brown-light);
  line-height: 1.45;
}

/* ── Dotted connector ───────────────────────────── */
.steps-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* ── Card ───────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--olive-dim), var(--gold-dim), var(--olive-dim));
  opacity: 0.6;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--brown);
  text-align: center;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

/* ── Form elements ──────────────────────────────── */
.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-size: 0.72rem;
  color: var(--olive);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--brown);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--gold-dim);
  background: var(--cream);
}

input::placeholder { color: var(--brown-light); opacity: 0.6; }

/* ── Upload drop zone ───────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  background: var(--bg2);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--olive-light);
  background: rgba(107,124,74,0.06);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.upload-zone-text {
  font-size: 0.95rem;
  color: var(--brown-mid);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
}

.upload-zone-sub {
  font-size: 0.72rem;
  color: var(--brown-light);
  margin-top: 0.45rem;
  letter-spacing: 0.05em;
}

/* ── File preview list ──────────────────────────── */
.file-summary {
  background: var(--bg2);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-top: 1rem;
  display: none;
  border: 1px solid var(--border-soft);
}

.file-summary.visible { display: block; }

.file-summary-header {
  font-size: 0.7rem;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.file-list {
  list-style: none;
  max-height: 150px;
  overflow-y: auto;
}

.file-list li {
  font-size: 0.8rem;
  color: var(--brown-light);
  padding: 0.22rem 0;
  border-bottom: 1px solid rgba(107,124,74,0.1);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.file-list li:last-child { border-bottom: none; }
.file-list .fname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 72%; }
.file-list .fsize { color: var(--gold); white-space: nowrap; font-size: 0.75rem; }

.file-total {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--brown-light);
  text-align: right;
}

/* ── Warning banner ─────────────────────────────── */
.warning-banner {
  background: rgba(181,146,58,0.08);
  border: 1px solid rgba(181,146,58,0.25);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  color: var(--gold);
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Progress bar ───────────────────────────────── */
.progress-wrap {
  display: none;
  margin-top: 1.2rem;
}

.progress-wrap.visible { display: block; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--brown-light);
  margin-bottom: 0.4rem;
}

.progress-bar-track {
  background: var(--bg2);
  border-radius: 100px;
  height: 7px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--olive-dim), var(--gold-dim));
  border-radius: 100px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--olive), var(--olive-light));
  color: #fff;
  box-shadow: 0 2px 12px rgba(107,124,74,0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--olive-light), var(--olive));
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(107,124,74,0.35);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--brown-mid);
}

.btn-secondary:hover {
  border-color: var(--olive-light);
  color: var(--olive);
  background: rgba(107,124,74,0.05);
}

.btn-sm {
  width: auto;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
}

/* ── Alerts ─────────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.84rem;
  margin-top: 1rem;
  display: none;
}

.alert.visible { display: block; }

.alert-error {
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.25);
  color: var(--error);
}

.alert-success {
  background: rgba(90,122,58,0.08);
  border: 1px solid rgba(90,122,58,0.3);
  color: var(--success);
}

/* ── Success page ───────────────────────────────── */
.success-page {
  text-align: center;
  padding: 2.5rem 1rem;
}

.success-icon { font-size: 3rem; margin-bottom: 0.8rem; }

.success-title {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--brown);
  margin-bottom: 0.6rem;
}

.success-text {
  color: var(--brown-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ── Tips box ───────────────────────────────────── */
.tips-box {
  background: rgba(107,124,74,0.07);
  border: 1px solid rgba(107,124,74,0.18);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-top: 1.5rem;
}

.tips-title {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tips-list {
  list-style: none;
}

.tips-list li {
  font-size: 0.8rem;
  color: var(--brown-mid);
  padding: 0.22rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.tips-list li::before {
  content: '♥';
  color: var(--gold);
  font-size: 0.7rem;
  margin-top: 0.2em;
  flex-shrink: 0;
}

/* ── Footer strip ───────────────────────────────── */
.page-footer {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  font-size: 0.7rem;
  color: var(--brown-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-footer .hearts {
  display: block;
  color: var(--gold-dim);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  margin-bottom: 0.4rem;
}

/* ── Nav ────────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-card);
}

.nav a {
  color: var(--brown-light);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}

.nav a:hover, .nav a.active {
  color: var(--olive);
  border-bottom-color: var(--olive-light);
}

/* ── Gallery ────────────────────────────────────── */
.gallery-header {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}

.gallery-header h1 {
  font-family: var(--font-script);
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--brown);
}

.gallery-stats {
  font-size: 0.78rem;
  color: var(--brown-light);
  margin-top: 0.4rem;
  letter-spacing: 0.08em;
}

.guest-section { margin-top: 2rem; }

.guest-name-heading {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--olive);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 0.6rem;
  font-style: italic;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.45rem;
}

.photo-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border-soft);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.photo-thumb:hover {
  transform: scale(1.04);
  border-color: var(--gold-dim);
  box-shadow: 0 4px 16px rgba(181,146,58,0.2);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61,52,39,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  color: var(--bg);
  cursor: pointer;
  background: rgba(61,52,39,0.6);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(61,52,39,0.9); }

/* ── Admin ──────────────────────────────────────── */
.admin-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.admin-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.5rem;
}

.admin-header h1 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brown); }
.admin-header p  { font-size: 0.84rem; color: var(--brown-light); margin-top: 0.2rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.stat-value { font-family: var(--font-serif); font-size: 2rem; color: var(--olive); line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--brown-light); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.35rem; }

.admin-section { margin-top: 2rem; }

.admin-section h2 {
  font-size: 0.72rem;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-sans);
  font-weight: 700;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }

.data-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  color: var(--olive);
  font-weight: 700;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.data-table td {
  padding: 0.6rem 0.75rem;
  color: var(--brown-mid);
  border-bottom: 1px solid rgba(107,124,74,0.08);
  vertical-align: middle;
}

.data-table tr:hover td { background: rgba(107,124,74,0.04); }

.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-img { background: rgba(181,146,58,0.12); color: var(--gold); }
.badge-vid { background: rgba(90,122,58,0.12); color: var(--olive); }

.action-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 480px) {
  .page-wrap { padding: 0 1rem 3rem; }
  .card { padding: 1.3rem 1.1rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .step:nth-child(2)::after { display: none; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
