/*
Theme Name: Franglais
Theme URI: https://franglais.org
Author: Franglais.org
Author URI: https://franglais.org
Description: A whimsical, hand-drawn theme celebrating the playful blend of French and English languages. Features roughly painted textures, watercolor effects, and animated SVG illustrations of Big Ben and the Eiffel Tower connected by a bridge of words.
Version: 2.2.0
Tested up to: 6.9
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: franglais
Tags: custom-colors, custom-logo, custom-menu, featured-images, translation-ready, blog, entertainment, education

Franglais WordPress Theme, (C) 2024 Franglais.org
Franglais is distributed under the terms of the GNU GPL.
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
	/* Primary Blues - French Tricolore & Union Jack inspired */
	--fr-blue-dark: #1a365d;
	--fr-blue-medium: #2c5282;
	--fr-blue-light: #ebf8ff;
	--fr-blue-accent: #3182ce;

	/* Reds */
	--fr-red-primary: #c53030;
	--fr-red-light: #fed7d7;
	--fr-red-dark: #9b2c2c;

	/* Whites/Creams */
	--fr-white: #ffffff;
	--fr-cream: #fffaf0;
	--fr-paper: #faf5eb;

	/* Supporting Colors */
	--fr-ink: #1a202c;
	--fr-pencil: #4a5568;
	--fr-sketch: #e2e8f0;
	--fr-charcoal: #2d3748;

	/* Semantic Colors */
	--fr-success: #38a169;
	--fr-warning: #d69e2e;
	--fr-error: #e53e3e;
	--fr-info: var(--fr-blue-medium);

	/* Status Colors */
	--fr-status-unverified: var(--fr-pencil);
	--fr-status-verified: var(--fr-blue-medium);
	--fr-status-classic: var(--fr-red-primary);

	/* Typography */
	--fr-font-display: 'Caveat', cursive;
	--fr-font-heading: 'Patrick Hand', cursive;
	--fr-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--fr-font-accent: 'Libre Baskerville', Georgia, serif;
	--fr-font-mono: 'Courier New', monospace;

	/* Font Sizes (fluid typography) — base 20px, minimum 18px throughout */
	--fr-text-xs: clamp(1.125rem, 1.075rem + 0.25vw, 1.1875rem);
	--fr-text-sm: clamp(1.1875rem, 1.125rem + 0.3125vw, 1.3125rem);
	--fr-text-base: clamp(1.25rem, 1.175rem + 0.375vw, 1.375rem);
	--fr-text-lg: clamp(1.375rem, 1.275rem + 0.5vw, 1.5rem);
	--fr-text-xl: clamp(1.5rem, 1.375rem + 0.625vw, 1.75rem);
	--fr-text-2xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
	--fr-text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
	--fr-text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
	--fr-text-5xl: clamp(3rem, 2.25rem + 3.75vw, 4rem);

	/* Line Heights */
	--fr-leading-none: 1;
	--fr-leading-tight: 1.25;
	--fr-leading-snug: 1.375;
	--fr-leading-normal: 1.5;
	--fr-leading-relaxed: 1.625;
	--fr-leading-loose: 2;

	/* Spacing */
	--fr-space-1: 0.25rem;
	--fr-space-2: 0.5rem;
	--fr-space-3: 0.75rem;
	--fr-space-4: 1rem;
	--fr-space-5: 1.25rem;
	--fr-space-6: 1.5rem;
	--fr-space-8: 2rem;
	--fr-space-10: 2.5rem;
	--fr-space-12: 3rem;
	--fr-space-16: 4rem;
	--fr-space-20: 5rem;
	--fr-space-24: 6rem;

	/* Container Widths */
	--fr-container-sm: 640px;
	--fr-container-md: 768px;
	--fr-container-lg: 1024px;
	--fr-container-xl: 1280px;
	--fr-container-2xl: 1440px;

	/* Border Radius */
	--fr-radius-sm: 4px;
	--fr-radius-md: 8px;
	--fr-radius-lg: 12px;
	--fr-radius-xl: 16px;
	--fr-radius-full: 9999px;

	/* Shadows */
	--fr-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--fr-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--fr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--fr-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--fr-shadow-paper: 2px 3px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
	--fr-shadow-lifted: 4px 6px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);

	/* Transitions */
	--fr-transition-fast: 150ms ease;
	--fr-transition-base: 250ms ease;
	--fr-transition-slow: 350ms ease;
	--fr-transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

	/* Z-Index Scale */
	--fr-z-dropdown: 100;
	--fr-z-sticky: 200;
	--fr-z-fixed: 300;
	--fr-z-modal-backdrop: 400;
	--fr-z-modal: 500;
	--fr-z-popover: 600;
	--fr-z-tooltip: 700;
}

