/* Ultra-Modern Premium Design System - Sectrox Image Data */
:root {
  /* Premium Color Palette - Emerald & Neutrals */
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-200: #a7f3d0;
  --color-emerald-300: #6ee7b7;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-emerald-700: #047857;
  --color-emerald-800: #065f46;
  --color-emerald-900: #064e3b;

  /* Sophisticated Neutrals */
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  --color-black: #000000;

  /* Premium Typography */
  --font-primary: "Work Sans", system-ui, -apple-system, sans-serif;
  --font-secondary: "Open Sans", system-ui, -apple-system, sans-serif;

  /* Sophisticated Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-emerald: 0 0 20px rgba(16, 185, 129, 0.3);
  --shadow-emerald-lg: 0 0 40px rgba(16, 185, 129, 0.4);

  /* Premium Gradients */
  --gradient-emerald: linear-gradient(135deg, var(--color-emerald-600), var(--color-emerald-500));
  --gradient-emerald-light: linear-gradient(135deg, var(--color-emerald-500), var(--color-emerald-400));
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  --gradient-dark: linear-gradient(135deg, var(--color-gray-900), var(--color-gray-800));

  /* Animation Curves */
  --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-gentle: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font-secondary);
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  min-height: 100vh;
  color: var(--color-gray-900);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sophisticated Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
  animation: backgroundFloat 20s ease-in-out infinite;
  z-index: -1;
}

.app-container {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.max-width-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Premium Header Design */
.header-section {
  text-align: center;
  padding: 80px 0;
  animation: fadeInUp 1s var(--ease-smooth);
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  animation: floatGentle 4s ease-in-out infinite;
}

.logo-icon {
  padding: 16px;
  border-radius: 20px;
  background: var(--gradient-emerald);
  color: var(--color-white);
  box-shadow: var(--shadow-emerald);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.logo-icon:hover::before {
  left: 100%;
}

.logo-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-emerald-lg);
}

.sparkles-icon {
  width: 36px;
  height: 36px;
}

.main-title {
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-emerald-600), var(--color-emerald-500), var(--color-emerald-400));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShimmer 3s ease-in-out infinite;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.375rem;
  color: var(--color-gray-600);
  font-weight: 400;
  max-width: 700px;
  line-height: 1.7;
  animation: fadeInUp 1s var(--ease-smooth) 0.2s both;
}

.professional-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-emerald-600);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 16px;
  background: var(--color-emerald-50);
  border-radius: 50px;
  border: 1px solid var(--color-emerald-200);
  animation: fadeInUp 1s var(--ease-smooth) 0.4s both;
  transition: all 0.3s var(--ease-smooth);
}

