/* SendItToYou - Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
  padding: 20px;
  color: #e2e8f0;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  margin-bottom: 8px;
}

.logo-img {
  max-width: 350px;
  width: 100%;
  height: auto;
}

.tagline {
  color: #94a3b8;
  font-size: 16px;
}

/* Cards */
.card {
  background: transparent;
  margin-bottom: 24px;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed #475569;
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(51, 65, 85, 0.3);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
}

.drop-zone.drag-over {
  transform: scale(1.02);
}

.drop-zone-content {
  pointer-events: none;
}

.upload-icon {
  width: 64px;
  height: 64px;
  color: #60a5fa;
  margin-bottom: 16px;
}

.drop-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.drop-subtext {
  color: #94a3b8;
  margin-bottom: 12px;
}

.file-limit {
  font-size: 14px;
  color: #64748b;
}

/* Warning */
.warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 8px;
  color: #fbbf24;
  font-size: 0.875rem;
}

/* Progress */
.progress-container {
  background: rgba(51, 65, 85, 0.5);
  border-radius: 16px;
  padding: 40px;
  margin-top: 24px;
}

.file-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.file-name {
  font-weight: 500;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.file-size {
  color: #94a3b8;
}

.progress-bar {
  height: 8px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  text-align: center;
  margin-top: 12px;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Share Section */
#share-section .success-icon {
  text-align: center;
  margin: 20px 0;
}

.success-text {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.share-link-container {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.share-link {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #e2e8f0;
  background: #1e293b;
}

.share-link:focus {
  outline: none;
  border-color: #60a5fa;
}

/* Email Section */
.email-section {
  margin-bottom: 24px;
}

.email-section.disabled {
  opacity: 0.5;
}

.email-section p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.coming-soon {
  background: #334155;
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.email-form {
  display: flex;
  gap: 8px;
}

.email-form input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.email-form input::placeholder {
  color: #64748b;
}

.email-form input:focus {
  outline: none;
  border-color: #60a5fa;
}

.btn-secondary-small {
  padding: 14px 24px;
  background: #334155;
  color: #e2e8f0;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary-small:hover {
  background: #475569;
}

/* Expiry Notice */
.expiry-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(100, 116, 139, 0.2);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.expiry-notice strong {
  color: #e2e8f0;
}

/* Upsell Section */
.upsell-section {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  margin-bottom: 24px;
}

.upsell-text {
  margin-bottom: 16px;
  color: #94a3b8;
  font-weight: 500;
}

.upsell-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-upsell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid #60a5fa;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-upsell:hover {
  background: rgba(96, 165, 250, 0.2);
  transform: translateY(-2px);
}

.btn-upsell .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #60a5fa;
}

.btn-upsell .duration {
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 600;
}

/* Buttons */
.btn {
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #60a5fa;
  color: #0f172a;
}

.btn-primary:hover {
  background: #3b82f6;
}

.btn-secondary {
  background: transparent;
  border: 1px solid #475569;
  color: #94a3b8;
  width: 100%;
}

.btn-secondary:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

/* Success Section */
#success-section {
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 2px solid #10b981;
}

#success-section h2 {
  margin-bottom: 12px;
  color: #e2e8f0;
}

#success-section p {
  color: #94a3b8;
  margin-bottom: 24px;
}

/* Footer */
footer {
  text-align: center;
  padding: 24px;
  color: #64748b;
  font-size: 14px;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
}

footer a:hover {
  color: #e2e8f0;
  text-decoration: underline;
}

.copyright {
  margin-top: 8px;
  color: #475569;
}

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

/* Responsive */
@media (max-width: 480px) {
  .logo-img {
    max-width: 280px;
  }

  .container {
    padding: 20px 0;
  }

  .drop-zone {
    padding: 40px 20px;
  }

  .share-link-container {
    flex-direction: column;
  }

  .upsell-buttons {
    flex-direction: column;
  }

  .btn-upsell {
    width: 100%;
  }
}

/* Loading state */
.btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn.loading::after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Copy success animation */
.btn-primary.copied {
  background: #10b981;
}

/* Error state */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