/* ==========================================================================
   Dark Mode Variables
   Comprehensive dark theme with proper contrast ratios (WCAG 2.2 AA)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
	:root {
		/* Dark backgrounds */
		--fr-cream: #0f172a;
		--fr-paper: #1e293b;
		--fr-white: #1e293b;

		/* Light text colors for contrast */
		--fr-ink: #f1f5f9;
		--fr-pencil: #94a3b8;
		--fr-charcoal: #cbd5e1;
		--fr-sketch: #334155;

		/* Adjusted blues for dark mode */
		--fr-blue-dark: #60a5fa;
		--fr-blue-medium: #3b82f6;
		--fr-blue-light: #1e3a5f;
		--fr-blue-accent: #60a5fa;

		/* Adjusted reds for dark mode */
		--fr-red-primary: #f87171;
		--fr-red-light: #3b2020;
		--fr-red-dark: #fca5a5;

		/* Adjusted semantic colors */
		--fr-success: #4ade80;
		--fr-warning: #fbbf24;
		--fr-error: #f87171;

		/* Adjusted shadows for dark mode */
		--fr-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
		--fr-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
		--fr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
		--fr-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
		--fr-shadow-paper: 2px 3px 8px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
		--fr-shadow-lifted: 4px 6px 16px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
	}
}

/* Override dark mode when light mode is explicitly set */
[data-theme="light"] {
	--fr-blue-light: #ebf8ff;
	--fr-cream: #fffaf0;
	--fr-paper: #faf5eb;
	--fr-ink: #1a202c;
	--fr-pencil: #4a5568;
	--fr-sketch: #e2e8f0;
	--fr-charcoal: #2d3748;
	--fr-white: #ffffff;
	--fr-blue-dark: #1a365d;
	--fr-blue-medium: #2c5282;
	--fr-red-primary: #c53030;
	--fr-red-light: #fed7d7;
	--fr-red-dark: #9b2c2c;
}

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	min-height: 100vh;
	font-family: var(--fr-font-body);
	font-size: var(--fr-text-base);
	line-height: var(--fr-leading-normal);
	color: var(--fr-ink);
	background-color: var(--fr-cream);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

a {
	color: var(--fr-blue-medium);
	text-decoration: none;
	transition: color var(--fr-transition-fast);
}

a:hover,
a:focus {
	color: var(--fr-red-primary);
}

a:focus-visible {
	outline: 2px solid var(--fr-blue-accent);
	outline-offset: 2px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--fr-font-heading);
	font-weight: 400;
	line-height: var(--fr-leading-tight);
	color: var(--fr-blue-dark);
}

h1 {
	font-family: var(--fr-font-display);
	font-size: var(--fr-text-5xl);
}

h2 {
	font-size: var(--fr-text-4xl);
}

h3 {
	font-size: var(--fr-text-3xl);
}

h4 {
	font-size: var(--fr-text-2xl);
}

h5 {
	font-size: var(--fr-text-xl);
}

h6 {
	font-size: var(--fr-text-lg);
}

.fr-display {
	font-family: var(--fr-font-display);
}

.fr-handwritten {
	font-family: var(--fr-font-heading);
}

.fr-serif {
	font-family: var(--fr-font-accent);
}

blockquote {
	font-family: var(--fr-font-accent);
	font-style: italic;
	font-size: var(--fr-text-lg);
	color: var(--fr-charcoal);
	padding-left: var(--fr-space-6);
	border-left: 4px solid var(--fr-red-primary);
	margin: var(--fr-space-6) 0;
}

