/* sites/fingerprint.tools/theme.css
   Site-specific theme: Fingerprint Tools
   Theme: Tech/Analysis (Cyan/Teal) - Technical and analytical
*/

/* Fixed header configuration */
:root {
  --header-height: 72px; /* Fixed header height token */
}

/* Override shared header to use fixed positioning */
.header-unified {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100;
}

/* Account for fixed header */
body {
  padding-top: var(--header-height); /* Height of fixed header */
}

:root {
  /* Primary brand colors - Tech Theme */
  --site-primary: #06b6d4;       /* Cyan - technology and analysis */
  --site-primary-dark: #0891b2;  /* Darker cyan */
  --site-primary-light: #ecfeff; /* Very light cyan background */
  --site-primary-lighter: #cffafe; /* Light cyan for cards */
  
  /* Secondary/Accent colors */
  --site-accent: #14b8a6;        /* Teal accent - professional tech */
  --site-accent-dark: #0d9488;   /* Darker teal */
  --site-accent-light: #f0fdfa;  /* Light teal background */
  
  /* Status/Risk colors */
  --site-safe: #22c55e;          /* Green for low risk */
  --site-warning: #f59e0b;       /* Amber for medium risk */
  --site-danger: #ef4444;        /* Red for high risk */
  
  /* Text colors - optimized for light mode */
  --text-primary: #0f172a;       /* Slate 900 - excellent contrast */
  --text-secondary: #475569;     /* Slate 600 - readable */
  --text-tertiary: #64748b;      /* Slate 500 - muted */
  --text-inverse: #ffffff;
  
  /* Backgrounds - light mode with cyan tint */
  --bg-primary: #ffffff;
  --bg-secondary: #f0fdfa;       /* Teal 50 - subtle cyan/teal tint */
  --bg-tertiary: #ccfbf1;        /* Teal 100 */
  --bg-dark: #0f172a;            /* Slate 900 for footer */
  
  /* Gradient colors for tech feel */
  --gradient-start: #06b6d4;
  --gradient-end: #14b8a6;
  
  /* Dark mode design tokens (single source of truth) */
  --dm-text-primary: #f1f5f9;      /* Slate 100 */
  --dm-text-secondary: #cbd5e1;    /* Slate 300 */
  --dm-text-tertiary: #94a3b8;     /* Slate 400 */
  --dm-text-inverse: #0f172a;
  
  --dm-bg-primary: #0f172a;        /* Slate 900 */
  --dm-bg-secondary: #1e293b;      /* Slate 800 */
  --dm-bg-tertiary: #334155;       /* Slate 700 */
  --dm-bg-dark: #1f2937;           /* Gray 800 for footer */
  
  --dm-site-primary-light: #164e63;  /* Darker for backgrounds */
  --dm-site-accent-light: #134e4a;   /* Darker teal for backgrounds */
  
  /* Legacy support */
  --primary: var(--site-primary);
  --accent: #06b6d4;
  --accent-2: color-mix(in srgb, #06b6d4 55%, #14b8a6);
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root {
    /* Text colors for dark mode */
    --text-primary: var(--dm-text-primary);
    --text-secondary: var(--dm-text-secondary);
    --text-tertiary: var(--dm-text-tertiary);
    --text-inverse: var(--dm-text-inverse);
    
    /* Backgrounds for dark mode */
    --bg-primary: var(--dm-bg-primary);
    --bg-secondary: var(--dm-bg-secondary);
    --bg-tertiary: var(--dm-bg-tertiary);
    --bg-dark: var(--dm-bg-dark);
    
    /* Adjusted tech colors for better visibility */
    --site-primary-light: var(--dm-site-primary-light);
    --site-accent-light: var(--dm-site-accent-light);
  }
}

html.dark,
html.dark-mode,
html[data-theme="dark"] {
  /* Text colors for dark mode */
  --text-primary: var(--dm-text-primary);
  --text-secondary: var(--dm-text-secondary);
  --text-tertiary: var(--dm-text-tertiary);
  --text-inverse: var(--dm-text-inverse);
  
  /* Backgrounds for dark mode */
  --bg-primary: var(--dm-bg-primary);
  --bg-secondary: var(--dm-bg-secondary);
  --bg-tertiary: var(--dm-bg-tertiary);
  --bg-dark: var(--dm-bg-dark);
  
  /* Adjusted colors */
  --site-primary-light: var(--dm-site-primary-light);
  --site-accent-light: var(--dm-site-accent-light);
}

html[data-theme="light"] {
  color-scheme: light;
  
  /* Text colors for light mode */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-inverse: #ffffff;
  
  /* Backgrounds for light mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f0fdfa;
  --bg-tertiary: #ccfbf1;
  --bg-dark: #0f172a;
  
  /* Adjusted colors */
  --site-primary-light: #ecfeff;
  --site-accent-light: #f0fdfa;
}

/* Footer override for tech theme */
.footer {
  background: linear-gradient(135deg, #164e63 0%, #0c2a35 100%);
}

html.dark .footer,
html.dark-mode .footer,
html[data-theme="dark"] .footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

/* Site branding */
.site-brand {
  --brand-color: var(--site-primary);
}

/* Hero section with tech theme */
.hero--tech,
.hero-standard[data-theme="tech"] {
  background: linear-gradient(135deg, var(--site-primary) 0%, var(--site-accent) 100%);
  color: var(--text-inverse);
}

/* Feature cards with tech theme accent */
.feature-card--tech {
  border-left: 4px solid var(--site-accent);
  transition: all 0.3s ease;
}

.feature-card--tech:hover {
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25);
  transform: translateY(-2px);
}

/* Fingerprint Results Section */
.results-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.fingerprint-results {
  background: var(--bg-primary);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.result-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--text-inverse);
  padding: 2rem;
  text-align: center;
}

