/* sites/looksfake.ai/theme.css
   Site-specific theme: LooksFake AI
   Theme: AI Detection (Purple/Pink/Cyan) - Futuristic and tech
*/

:root {
  /* Primary brand colors - AI Theme */
  --site-primary: #8b5cf6;       /* Purple - AI intelligence */
  --site-primary-dark: #7c3aed;  /* Darker purple */
  --site-primary-light: #f5f3ff; /* Very light purple background */
  --site-primary-lighter: #ede9fe; /* Light purple for cards */
  
  /* Secondary/Accent colors - Futuristic feel */
  --site-accent: #ec4899;        /* Pink accent - creative AI */
  --site-accent-dark: #db2777;   /* Darker pink */
  --site-accent-light: #fdf2f8;  /* Light pink background */
  
  /* Tech highlight colors */
  --site-tech: #06b6d4;          /* Cyan - technology */
  --site-tech-dark: #0891b2;     /* Darker cyan */
  --site-neon-blue: #3b82f6;     /* Electric blue accent */
  
  /* Status colors */
  --site-ai-detected: #ec4899;   /* Pink for AI detection */
  --site-human: #22c55e;         /* Green for human content */
  --site-uncertain: #f59e0b;     /* Amber for uncertain */
  
  /* Text colors - optimized for light mode with better contrast */
  --text-primary: #1e1b4b;       /* Indigo 900 - deep, readable */
  --text-secondary: #312e81;     /* Indigo 800 - better contrast than Purple 900 */
  --text-tertiary: #581c87;      /* Purple 800 darker - more accessible */
  --text-inverse: #ffffff;
  
  /* Backgrounds - light mode with purple tint */
  --bg-primary: #ffffff;
  --bg-secondary: #faf5ff;       /* Purple 50 - subtle purple tint */
  --bg-tertiary: #f5f3ff;        /* Purple 100 */
  --bg-dark: #1e1b4b;            /* Indigo 900 for footer */
  
  /* Dark mode design tokens (single source of truth) */
  --dm-text-primary: #f5f3ff;      /* Purple 50 */
  --dm-text-secondary: #e9d5ff;    /* Purple 200 */
  --dm-text-tertiary: #d8b4fe;     /* Purple 300 */
  --dm-text-inverse: #1e1b4b;
  
  --dm-bg-primary: #0f0a1e;        /* Very dark purple-black */
  --dm-bg-secondary: #1e1b4b;      /* Indigo 900 */
  --dm-bg-tertiary: #312e81;       /* Indigo 800 */
  --dm-bg-dark: #1f2937;           /* Gray 800 for footer */
  
  --dm-site-primary-light: #4c1d95; /* Darker for backgrounds */
  --dm-site-accent-light: #831843;  /* Darker pink for backgrounds */
  
  /* Legacy support */
  --primary: var(--site-primary);
  --accent: #8b5cf6;
  --accent-2: color-mix(in srgb, #8b5cf6 55%, #ec4899);
}

/* 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 - deep purple/indigo theme */
    --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 brand 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 brand 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: #1e1b4b;
  --text-secondary: #312e81;
  --text-tertiary: #581c87;
  --text-inverse: #ffffff;
  
  /* Backgrounds for light mode */
  --bg-primary: #ffffff;
  --bg-secondary: #faf5ff;
  --bg-tertiary: #f5f3ff;
  --bg-dark: #1e1b4b;
  
  /* Adjusted brand colors */
  --site-primary-light: #f5f3ff;
  --site-accent-light: #fdf2f8;
}

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

#header-container {
  min-height: var(--header-height);
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
}

/* Footer override for AI theme */
.footer {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f0a1e 100%);
}

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

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

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

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

/* Feature card as link (articles, resources) */
a.feature-card--ai {
  text-decoration: none;
  cursor: pointer;
}

.feature-card--ai:hover {
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
  transform: translateY(-2px);
}

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

.section--bg-secondary {
    background: var(--bg-secondary);
}

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

.editorial-section .features-section__container {
    max-width: 900px;
}

.editorial-section__text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.editorial-section__heading {
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    color: var(--site-primary);
}

.editorial-section__list {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 1.5rem 2rem;
}

.editorial-section__list li {
    margin-bottom: 0.75rem;
}

/* Explore section — resource cards grid */
.explore-section {
    padding: var(--space-fluid-xl, 3rem) var(--space-fluid-md, 1.5rem);
}

.explore-section .features-section__container {
    max-width: 900px;
}

