/**
 * Data From URL - Modern UI Styles
 * Following WCAG AA accessibility standards
 */

/* CSS Variables for theming */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg-primary: #ffffff;
  --bg-secondary: #f3f4f6;
  --bg-tertiary: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 0;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

main.container {
  flex: 1;
  padding: 2rem 1rem;
}

/* ========== HEADER ========== */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Header Navigation */
.header-nav {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  gap: 2rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-tagline {
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.header-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.header-link svg {
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-link {
  color: white;
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-link:hover,
.lang-link.active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.lang-switcher .separator {
  opacity: 0.5;
  color: white;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  padding: 3rem 0;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.badge svg {
  flex-shrink: 0;
}

/* Main Card */
.main-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

/* Tabs */
.card-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab {
  flex: 1;
  min-width: 120px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
}

.tab:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--text-primary);
}

.tab.active {
  background: var(--bg-primary);
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 150px;
  font-family: 'Monaco', 'Courier New', monospace;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type='checkbox'] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.preferences-note {
  margin: 1rem 0 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--primary);
  padding: 0.35rem 0.75rem;
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
  background: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Examples */
.examples {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.examples-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.example-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.example-link {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.example-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Loading State */
.loading {
  display: none;
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  gap: 1.5rem;
  align-items: flex-start;
}

.loading.visible {
  display: flex;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--bg-tertiary);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

.loading-content {
  flex: 1;
}

.loading-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.loading-steps {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.loading-step::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-dark);
  flex-shrink: 0;
}

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

.loading-step.active::before {
  background: var(--primary);
}

.loading-step.completed::before {
  background: var(--success);
}

.loading-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.loading-warning {
  color: var(--warning);
  display: none;
}

.loading-warning.visible {
  display: inline;
}

.loading-cancel {
  margin-top: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Results Section */
.result-section {
  display: none;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.result-section.visible {
  display: block;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
}

.status-success {
  background: #d1fae5;
  color: #065f46;
}

.status-error {
  background: #fee2e2;
  color: #991b1b;
}

/* Export Buttons */
.export-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.export-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.export-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Metadata Grid */
.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metadata-item {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.metadata-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.metadata-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

/* Result Tabs */
.result-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.result-tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.result-tab:hover {
  color: var(--primary);
}

.result-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.result-content {
  display: none;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  max-height: 600px;
  overflow-y: auto;
}

.result-content.active {
  display: block;
}

.result-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

#cards-result {
  background: transparent;
  padding: 0;
  max-height: none;
}

.card-view-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
}

.card-view-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.insights-panel {
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.insights-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insight-card {
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.insight-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.insight-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Card View (powered by card-view.js) */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card + .card {
  margin-top: 1rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.card-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.card-badge-article {
  background: #dbeafe;
  color: #1d4ed8;
}

.card-badge-product {
  background: #fef3c7;
  color: #92400e;
}

.card-title {
  font-size: 1.1rem;
  margin: 0;
}

.card-meta-line {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.card-description {
  color: var(--text-primary);
  margin: 0.5rem 0 0.75rem;
}

.card-keypoints,
.card-tags,
.card-section-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-keypoint,
.card-tag,
.card-section-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

.card-footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.card-error {
  border-color: var(--danger);
  background: #fef2f2;
}

.card-error-message {
  color: var(--danger);
  margin: 0.25rem 0 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-tertiary);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.batch-summary {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.summary-chip {
  flex: 1;
  min-width: 140px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 600;
}

.batch-result-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.batch-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

.batch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.batch-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.batch-raw {
  margin-top: 1.5rem;
}

.status-chip {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-success {
  background: #dcfce7;
  color: #166534;
}

.status-error {
  background: #fee2e2;
  color: #991b1b;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.history-actions {
  display: flex;
  gap: 0.75rem;
}

.history-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.history-column {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.history-list,
.job-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.history-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem 1rem;
}

.history-card {
  background: var(--bg-primary);
}

.history-card-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.job-board-section + .job-board-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.job-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--bg-primary);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.job-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* JSON Syntax Highlighting */
.json-key {
  color: #881391;
}
.json-string {
  color: #1a1aa6;
}
.json-number {
  color: #1c00cf;
}
.json-boolean {
  color: #00179e;
}
.json-null {
  color: #aa5d00;
}

/* History Cards */
.history-card {
  background: var(--bg-secondary);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.history-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* API Docs */
.endpoint {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.endpoint h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-family: 'Monaco', 'Courier New', monospace;
}

.endpoint pre {
  background: var(--text-primary);
  color: #10b981;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-top: 1rem;
}

.endpoint code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
}

/* Job Status */
.job-status {
  display: none;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.job-status.visible {
  display: block;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, #4c51bf 0%, #5a3e8c 100%);
  color: white;
  margin-top: auto;
  padding: 3rem 0 1.5rem;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section h3 {
  font-size: 1.25rem;
}

.footer-section h4 {
  font-size: 1rem;
  opacity: 0.95;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand .logo {
  margin-bottom: 0.5rem;
}

.footer-brand p {
  opacity: 0.9;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  opacity: 0.9;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links li a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.footer-links li a svg {
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-copyright,
.footer-made-with,
.footer-license {
  opacity: 0.9;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
}

.footer-made-with .heart {
  color: #ef4444;
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
}

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

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .header-links {
    gap: 1rem;
  }

  .header-link span {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  main.container {
    padding: 1.5rem 1rem;
  }

  /* Header Responsive */
  .nav-container {
    gap: 1rem;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }

  /* Hero Responsive */
  .hero {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-badges {
    gap: 0.75rem;
  }

  .badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* Main Content */
  .tab-content {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-tabs {
    overflow-x: auto;
  }

  .tab {
    min-width: 100px;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  .card-view-wrapper {
    grid-template-columns: 1fr;
  }

  .history-panels {
    grid-template-columns: 1fr;
  }

  .batch-summary {
    flex-direction: column;
  }

  /* Footer Responsive */
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-bottom-content {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .header-brand {
    gap: 0.5rem;
  }

  .logo svg {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 0.9375rem;
  }

  .badge {
    padding: 0.4rem 0.875rem;
    font-size: 0.75rem;
  }

  .badge svg {
    width: 14px;
    height: 14px;
  }

  .btn {
    width: 100%;
  }

  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

/* 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 Navigation */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== RICH CONTENT SECTION ========== */
.content-section {
  background: white;
  padding: 4rem 0;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
}

.content-h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: #111827;
  text-align: center;
}

.content-intro {
  margin-bottom: 3rem;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1.5rem;
}

.content-block {
  margin-bottom: 4rem;
}

.content-block h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

.content-block h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.content-block p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1.25rem;
}

.highlight-box {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-left: 4px solid #667eea;
  padding: 2rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: #667eea;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  min-height: 48px;
}

.stat-source {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

.stats-explanation {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.process-steps {
  margin: 2rem 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
}

.step-content h3 {
  margin-top: 0.5rem;
}

.analogy-box {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 2rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.use-case-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s;
}

.use-case-card:hover {
  border-color: #667eea;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
  transform: translateY(-4px);
}

.use-case-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.use-case-card h3 {
  margin-bottom: 1rem;
  color: #111827;
}

.use-case-card p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.use-case-stat {
  background: #667eea15;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #667eea;
  margin-top: 1rem;
}

.ai-benefits, .tech-points {
  margin: 2rem 0;
}

.benefit-item, .tech-point {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.benefit-item:last-child, .tech-point:last-child {
  border-bottom: none;
}

.benefit-item ul, .tech-point ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.benefit-item li, .tech-point li {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.trend-timeline {
  position: relative;
  padding-left: 3rem;
  margin: 2rem 0;
}

.trend-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.trend-item {
  position: relative;
  margin-bottom: 3rem;
}

.trend-year {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 4px solid white;
  box-shadow: 0 0 0 2px #667eea;
}

.trend-content {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.trust-factors {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.trust-item {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 0.75rem;
  border-left: 4px solid #10b981;
}

.getting-started-steps {
  margin: 2rem 0;
}

.gs-step {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.gs-number {
  flex-shrink: 0;
  background: #667eea;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.gs-content h3 {
  margin-bottom: 0.5rem;
}

.final-cta-text {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0;
  color: #111827;
}

.final-thoughts {
  background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
  padding: 3rem;
  border-radius: 1rem;
}

.cta-final {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  margin-top: 2rem;
  text-align: center;
  border: 2px solid #667eea;
}

.cta-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.signature {
  font-style: italic;
  color: #6b7280;
  margin-top: 1rem;
}

.sources-section {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 0.75rem;
  margin-top: 4rem;
}

.sources-section h3 {
  margin-bottom: 1.5rem;
  color: #374151;
  font-size: 1.25rem;
}

.sources-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.source-item {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
}

.source-item strong {
  color: #1f2937;
}

.sources-note {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Content Section - Responsive Design */
@media (max-width: 768px) {
  .content-h1 {
    font-size: 2rem;
  }

  .content-block h2 {
    font-size: 1.5rem;
  }

  .lead-text {
    font-size: 1.125rem;
  }

  .stats-grid, .use-case-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  .step {
    flex-direction: column;
    gap: 1rem;
  }

  .trend-timeline {
    padding-left: 2rem;
  }

  .gs-step {
    flex-direction: column;
    align-items: flex-start;
  }
}