.result-header h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fingerprint-hash {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

.risk-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.risk-low {
  background: #dcfce7;
  color: #166534;
}

.risk-medium {
  background: #fef3c7;
  color: #92400e;
}

.risk-high {
  background: #fee2e2;
  color: #991b1b;
}

.dark-mode .risk-low {
  background: #166534;
  color: #dcfce7;
}

.dark-mode .risk-medium {
  background: #92400e;
  color: #fef3c7;
}

.dark-mode .risk-high {
  background: #991b1b;
  color: #fee2e2;
}

.uniqueness-score {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .uniqueness-score {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.score-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-value {
  font-size: 4rem;
  font-weight: 700;
  color: var(--site-primary);
  margin-bottom: 1rem;
  line-height: 1;
}

.score-bar {
  width: 100%;
  max-width: 400px;
  height: 1.5rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0 auto 1rem;
  position: relative;
}

.dark-mode .score-bar {
  background: rgba(255, 255, 255, 0.1);
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  border-radius: 9999px;
  transition: width 1s ease-out;
  width: 0;
}

.score-description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.fingerprint-details {
  padding: 2rem;
}

.fingerprint-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.detail-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .detail-section {
  border-color: rgba(255, 255, 255, 0.1);
}

.detail-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .detail-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-right: 1rem;
}

.detail-value {
  font-weight: 400;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}

.protection-tips {
  padding: 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .protection-tips {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.protection-tips h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.protection-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.protection-tips li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
  color: var(--text-secondary);
}

.protection-tips li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--site-primary);
  font-weight: 700;
}

.protection-tips strong {
  color: var(--text-primary);
  font-weight: 600;
}

.export-section {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .export-section {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--site-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: var(--site-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
  .result-header h2 {
    font-size: 1.5rem;
  }
  
  .fingerprint-hash {
    font-size: 1rem;
  }
  
  .score-value {
    font-size: 3rem;
  }
  
  .detail-item {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .detail-value {
    text-align: left;
  }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .result-header h2 {
    font-size: 1.25rem;
  }

  .score-value {
    font-size: 2.5rem;
  }

  .fingerprint-hash {
    font-size: 0.875rem;
    word-break: break-all;
  }
}

/* TV / Large screens (≥1920px) */
@media (min-width: 1920px) {
  .result-header h2 {
    font-size: 2rem;
  }

  .score-value {
    font-size: 5rem;
  }

  .detail-item {
    padding: 1rem 1.5rem;
  }
}

/* Location Section Styles */
.location-section {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(20, 184, 166, 0.05));
  border-left: 4px solid var(--site-primary);
}

.location-disclaimer {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.location-region {
  font-weight: 600;
  color: var(--site-primary);
  font-size: 1.125rem;
}

.location-privacy-note {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--site-primary);
}

.location-unavailable {
  color: var(--text-secondary);
  font-style: italic;
}

.confidence-high {
  color: #10b981;
  font-weight: 600;
}

.confidence-medium {
  color: #f59e0b;
  font-weight: 600;
}

.confidence-low {
  color: #ef4444;
  font-weight: 600;
}

/* Dark mode adjustments for location section */
.dark-mode .location-section {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(20, 184, 166, 0.1));
}

.dark-mode .location-privacy-note {
  background: rgba(6, 182, 212, 0.15);
  color: var(--text-secondary);
}

/* =============================================
   CONTENT SECTIONS
   ============================================= */

/* Section layout utilities */
.section--padded {
    padding: var(--space-fluid-xl, 3rem) var(--space-fluid-md, 1.5rem);
}

/* Info section about variant */
.info-section--about {
    background: var(--bg-secondary);
    padding: var(--space-fluid-xl, 3rem) var(--space-fluid-md, 1.5rem);
}

/* FAQ Section */
.faq-section {
    padding: var(--space-fluid-xl, 3rem) var(--space-fluid-md, 1.5rem);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item__question {
    color: var(--site-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.faq-item__answer {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-item__answer a {
    color: var(--site-primary);
}

/* Trust Section */
.trust-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: var(--space-fluid-xl, 3rem) var(--space-fluid-md, 1.5rem);
}

.trust-section__container {
    max-width: 800px;
    margin: 0 auto;
}

.trust-section__intro {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.trust-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.trust-card {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    border-left: 4px solid var(--site-primary);
}

.trust-card__title {
    color: var(--site-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.trust-card__text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.trust-section__commitment {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.05);
    border-radius: 0.5rem;
}

.trust-section__commitment a {
    color: var(--site-primary);
}

/* Dark mode for FAQ section */
html.dark .faq-item,
html.dark-mode .faq-item,
html[data-theme="dark"] .faq-item {
    background: var(--dm-bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.dark .faq-item__question,
html.dark-mode .faq-item__question,
html[data-theme="dark"] .faq-item__question {
    color: var(--site-primary);
}

html.dark .faq-item__answer,
html.dark-mode .faq-item__answer,
html[data-theme="dark"] .faq-item__answer {
    color: var(--dm-text-secondary);
}

/* Dark mode for trust section */
html.dark .trust-section,
html.dark-mode .trust-section,
html[data-theme="dark"] .trust-section {
    background: linear-gradient(135deg, var(--dm-bg-primary) 0%, #0c2a35 100%);
}

html.dark .trust-card,
html.dark-mode .trust-card,
html[data-theme="dark"] .trust-card {
    background: var(--dm-bg-secondary);
}

html.dark .trust-card__title,
html.dark-mode .trust-card__title,
html[data-theme="dark"] .trust-card__title {
    color: var(--site-primary);
}

html.dark .trust-card__text,
html.dark-mode .trust-card__text,
html[data-theme="dark"] .trust-card__text {
    color: var(--dm-text-secondary);
}

html.dark .trust-section__intro,
html.dark-mode .trust-section__intro,
html[data-theme="dark"] .trust-section__intro {
    color: var(--dm-text-secondary);
}

html.dark .trust-section__commitment,
html.dark-mode .trust-section__commitment,
html[data-theme="dark"] .trust-section__commitment {
    background: rgba(6, 182, 212, 0.1);
    color: var(--dm-text-secondary);
}

/* Dark mode for info-section--about */
html.dark .info-section--about,
html.dark-mode .info-section--about,
html[data-theme="dark"] .info-section--about {
    background: var(--dm-bg-secondary);
}
