/* ==========================================
   Wedding Photo Upload - Styles
   ========================================== */

/* CSS Custom Properties */
:root {
  --color-bg-start: #fdf8f5;
  --color-bg-end: #f9f0e8;
  --color-rose-gold: #4a7c9b;
  --color-rose-gold-light: #8bb5d0;
  --color-rose-gold-dark: #3a6a87;
  --color-text-dark: #3d3d3d;
  --color-text-medium: #6b6b6b;
  --color-text-light: #9a9a9a;
  --color-white: #ffffff;
  --color-glass-bg: rgba(255, 255, 255, 0.2);
  --color-glass-border: rgba(255, 255, 255, 0.15);
  --color-success: #4a9d6e;
  --color-progress-bg: #dce4e8;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 20px;
  --radius-round: 50%;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-end) 100%);
  background-image: url('/images/E+D.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  text-align: center;
  margin-bottom: 16px;
  animation: fadeIn 0.8s ease-out;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero__description {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-white);
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Upload Section
   ========================================== */
.upload-section {
  width: 100%;
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.upload-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-large);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.upload-card:hover,
.upload-card.drag-over {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.upload-card.drag-over {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
}

.upload-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, var(--color-rose-gold-light) 0%, var(--color-rose-gold) 100%);
  color: var(--color-white);
  margin-bottom: 16px;
}

.upload-card__text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.upload-card__subtext {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.upload-card__button {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--color-rose-gold) 0%, var(--color-rose-gold-dark) 100%);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(74, 124, 155, 0.3);
}

.upload-card__button:hover,
.upload-card__button:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 124, 155, 0.4);
  outline: none;
}

.upload-card__button:active {
  transform: translateY(0);
}

.upload-card__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.upload-card__formats {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Upload Queue
   ========================================== */
.upload-queue {
  width: 100%;
  margin-bottom: 24px;
  animation: fadeIn 0.5s ease-out;
}

.upload-queue[hidden] {
  display: none;
}

.upload-queue__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.upload-queue__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Queue Item */
.queue-item {
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-medium);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  animation: slideIn 0.3s ease-out;
}

.queue-item__preview {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-small);
  object-fit: cover;
  background: var(--color-progress-bg);
  flex-shrink: 0;
}

.queue-item__preview--video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-rose-gold-light) 0%, var(--color-rose-gold) 100%);
  color: var(--color-white);
}

.queue-item__info {
  flex: 1;
  min-width: 0;
}

.queue-item__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.queue-item__size {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.queue-item__progress {
  width: 100%;
  height: 4px;
  background: var(--color-progress-bg);
  border-radius: 2px;
  overflow: hidden;
}

.queue-item__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-rose-gold-light) 0%, var(--color-rose-gold) 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.queue-item__status {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.queue-item__status--complete {
  color: var(--color-success);
}

.queue-item__status--error {
  color: #c0392b;
}

.queue-item--retryable {
  cursor: pointer;
}

.queue-item--retryable:hover {
  border-color: var(--color-white);
}

.upload-queue__actions {
  text-align: center;
  margin-top: 20px;
}

.upload-queue__actions[hidden] {
  display: none;
}

.upload-queue__more-btn {
  padding: 12px 28px;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.upload-queue__more-btn:hover,
.upload-queue__more-btn:focus {
  background: var(--color-white);
  color: var(--color-text-dark);
  outline: none;
}

/* ==========================================
   Success Screen
   ========================================== */
.success-screen {
  width: 100%;
  text-align: center;
  padding: 48px 32px;
  animation: fadeIn 0.6s ease-out;
}

.success-screen[hidden] {
  display: none;
}

.success-screen__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, #5dbd72 0%, var(--color-success) 100%);
  color: var(--color-white);
  margin-bottom: 32px;
  animation: scaleIn 0.5s ease-out;
}

.success-screen__title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.success-screen__message {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-medium);
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.success-screen__button {
  padding: 14px 32px;
  background: transparent;
  color: var(--color-rose-gold);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 2px solid var(--color-rose-gold);
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.success-screen__button:hover,
.success-screen__button:focus {
  background: var(--color-rose-gold);
  color: var(--color-white);
  outline: none;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
}

.footer__text {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================
   Responsive - Mobile
   ========================================== */
@media (max-width: 480px) {
  .container {
    padding: 32px 16px 90px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .hero__description {
    font-size: 0.8125rem;
  }

  .upload-card {
    padding: 24px 16px;
    border-radius: var(--radius-medium);
  }

  .upload-card__text {
    font-size: 0.875rem;
  }

  .queue-item {
    padding: 12px;
    gap: 12px;
  }

  .queue-item__preview {
    width: 44px;
    height: 44px;
  }

  .queue-item__name {
    font-size: 0.8125rem;
  }

  .success-screen__title {
    font-size: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}
