/* Cinematic Studio Theme - Warm Amber Styling System */

:root {
  --background: #0d0b0a;
  --foreground: #f4f3f2;
  
  /* Primary Warm Amber Color */
  --primary: hsl(38, 90%, 55%);
  --primary-rgb: 242, 161, 27;
  --primary-hover: hsl(38, 95%, 48%);
  
  /* Secondary Charcoal Tone */
  --card: #181513;
  --card-border: rgba(242, 161, 27, 0.15);
  --card-border-focus: rgba(242, 161, 27, 0.4);
  
  /* Muted Text */
  --muted: #8b8076;
  --muted-light: #bcb3aa;
  
  /* UI Feedback */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --destructive: #ef4444;
  --destructive-bg: rgba(239, 68, 68, 0.1);
  
  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  /* Shadows & Glows */
  --shadow-glow: 0 0 20px rgba(242, 161, 27, 0.35), 0 0 40px rgba(242, 161, 27, 0.15);
  --shadow-glow-hover: 0 0 30px rgba(242, 161, 27, 0.5), 0 0 60px rgba(242, 161, 27, 0.25);
  --shadow-success-glow: 0 0 20px rgba(16, 185, 129, 0.35);
  
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: #2b2520;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Background Ambient Glows */
.glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
}

.glow-1 {
  top: 15%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: var(--primary);
  animation: glowPulse 8s infinite alternate;
}

.glow-2 {
  bottom: 10%;
  right: 15%;
  width: 350px;
  height: 350px;
  background: hsl(45, 85%, 60%);
  animation: glowPulse 12s infinite alternate-reverse;
}

@keyframes glowPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
  100% { transform: scale(1.15) translate(20px, -20px); opacity: 0.22; }
}

/* Corner Visual Accents */
.corner-accent {
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.3;
}

.top-left {
  top: 20px;
  left: 20px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
}

.bottom-right {
  bottom: 20px;
  right: 20px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

/* App Container */
.app-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
}

/* Header */
.app-header {
  text-align: center;
  margin-top: auto;
  margin-bottom: 32px;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(242, 161, 27, 0.6));
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.brand-name {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

.service-name {
  color: var(--foreground);
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--foreground), var(--muted-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
  word-spacing: -2px;
}

.text-primary {
  color: var(--primary);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Card glass panel */
.card {
  border-radius: var(--radius);
  padding: 32px 28px;
  width: 100%;
  margin-bottom: auto;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-panel {
  background: rgba(24, 21, 19, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 161, 27, 0.25), transparent);
}

/* Panels switching */
.view-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-panel.active {
  display: flex;
}

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

/* Dropzone styling */
.dropzone {
  width: 100%;
  min-height: 240px;
  border: 2px dashed var(--card-border);
  border-radius: var(--radius);
  background: rgba(13, 11, 10, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: rgba(242, 161, 27, 0.04);
  box-shadow: 0 0 15px rgba(242, 161, 27, 0.1);
  transform: scale(0.99);
}

.hidden-file-input {
  display: none;
}

.dropzone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(242, 161, 27, 0.08);
  border: 1px solid rgba(242, 161, 27, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition);
}

.dropzone:hover .icon-circle {
  background: rgba(242, 161, 27, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 161, 27, 0.2);
}

.upload-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.animate-pulse-slow {
  animation: pulseSlow 3s infinite ease-in-out;
}

@keyframes pulseSlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.dropzone-prompt h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--foreground);
}

.dropzone-prompt p {
  font-size: 14px;
  color: var(--muted-light);
  margin-bottom: 16px;
}

.browse-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

.file-limits {
  font-size: 11px;
  color: var(--muted);
  background: #181513;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* File Selected state */
.dropzone-file-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.file-icon-wrapper {
  background: rgba(242, 161, 27, 0.1);
  border-color: var(--primary);
}

.file-icon {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.selected-file-info {
  margin-bottom: 16px;
  max-width: 90%;
}

.file-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

.file-size {
  font-size: 13px;
  color: var(--muted-light);
}

.btn-remove {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-remove:hover {
  background: var(--destructive);
  border-color: var(--destructive);
}

.btn-remove:hover .remove-icon {
  color: #fff;
  transform: rotate(90deg);
}

.remove-icon {
  width: 16px;
  height: 16px;
  color: var(--destructive);
  transition: var(--transition);
}

/* Buttons */
.btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary);
  color: #000;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-glow:hover {
  box-shadow: var(--shadow-glow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* Progress Container */
.progress-container {
  width: 100%;
  margin-top: 24px;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-status {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}

.progress-percent {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #181513;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), hsl(45, 85%, 60%));
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(242, 161, 27, 0.5);
  transition: width 0.1s ease-out;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* Success Container */
.success-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-header {
  text-align: center;
  margin-bottom: 24px;
}

.icon-success-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 1px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-success-glow);
}

.success-icon {
  width: 24px;
  height: 24px;
  color: var(--success);
}

.success-header h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.success-header p {
  font-size: 14px;
  color: var(--muted-light);
}

/* Share Link Box */
.share-url-box {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background: #0d0b0a;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  padding: 2px 2px 2px 14px;
  transition: var(--transition);
}

.share-url-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(242, 161, 27, 0.1);
}

.share-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--primary);
  font-size: 13px;
  width: 100%;
}

.btn-copy {
  background: var(--primary);
  border: none;
  height: 100%;
  width: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.btn-copy:hover {
  background: var(--primary-hover);
}

.copy-icon {
  width: 16px;
  height: 16px;
  color: #000;
}

.copy-tooltip {
  position: absolute;
  bottom: 54px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fff;
}

.btn-copy.copied .copy-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Expiration info */
.expiration-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.clock-icon, .alert-icon {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* Download View */
.download-header {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.download-icon-wrapper {
  background: rgba(242, 161, 27, 0.1);
  border-color: var(--primary);
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.download-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.download-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  word-break: break-all;
  max-width: 100%;
}

.download-meta {
  font-size: 13px;
  color: var(--muted-light);
}

/* Error View */
.icon-error-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--destructive-bg);
  border: 1px solid var(--destructive);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.icon-warning-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(242, 161, 27, 0.08);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(242, 161, 27, 0.2);
}

.error-icon {
  width: 24px;
  height: 24px;
  color: var(--destructive);
}

.error-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
}

.error-desc {
  font-size: 14px;
  color: var(--muted-light);
  text-align: center;
  line-height: 1.5;
  max-width: 320px;
}

/* Footer */
.app-footer {
  text-align: center;
  font-size: 11px;
  color: rgba(139, 128, 118, 0.45);
  margin-top: 32px;
  margin-bottom: auto;
}

/* Recipient Email input styling */
.input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.input-label {
  font-size: 11px;
  color: var(--muted-light);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-label i {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.text-input {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background: #0d0b0a;
  border: 1px solid var(--card-border);
  color: var(--foreground);
  font-size: 14px;
  padding: 0 14px;
  outline: none;
  transition: var(--transition);
}

.text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(242, 161, 27, 0.1);
  background: rgba(242, 161, 27, 0.02);
}

.btn-quick-fill {
  background: none;
  border: none;
  color: var(--muted-light);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 0;
  transition: var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 2px;
}

.btn-quick-fill:hover {
  color: var(--primary);
}

.btn-quick-fill i {
  width: 12px;
  height: 12px;
}

/* Utility hiding classes */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .app-container {
    padding: 16px;
  }
  .card {
    padding: 24px 20px;
  }
  .logo-text {
    font-size: 22px;
  }
  .logo-icon {
    width: 28px;
    height: 28px;
  }
}