hr {
	border: none;
	border-top: 2px dashed var(--fr-sketch);
	margin: var(--fr-space-8) 0;
	background: transparent;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.fr-container {
	width: 100%;
	max-width: var(--fr-container-xl);
	margin-inline: auto;
	padding-inline: var(--fr-space-4);
}

@media (min-width: 768px) {
	.fr-container {
		padding-inline: var(--fr-space-6);
	}
}

@media (min-width: 1024px) {
	.fr-container {
		padding-inline: var(--fr-space-8);
	}
}

.fr-container--narrow {
	max-width: var(--fr-container-md);
}

.fr-container--wide {
	max-width: var(--fr-container-2xl);
}

.fr-section {
	padding-block: var(--fr-space-12);
}

@media (min-width: 768px) {
	.fr-section {
		padding-block: var(--fr-space-16);
	}
}

@media (min-width: 1024px) {
	.fr-section {
		padding-block: var(--fr-space-20);
	}
}

/* ==========================================================================
   Grid System
   ========================================================================== */

.fr-grid {
	display: grid;
	gap: var(--fr-space-6);
	align-items: start;
}

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

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

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

@media (min-width: 640px) {
	.fr-grid--2,
	.fr-grid--3,
	.fr-grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.fr-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

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

/* ==========================================================================
   Screen Reader Only
   ========================================================================== */

.screen-reader-text,
.sr-only {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.sr-only:focus {
	background-color: var(--fr-white);
	clip: auto !important;
	clip-path: none;
	color: var(--fr-ink);
	display: block;
	font-size: var(--fr-text-base);
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: var(--fr-z-tooltip);
}

/* Skip Link */
.fr-skip-link {
	position: absolute;
	top: -100px;
	left: var(--fr-space-4);
	z-index: var(--fr-z-tooltip);
	padding: var(--fr-space-3) var(--fr-space-4);
	background: var(--fr-blue-dark);
	color: var(--fr-white);
	font-weight: 600;
	border-radius: var(--fr-radius-md);
	transition: top var(--fr-transition-fast);
}

.fr-skip-link:focus {
	top: var(--fr-space-4);
	outline: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.fr-text-center {
	text-align: center;
}

.fr-text-left {
	text-align: left;
}

.fr-text-right {
	text-align: right;
}

.fr-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Dark Mode Component Overrides
   Additional styles needed beyond CSS variable swaps
   ========================================================================== */
@media (prefers-color-scheme: dark) {

	/* Body background */
	body {
		background-color: #0f172a;
	}

	/* Header */
	.fr-header {
		background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
		border-bottom-color: #334155;
	}

	.fr-header__site-title a {
		color: #60a5fa;
	}

	.fr-header__site-title a:hover {
		color: #f87171;
	}

	.fr-header__menu-toggle {
		border-color: #475569;
		background: #1e293b;
	}

	.fr-header__menu-toggle:hover,
	.fr-header__menu-toggle:focus {
		background: #334155;
		border-color: #60a5fa;
	}

	.fr-header__menu-toggle-icon span {
		background: #94a3b8;
	}

	/* Navigation */
	.fr-navigation__menu a {
		color: #e2e8f0;
	}

	.fr-navigation__menu a:hover,
	.fr-navigation__menu a:focus {
		color: #f87171;
	}

	.fr-navigation__menu a::after {
		background: #f87171;
	}

	/* Hero Section */
	.fr-hero {
		background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%);
	}

	.fr-hero__title {
		color: #f1f5f9;
		text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
	}

	.fr-hero__subtitle {
		color: #cbd5e1;
	}

	.fr-hero__hint {
		color: #94a3b8;
	}

	/* Search Form */
	.fr-search-form__input {
		background: #1e293b;
		border-color: #475569;
		color: #f1f5f9;
	}

	.fr-search-form__input:focus {
		border-color: #60a5fa;
		box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
	}

	.fr-search-form__input::placeholder {
		color: #64748b;
	}

	.fr-search-form__submit {
		background: #3b82f6;
	}

	.fr-search-form__submit:hover,
	.fr-search-form__submit:focus {
		background: #60a5fa;
	}

	/* Cards */
	.fr-card {
		background: #1e293b;
	}

	.fr-card::before {
		border-color: #475569;
	}

	.fr-card:hover::before {
		border-color: #60a5fa;
	}

	.fr-card__title {
		color: #f1f5f9;
	}

	.fr-card:hover .fr-card__title {
		color: #f87171;
	}

	.fr-card__origin {
		color: #94a3b8;
	}

	.fr-card__origin-value {
		color: #cbd5e1;
	}

	.fr-card__excerpt {
		color: #cbd5e1;
	}

	.fr-card__footer {
		border-top-color: #475569;
	}

	.fr-card__score-value {
		color: #60a5fa;
	}

	.fr-card__score-label {
		color: #94a3b8;
	}

	/* Badges */
	.fr-badge--status {
		background: #475569;
		color: #f1f5f9;
	}

	.fr-badge--unverified {
		background: #475569;
		color: #f1f5f9;
	}

	.fr-badge--verified {
		background: #3b82f6;
		color: #ffffff;
	}

	.fr-badge--classic {
		background: #f87171;
		color: #ffffff;
	}

	.fr-badge--category {
		background: #1e3a5f;
		color: #93c5fd;
		border-color: #3b82f6;
	}

	.fr-badge--region {
		background: #3b2020;
		color: #fca5a5;
		border-color: #f87171;
	}

	/* Buttons */
	.fr-button--primary {
		background: #3b82f6;
		border-color: #3b82f6;
		color: #ffffff;
	}

	.fr-button--primary:hover,
	.fr-button--primary:focus {
		background: #60a5fa;
		border-color: #60a5fa;
	}

	.fr-button--secondary {
		background: #1e293b;
		color: #93c5fd;
		border-color: #3b82f6;
	}

	.fr-button--secondary:hover,
	.fr-button--secondary:focus {
		background: #1e3a5f;
	}

	.fr-button--accent {
		background: #ef4444;
		border-color: #ef4444;
		color: #ffffff;
	}

	.fr-button--accent:hover,
	.fr-button--accent:focus {
		background: #f87171;
		border-color: #f87171;
	}

	/* Section Titles */
	.fr-section__title {
		color: #f1f5f9;
	}

	.fr-section__subtitle {
		color: #94a3b8;
	}

	/* Watercolor section background */
	.fr-section--watercolor {
		background: linear-gradient(135deg,
			rgba(59, 130, 246, 0.1) 0%,
			transparent 50%,
			rgba(248, 113, 113, 0.1) 100%
		),
		#0f172a;
	}

	/* Categories Grid */
	.fr-category-card {
		background: #1e293b;
		border-color: #475569;
	}

	.fr-category-card:hover {
		border-color: #60a5fa;
	}

	.fr-category-card__icon {
		background: #1e3a5f;
		color: #93c5fd;
	}

	.fr-category-card__title {
		color: #f1f5f9;
	}

	.fr-category-card__count {
		color: #94a3b8;
	}

	/* Classic Cards */
	.fr-classic-card {
		background: #1e293b;
		border-left-color: #f87171;
	}

	.fr-classic-card__badge {
		color: #f87171;
	}

	.fr-classic-card__title a {
		color: #f1f5f9;
	}

	.fr-classic-card__title a:hover {
		color: #f87171;
	}

	.fr-classic-card__origin {
		color: #94a3b8;
	}

	.fr-classic-card__excerpt {
		color: #cbd5e1;
	}

	/* CTA Card */
	.fr-cta-card {
		background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
		border: 1px solid #334155;
	}

	.fr-cta-card__title {
		color: #f1f5f9;
	}

	.fr-cta-card__text {
		color: #cbd5e1;
	}

	/* Word Page Styles */
	.fr-word__header {
		border-bottom-color: #475569;
	}

	.fr-word__title {
		color: #f1f5f9;
	}

	.fr-word__pronunciation {
		background: #1e3a5f;
		color: #93c5fd;
	}

	.fr-word__section-title {
		color: #f1f5f9;
	}

	.fr-word__content {
		color: #cbd5e1;
	}

	.fr-word__example-quote {
		background: #1e293b;
		border-left-color: #f87171;
	}

	.fr-word__example-quote p {
		color: #cbd5e1;
	}

	/* Origin Journey */
	.fr-origin-journey {
		background: #1e293b;
	}

	.fr-origin-journey__word {
		color: #cbd5e1;
	}

	.fr-origin-journey__word--current {
		color: #60a5fa;
	}

	.fr-origin-journey__arrow .fr-icon {
		color: #64748b;
	}

	/* Sidebar */
	.fr-word__sidebar-title {
		color: #f1f5f9;
	}

	.fr-word__related-item {
		border-bottom-color: #475569;
	}

	.fr-word__related-link {
		color: #93c5fd;
	}

	.fr-word__related-link:hover {
		color: #f87171;
	}

	.fr-word__score {
		background: #1e3a5f;
	}

	.fr-word__score-value {
		color: #60a5fa;
	}

	.fr-word__score-label {
		color: #94a3b8;
	}

	.fr-word__footer {
		border-top-color: #475569;
	}

	.fr-word__back-link {
		color: #93c5fd;
	}

	.fr-word__back-link:hover {
		color: #60a5fa;
	}

	/* Archive Page */
	.fr-archive__title {
		color: #f1f5f9;
	}

	.fr-archive__description {
		color: #94a3b8;
	}

	/* Alphabet Navigation */
	.fr-alphabet-nav__link {
		background: #1e293b;
		border-color: #475569;
		color: #f1f5f9;
	}

	.fr-alphabet-nav__link:hover {
		background: #1e3a5f;
		border-color: #60a5fa;
	}

	.fr-alphabet-nav__link--disabled {
		color: #475569;
	}

	.fr-alphabet-nav__link--disabled:hover {
		background: #1e293b;
		border-color: #475569;
	}

	.fr-alphabet-nav__item--current .fr-alphabet-nav__link {
		background: #3b82f6;
		border-color: #3b82f6;
		color: #ffffff;
	}

	/* Filter Bar */
	.fr-filter-bar {
		background: #1e293b;
	}

	.fr-filter-bar__label {
		color: #cbd5e1;
	}

	.fr-filter-bar__link,
	.fr-filter-bar__btn {
		background: #0f172a;
		border-color: #475569;
		color: #e2e8f0;
	}

	.fr-filter-bar__link:hover,
	.fr-filter-bar__btn:hover {
		background: #1e3a5f;
		border-color: #60a5fa;
	}

	.fr-filter-bar__link--active,
	.fr-filter-bar__btn--active {
		background: #3b82f6;
		border-color: #3b82f6;
		color: #ffffff;
	}

	/* Pagination */
	.fr-pagination a,
	.fr-pagination span {
		background: #1e293b;
		border-color: #475569;
		color: #f1f5f9;
	}

	.fr-pagination a:hover {
		background: #1e3a5f;
		border-color: #60a5fa;
	}

	.fr-pagination .current {
		background: #3b82f6;
		border-color: #3b82f6;
		color: #ffffff;
	}

	/* Breadcrumbs */
	.fr-breadcrumbs__item::after {
		color: #475569;
	}

	.fr-breadcrumbs__link {
		color: #93c5fd;
	}

	.fr-breadcrumbs__link:hover {
		color: #60a5fa;
	}

	.fr-breadcrumbs__item--current {
		color: #94a3b8;
	}

	/* Empty State */
	.fr-empty-state__icon {
		background: #1e3a5f;
		color: #93c5fd;
	}

	.fr-empty-state__title {
		color: #f1f5f9;
	}

	.fr-empty-state__text {
		color: #94a3b8;
	}

	/* 404 Page */
	.fr-404__title {
		color: #f1f5f9;
	}

	.fr-404__code {
		color: #f87171;
	}

	.fr-404__subtitle {
		color: #cbd5e1;
	}

	.fr-404__text {
		color: #94a3b8;
	}

	.fr-404__suggestions {
		background: #1e293b;
	}

	.fr-404__suggestions-title {
		color: #f1f5f9;
	}

	.fr-404__suggestion-link {
		background: #0f172a;
		border-color: #475569;
		color: #93c5fd;
	}

	.fr-404__suggestion-link:hover {
		background: #1e3a5f;
		border-color: #60a5fa;
		color: #60a5fa;
	}

	/* Footer */
	.fr-footer {
		background: #0f172a;
	}

	.fr-footer__main {
		background: linear-gradient(180deg, #15243d, #0f172a);
	}

	.fr-footer__wave-container {
		background: linear-gradient(to bottom, #0f172a 0%, transparent 60%);
	}

	/* Footer waves - darker water */
	.fr-wave--back path {
		fill: #1e3a5f;
	}

	.fr-wave--mid path {
		fill: #1e293b;
	}

	.fr-wave--front path {
		fill: #0f172a;
	}

	/* Share Buttons */
	.fr-share {
		background: linear-gradient(180deg, #1e3a5f 0%, transparent 100%);
	}

	.fr-share__label {
		color: #f1f5f9;
	}

	.fr-share__link {
		background: #1e293b;
		border-color: #475569;
		color: #cbd5e1;
	}

	/* Submission Form */
	.fr-submission__details {
		background: #1e293b;
		border-color: #475569;
	}

	.fr-submission__summary {
		background: linear-gradient(90deg, #1e3a5f 0%, #1e293b 100%);
	}

	.fr-submission__details[open] .fr-submission__summary {
		background: #1e3a5f;
	}

	.fr-submission__summary:hover {
		background: #1e3a5f;
	}

	.fr-submission__title {
		color: #f1f5f9;
	}

	.fr-submission__content {
		background: #0f172a;
	}

	.fr-submission__intro {
		background: #1e293b;
		color: #cbd5e1;
		border-left-color: #f87171;
	}

	/* Form Styles */
	.fr-form__label {
		color: #e2e8f0;
	}

	.fr-form__input,
	.fr-form__select,
	.fr-form__textarea {
		background: #1e293b;
		border-color: #475569;
		color: #f1f5f9;
	}

	.fr-form__input:focus,
	.fr-form__select:focus,
	.fr-form__textarea:focus {
		border-color: #60a5fa;
		box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
	}

	.fr-form__input::placeholder {
		color: #64748b;
	}

	.fr-form__input[readonly] {
		background: #0f172a;
		color: #94a3b8;
	}

	.fr-form__select {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	}

	.fr-form__help {
		color: #94a3b8;
	}

	.fr-form__file::file-selector-button {
		background: #3b82f6;
		color: #ffffff;
	}

	.fr-form__file::file-selector-button:hover {
		background: #60a5fa;
	}

	/* Autocomplete */
	.fr-autocomplete {
		background: #1e293b;
		border-color: #475569;
	}

	.fr-autocomplete__item:hover,
	.fr-autocomplete__item[aria-selected="true"] {
		background: #1e3a5f;
	}

	/* Sightings */
	.fr-sighting-item {
		background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	}

	.fr-sighting-item::before {
		border-color: transparent #1e3a5f transparent transparent;
	}

	.fr-sighting-item::after {
		background: linear-gradient(135deg, transparent 50%, #0f172a 50%);
	}

	.fr-sighting-item__header {
		border-bottom-color: #475569;
	}

	.fr-sighting-item__context {
		background: #3b82f6;
		color: #ffffff;
	}

	.fr-sighting-item__date {
		color: #94a3b8;
	}

	.fr-sighting-item__region {
		background: #3b2020;
		color: #fca5a5;
	}

	.fr-sighting-item__example {
		background: #0f172a;
		color: #cbd5e1;
	}

	.fr-sighting-item__example::before {
		color: #f87171;
	}

	.fr-sighting-item__source {
		color: #94a3b8;
	}

	.fr-sighting-item__source a {
		color: #93c5fd;
		border-bottom-color: #93c5fd;
	}

	.fr-sighting-item__source a:hover {
		color: #60a5fa;
	}

	.fr-sightings__more {
		color: #94a3b8;
	}

	/* Voting Section */
	.fr-vote {
		background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	}

	.fr-vote__question {
		color: #e2e8f0;
	}

	.fr-vote__btn {
		background: #0f172a;
		border-color: #475569;
		color: #e2e8f0;
	}

	.fr-vote__btn:hover {
		box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
	}

	.fr-vote__btn--up:hover {
		background: #1e3a5f;
		border-color: #60a5fa;
		color: #93c5fd;
	}

	.fr-vote__btn--down:hover {
		background: #3b2020;
		border-color: #f87171;
		color: #fca5a5;
	}

	.fr-vote__btn--active.fr-vote__btn--up {
		background: #3b82f6;
		border-color: #3b82f6;
		color: #ffffff;
	}

	.fr-vote__btn--active.fr-vote__btn--down {
		background: #ef4444;
		border-color: #ef4444;
		color: #ffffff;
	}

	.fr-vote__count {
		background: rgba(255, 255, 255, 0.1);
	}

	.fr-vote__btn--active .fr-vote__count {
		background: rgba(255, 255, 255, 0.25);
	}

	/* Featured card corner */
	.fr-card--featured::after {
		background: linear-gradient(135deg, transparent 50%, #f87171 50%);
	}

	/* Headings in dark mode */
	h1, h2, h3, h4, h5, h6 {
		color: #f1f5f9;
	}

	/* Links */
	a {
		color: #93c5fd;
	}

	a:hover,
	a:focus {
		color: #60a5fa;
	}
}