.professional-badge:hover {
  background: var(--color-emerald-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.zap-icon {
  width: 16px;
  height: 16px;
}

/* Premium Upload Card */
.upload-card {
  animation: fadeInUp 0.8s var(--ease-smooth) 0.6s both;
  border: 2px solid var(--color-gray-200);
  border-radius: 24px;
  padding: 48px;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.upload-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glass);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

.upload-card:hover {
  border-color: var(--color-emerald-300);
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.upload-card:hover::before {
  opacity: 1;
}

.upload-area {
  position: relative;
  border: 3px dashed var(--color-gray-300);
  border-radius: 20px;
  padding: 64px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  background: linear-gradient(135deg, var(--color-gray-50), var(--color-white));
  z-index: 1;
}

.upload-area:hover {
  border-color: var(--color-emerald-400);
  background: linear-gradient(135deg, var(--color-emerald-50), var(--color-white));
  transform: scale(1.02);
}

.upload-area.drag-over {
  border-color: var(--color-emerald-500);
  background: linear-gradient(135deg, var(--color-emerald-100), var(--color-emerald-50));
  transform: scale(1.05);
  animation: pulseEmerald 1s ease-in-out infinite;
  box-shadow: var(--shadow-emerald);
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.upload-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gradient-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatGentle 3s ease-in-out infinite;
  box-shadow: var(--shadow-emerald);
  transition: all 0.4s var(--ease-smooth);
}

.upload-icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-white);
}

.upload-area.drag-over .upload-icon {
  animation: bounceSpring 0.6s var(--ease-spring) infinite;
  transform: scale(1.1);
}

.upload-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.upload-subtitle {
  color: var(--color-gray-600);
  font-size: 1.125rem;
}

.upload-info {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Premium Loading Design */
.loading-card {
  animation: fadeInUp 0.6s var(--ease-smooth);
  border: 2px solid var(--color-emerald-200);
  border-radius: 24px;
  padding: 48px;
  background: var(--color-white);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border: 4px solid var(--color-gray-200);
  border-radius: 50%;
}

.spinner-ring-animated {
  position: absolute;
  inset: 0;
  border: 4px solid var(--color-emerald-500);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinSmooth 1s linear infinite;
  box-shadow: var(--shadow-emerald);
}

.loading-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
}

.loading-subtitle {
  color: var(--color-emerald-600);
  font-weight: 500;
}

/* Premium Error Design */
.error-card {
  animation: fadeInUp 0.6s var(--ease-smooth);
  border: 2px solid #fecaca;
  border-radius: 24px;
  padding: 32px;
  background: var(--color-white);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.error-icon {
  padding: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.error-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-white);
}

.error-message {
  color: #dc2626;
  font-weight: 500;
  font-size: 1.125rem;
}

/* Premium Results Layout */
.results-container {
  animation: fadeInUp 0.8s var(--ease-smooth);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1280px) {
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Premium Card Design */
.preview-card,
.metadata-card,
.gps-card {
  border: 2px solid var(--color-gray-200);
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transition: all 0.4s var(--ease-smooth);
  animation: fadeInUp 0.6s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.preview-card::before,
.metadata-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
  transition: left 0.6s;
}

.preview-card:hover::before,
.metadata-card:hover::before {
  left: 100%;
}

.preview-card:hover,
.metadata-card:hover {
  border-color: var(--color-emerald-300);
  box-shadow: var(--shadow-2xl);
  transform: translateY(-12px);
}

.gps-card {
  border-color: var(--color-emerald-300);
  background: linear-gradient(135deg, var(--color-white), var(--color-emerald-50));
  box-shadow: var(--shadow-emerald);
}

.gps-card:hover {
  background: linear-gradient(135deg, var(--color-emerald-50), var(--color-emerald-100));
  box-shadow: var(--shadow-emerald-lg);
  transform: translateY(-12px);
}

.card-header {
  padding: 32px 32px 16px;
  background: linear-gradient(135deg, var(--color-gray-50), var(--color-white));
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.gps-card .card-header {
  background: linear-gradient(135deg, var(--color-emerald-100), var(--color-emerald-50));
  border-bottom-color: var(--color-emerald-200);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.card-icon {
  padding: 12px;
  border-radius: 16px;
  background: var(--gradient-emerald);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-emerald);
  transition: all 0.3s var(--ease-smooth);
}

.card-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.gps-icon {
  animation: pulseEmerald 2s ease-in-out infinite;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.sparkles-small {
  width: 20px;
  height: 20px;
  color: var(--color-emerald-500);
  animation: floatGentle 2s ease-in-out infinite;
}

.card-description {
  margin-top: 12px;
  color: var(--color-gray-600);
  font-weight: 500;
  font-size: 0.875rem;
}

.gps-coordinates {
  margin-top: 12px;
  color: var(--color-emerald-700);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: var(--font-primary);
}

.card-content {
  padding: 24px 32px 32px;
}

/* Premium Image Preview */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--color-gray-200);
  background: var(--color-gray-50);
}

.preview-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  transition: transform 0.4s var(--ease-smooth);
}

.preview-image:hover {
  transform: scale(1.05);
}

/* Premium Metadata Items */
.metadata-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-gray-50), var(--color-white));
  border: 1px solid var(--color-gray-200);
  transition: all 0.3s var(--ease-smooth);
  animation: fadeInUp 0.4s var(--ease-smooth);
}

.metadata-item:hover {
  background: linear-gradient(135deg, var(--color-emerald-50), var(--color-white));
  border-color: var(--color-emerald-300);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.metadata-key {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  font-family: var(--font-primary);
}

.metadata-value {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  font-size: 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  color: var(--color-emerald-700);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s var(--ease-smooth);
  font-weight: 500;
}

.metadata-item:hover .metadata-value {
  background: var(--color-emerald-50);
  border-color: var(--color-emerald-400);
  color: var(--color-emerald-800);
}

/* Premium GPS Styles */
.gps-main-coords {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 24px;
  background: linear-gradient(135deg, var(--color-white), var(--color-emerald-50));
  border-radius: 16px;
  border: 2px solid var(--color-emerald-200);
  box-shadow: var(--shadow-emerald);
}

.gps-coord-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gps-coord-label {
  font-weight: 700;
  color: var(--color-gray-900);
  font-family: var(--font-primary);
}

.gps-coord-value {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-emerald-700);
}

.gps-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--gradient-emerald);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: var(--shadow-emerald);
  font-family: var(--font-primary);
}

.gps-maps-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-emerald-lg);
  background: var(--gradient-emerald-light);
}

.gps-maps-link svg {
  width: 18px;
  height: 18px;
}

/* Premium No Data States */
.no-gps-data,
.no-metadata {
  text-align: center;
  padding: 48px 32px;
  color: var(--color-gray-500);
}

.no-data-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--color-gray-200);
}

.no-data-icon svg {
  width: 40px;
  height: 40px;
  opacity: 0.6;
  color: var(--color-gray-400);
}

.no-data-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-gray-600);
  font-family: var(--font-primary);
}

.no-data-subtitle {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

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

/* Premium Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGentle {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes bounceSpring {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.05);
  }
}

@keyframes spinSmooth {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseEmerald {
  0%,
  100% {
    box-shadow: var(--shadow-emerald);
    transform: scale(1);
  }
  50% {
    box-shadow: var(--shadow-emerald-lg);
    transform: scale(1.05);
  }
}

@keyframes gradientShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes backgroundFloat {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .max-width-container {
    padding: 20px;
    gap: 32px;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.125rem;
  }

  .upload-card {
    padding: 32px 20px;
  }

  .upload-area {
    padding: 48px 20px;
  }

  .card-content {
    padding: 20px 24px 24px;
  }

  .card-header {
    padding: 24px 24px 12px;
  }

  .gps-coord-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .metadata-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }

  .upload-icon {
    width: 80px;
    height: 80px;
  }

  .upload-icon svg {
    width: 40px;
    height: 40px;
  }
}