.explore-section__intro {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.explore-card {
    text-decoration: none;
    display: block;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid #e9d5ff;
    transition: box-shadow 0.2s;
}

.explore-card:hover {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.explore-card__title {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.explore-card__description {
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

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

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

/* Dark mode for editorial and explore sections */
html.dark .editorial-section__text,
html.dark-mode .editorial-section__text,
html[data-theme="dark"] .editorial-section__text {
    color: var(--dm-text-secondary);
}

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

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

html.dark .explore-card,
html.dark-mode .explore-card,
html[data-theme="dark"] .explore-card {
    background: var(--dm-bg-secondary);
    border-color: var(--dm-site-primary-light);
}

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

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

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

/* Detection Tools Section */
.detection-tools-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.detection-tools-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.tools-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.12);
    border: 1px solid var(--site-primary-light);
}

.tools-card h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.875rem;
}

.tools-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.tools-intro {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Tab Navigation */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: #6b7280;
    font-size: 1rem;
}

.tab-btn:hover {
    background: var(--site-primary-light);
    color: var(--site-primary);
}

.tab-btn.active {
    background: var(--site-primary);
    color: white;
    border-color: var(--site-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Text Analyzer */
.text-analyzer textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
    margin-bottom: 1rem;
    resize: vertical;
}

.text-analyzer textarea:focus {
    outline: none;
    border-color: var(--site-primary);
}

.btn-analyze {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--site-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-analyze.is-loading,
.btn-load-url.is-loading {
    cursor: wait;
    opacity: 0.9;
    transform: none;
    box-shadow: none;
}

.btn-analyze:hover {
    background: var(--site-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.spinner-inline {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--site-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f5f3ff;
    border: 1px dashed var(--site-primary);
    border-radius: 10px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Analysis Result */
.analysis-result {
    margin-top: 2rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.analysis-result.hidden {
    display: none;
}

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

.result-icon {
    font-size: 3rem;
}

.result-verdict {
    font-size: 1.5rem;
    font-weight: 700;
}

.confidence-bar-container {
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.confidence-bar {
    height: 100%;
    transition: width 0.5s ease, background-color 0.5s;
    border-radius: 10px;
}

.confidence-label {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.indicators-section {
    margin-top: 1.5rem;
}

.indicators-section h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.indicators-list {
    list-style: none;
    padding: 0;
}

.indicators-list li {
    padding: 0.5rem 0;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.indicators-list li:last-child {
    border-bottom: none;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8fafc;
}

.upload-area:hover {
    border-color: var(--site-primary);
    background: var(--site-primary-light);
}

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

.upload-hint {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: #9ca3af;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e5e7eb;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.url-input-section {
    margin-bottom: 1.5rem;
}

.url-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.url-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.url-input-group input:focus {
    outline: none;
    border-color: var(--site-primary);
}

.btn-load-url {
    padding: 0.75rem 1.5rem;
    background: var(--site-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-load-url:hover {
    background: var(--site-primary-dark);
}

.image-preview,
.video-preview {
    margin: 1rem 0;
    position: relative;
}

.image-preview.hidden,
.video-preview.hidden {
    display: none;
}

.image-preview img,
.video-preview video {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-clear {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-clear:hover {
    background: #dc2626;
}

/* Info and Tips Sections */
.info-section,
.tips-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0fdf4;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.info-section h3,
.tips-section h3 {
    margin-bottom: 1rem;
    color: #065f46;
}

.info-section p,
.tips-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #374151;
}

.info-section ul,
.tips-section ul {
    list-style: none;
    padding: 0;
}

.info-section li,
.tips-section li {
    padding: 0.5rem 0;
    color: #374151;
    position: relative;
    padding-left: 1.5rem;
}

.info-section li::before,
.tips-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.disclaimer {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tools-card {
        padding: 1.5rem;
    }
    
    .tools-card h2 {
        font-size: 1.5rem;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .tools-card {
    padding: 1rem;
  }

  .tools-card h2 {
    font-size: 1.25rem;
  }

  .tab-btn {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
}

/* TV / Large screens (≥1920px) */
@media (min-width: 1920px) {
  .tools-card {
    padding: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  :root {
    --header-height: 80px;
  }
}

/* =============================================
   DARK MODE — Component Overrides
   ============================================= */

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

/* Tools card */
html.dark .tools-card,
html.dark-mode .tools-card,
html[data-theme="dark"] .tools-card {
    background: var(--dm-bg-secondary);
    border-color: var(--dm-site-primary-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Tools intro text */
html.dark .tools-intro,
html.dark-mode .tools-intro,
html[data-theme="dark"] .tools-intro {
    color: var(--dm-text-secondary);
}

/* Tabs border */
html.dark .tabs,
html.dark-mode .tabs,
html[data-theme="dark"] .tabs {
    border-bottom-color: var(--dm-bg-tertiary);
}

/* Tab buttons */
html.dark .tab-btn,
html.dark-mode .tab-btn,
html[data-theme="dark"] .tab-btn {
    color: var(--dm-text-secondary);
}

html.dark .tab-btn:hover,
html.dark-mode .tab-btn:hover,
html[data-theme="dark"] .tab-btn:hover {
    background: var(--dm-site-primary-light);
    color: var(--site-primary);
}

/* Text analyzer textarea */
html.dark .text-analyzer textarea,
html.dark-mode .text-analyzer textarea,
html[data-theme="dark"] .text-analyzer textarea {
    background: var(--dm-bg-primary);
    border-color: var(--dm-bg-tertiary);
    color: var(--dm-text-primary);
}

html.dark .text-analyzer textarea:focus,
html.dark-mode .text-analyzer textarea:focus,
html[data-theme="dark"] .text-analyzer textarea:focus {
    border-color: var(--site-primary);
}

/* Analysis result */
html.dark .analysis-result,
html.dark-mode .analysis-result,
html[data-theme="dark"] .analysis-result {
    background: var(--dm-bg-primary);
    border-color: var(--dm-bg-tertiary);
}

/* Confidence bar container */
html.dark .confidence-bar-container,
html.dark-mode .confidence-bar-container,
html[data-theme="dark"] .confidence-bar-container {
    background: var(--dm-bg-tertiary);
}

/* Indicators list */
html.dark .indicators-list li,
html.dark-mode .indicators-list li,
html[data-theme="dark"] .indicators-list li {
    color: var(--dm-text-primary);
    border-bottom-color: var(--dm-bg-tertiary);
}

/* Upload area */
html.dark .upload-area,
html.dark-mode .upload-area,
html[data-theme="dark"] .upload-area {
    border-color: var(--dm-bg-tertiary);
    background: var(--dm-bg-secondary);
}

html.dark .upload-area:hover,
html.dark-mode .upload-area:hover,
html[data-theme="dark"] .upload-area:hover {
    border-color: var(--site-primary);
    background: var(--dm-site-primary-light);
}

html.dark .upload-hint,
html.dark-mode .upload-hint,
html[data-theme="dark"] .upload-hint {
    color: var(--dm-text-tertiary);
}

/* URL input */
html.dark .url-input-group input,
html.dark-mode .url-input-group input,
html[data-theme="dark"] .url-input-group input {
    background: var(--dm-bg-primary);
    border-color: var(--dm-bg-tertiary);
    color: var(--dm-text-primary);
}

html.dark .url-input-group input:focus,
html.dark-mode .url-input-group input:focus,
html[data-theme="dark"] .url-input-group input:focus {
    border-color: var(--site-primary);
}

/* Divider */
html.dark .divider,
html.dark-mode .divider,
html[data-theme="dark"] .divider {
    color: var(--dm-text-tertiary);
}

html.dark .divider::before,
html.dark .divider::after,
html.dark-mode .divider::before,
html.dark-mode .divider::after,
html[data-theme="dark"] .divider::before,
html[data-theme="dark"] .divider::after {
    background: var(--dm-bg-tertiary);
}

/* Info & Tips sections */
html.dark .info-section,
html.dark .tips-section,
html.dark-mode .info-section,
html.dark-mode .tips-section,
html[data-theme="dark"] .info-section,
html[data-theme="dark"] .tips-section {
    background: var(--dm-bg-secondary);
    border-left-color: var(--site-primary);
}

html.dark .info-section h3,
html.dark .tips-section h3,
html.dark-mode .info-section h3,
html.dark-mode .tips-section h3,
html[data-theme="dark"] .info-section h3,
html[data-theme="dark"] .tips-section h3 {
    color: var(--dm-text-primary);
}

html.dark .info-section p,
html.dark .tips-section p,
html.dark .info-section li,
html.dark .tips-section li,
html.dark-mode .info-section p,
html.dark-mode .tips-section p,
html.dark-mode .info-section li,
html.dark-mode .tips-section li,
html[data-theme="dark"] .info-section p,
html[data-theme="dark"] .tips-section p,
html[data-theme="dark"] .info-section li,
html[data-theme="dark"] .tips-section li {
    color: var(--dm-text-primary);
}

/* Disclaimer */
html.dark .disclaimer,
html.dark-mode .disclaimer,
html[data-theme="dark"] .disclaimer {
    background: rgba(245, 158, 11, 0.15);
    border-left-color: #f59e0b;
    color: var(--dm-text-secondary);
}

/* Loading state */
html.dark .loading-state,
html.dark-mode .loading-state,
html[data-theme="dark"] .loading-state {
    background: var(--dm-site-primary-light);
    border-color: var(--site-primary);
    color: var(--dm-text-primary);
}

/* ============================================
   Sample Analysis Cards (homepage)
   ============================================ */
.sample-analysis-section {
    padding: var(--spacing-xl, 3rem) 0;
}

.sample-card {
    background: var(--bg-primary, #fff);
    border-radius: var(--radius-lg, 0.75rem);
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e7eb);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sample-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
}

.sample-card__header {
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.sample-card__header--ai {
    background: linear-gradient(135deg, var(--site-accent-light, #fdf2f8), #fce7f3);
    color: var(--site-ai-detected, #ec4899);
}

.sample-card__header--human {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: var(--site-human, #22c55e);
}

.sample-card__header--uncertain {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: var(--site-uncertain, #f59e0b);
}

.sample-card__badge {
    font-weight: 700;
}

.sample-card__score {
    font-size: 0.85rem;
    opacity: 0.8;
}

.sample-card__body {
    padding: 1.25rem;
}

.sample-card__text {
    font-style: italic;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sample-card__indicators {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sample-card__indicators li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sample-card__indicators li::before {
    content: "→";
    color: var(--site-primary);
    font-weight: bold;
}

/* Dark mode sample cards — OS preference */
@media (prefers-color-scheme: dark) {
    .sample-card {
        background: var(--dm-bg-secondary);
        border-color: var(--dm-bg-tertiary);
    }

    .sample-card__header--ai {
        background: linear-gradient(135deg, #4c1d45, #831843);
        color: #f9a8d4;
    }

    .sample-card__header--human {
        background: linear-gradient(135deg, #14532d, #166534);
        color: #bbf7d0;
    }

    .sample-card__header--uncertain {
        background: linear-gradient(135deg, #78350f, #92400e);
        color: #fde68a;
    }

    .sample-card__text {
        color: var(--dm-text-secondary);
    }

    .sample-card__indicators li {
        color: var(--dm-text-secondary);
    }
}

/* Dark mode sample cards — manual toggle */
html[data-theme="dark"] .sample-card,
html.dark .sample-card {
    background: var(--dm-bg-secondary);
    border-color: var(--dm-bg-tertiary);
}

html[data-theme="dark"] .sample-card__header--ai,
html.dark .sample-card__header--ai {
    background: linear-gradient(135deg, #4c1d45, #831843);
    color: #f9a8d4;
}

html[data-theme="dark"] .sample-card__header--human,
html.dark .sample-card__header--human {
    background: linear-gradient(135deg, #14532d, #166534);
    color: #bbf7d0;
}

html[data-theme="dark"] .sample-card__header--uncertain,
html.dark .sample-card__header--uncertain {
    background: linear-gradient(135deg, #78350f, #92400e);
    color: #fde68a;
}

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

html[data-theme="dark"] .sample-card__indicators li,
html.dark .sample-card__indicators li {
    color: var(--dm-text-secondary);
}

/* ============================================
   Content page styles (shared across subpages)
   ============================================ */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl, 3rem) var(--spacing-md, 1.5rem);
}

.content-page h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-page h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    border-bottom: 3px solid var(--site-primary);
    padding-bottom: 0.5rem;
}

.content-page h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    color: var(--site-primary);
}

.content-page p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-page ul,
.content-page ol {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-secondary);
}

.content-page li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

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

.content-page .intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--site-primary);
    border-radius: 0.5rem;
}

.content-page .content-box {
    background: var(--bg-secondary);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    border: 1px solid var(--site-primary-lighter, #e9d5ff);
}

.content-page .highlight-box {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--site-primary-lighter, #f3e8ff) 100%);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    border-left: 4px solid var(--site-primary);
}

.content-page .last-updated {
    font-size: 0.85rem;
    color: var(--text-tertiary, #6b7280);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

@media (max-width: 768px) {
    .content-page h1 { font-size: 1.75rem; }
    .content-page h2 { font-size: 1.5rem; }
}
