@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
	/* Default theme: dark */
	--c-accent: #007BFF;
	--c-accent-dark: #0056b3;
	--c-highlight: #FFC107;
	--c-highlight-dark: #d39e00;

	--c-bg-primary: #121828;
	--c-bg-secondary: #1B2335;
	--c-bg-tertiary: #2A3550;
	
	--c-text-primary: #F0F4F8;
	--c-text-secondary: #A0AEC0;
	--c-border: #3A4767;

	--c-twitch: #9146FF;
	--c-youtube: #FF0000;
	--c-instagram: #E4405F;
	--c-donate: #10b981;
	--c-discord: #5865F2;
}

body[data-theme="dark"] {
	--c-accent: #007BFF;
	--c-accent-dark: #0056b3;
	--c-highlight: #FFC107;
	--c-highlight-dark: #d39e00;
	--c-bg-primary: #121828;
	--c-bg-secondary: #1B2335;
	--c-bg-tertiary: #2A3550;
	--c-text-primary: #F0F4F8;
	--c-text-secondary: #A0AEC0;
	--c-border: #3A4767;
}

body[data-theme="light"] {
	--c-accent: #007BFF;
	--c-accent-dark: #0056b3;
	--c-highlight: #E91E63;
	--c-highlight-dark: #c2185b;
	--c-bg-primary: #f0f4f8;
	--c-bg-secondary: #ffffff;
	--c-bg-tertiary: #e2e8f0;
	--c-text-primary: #1a202c;
	--c-text-secondary: #4a5568;
	--c-border: #cbd5e0;
}

body[data-theme="pink"] {
	--c-accent: #ff69b4;
	--c-accent-dark: #e05a9e;
	--c-highlight: #9370db;
	--c-highlight-dark: #7a5fb3;
	--c-bg-primary: #fff0f5;
	--c-bg-secondary: #ffffff;
	--c-bg-tertiary: #fae1ec;
	--c-text-primary: #333333;
	--c-text-secondary: #777777;
	--c-border: #f2d4e4;
}

body[data-theme="glitch"] {
	--c-accent: #00f7ff;
	--c-accent-dark: #00d4db;
	--c-highlight: #f500ff;
	--c-highlight-dark: #d100db;
	--c-bg-primary: #0d0d0d;
	--c-bg-secondary: #1a1a1a;
	--c-bg-tertiary: #2a2a2a;
	--c-text-primary: #e6e6e6;
	--c-text-secondary: #808080;
	--c-border: #333333;
}

body[data-theme="sunset"] {
	--c-accent: #ff8c69; /* Coral */
	--c-accent-dark: #e87a5b;
	--c-highlight: #f2c94c; /* Saffron */
	--c-highlight-dark: #d1ad41;
	--c-bg-primary: #2c2138; /* Dark Purple */
	--c-bg-secondary: #4a3754; /* Lighter Purple */
	--c-bg-tertiary: #61496d;
	--c-text-primary: #f2f2f2;
	--c-text-secondary: #b0a5b8;
	--c-border: #7a638a;
}

body[data-theme="forest"] {
	--c-accent: #93c47d; /* Soft Green */
	--c-accent-dark: #7fab6a;
	--c-highlight: #f4a261; /* Sandy Brown */
	--c-highlight-dark: #d98e51;
	--c-bg-primary: #222d22; /* Dark Forest Green */
	--c-bg-secondary: #384a38; /* Lighter Forest Green */
	--c-bg-tertiary: #4a5e4a;
	--c-text-primary: #e8e8e3;
	--c-text-secondary: #a9b3a9;
	--c-border: #5b715b;
}

body[data-theme="ocean"] {
	--c-accent: #62b6cb; /* Light Blue */
	--c-accent-dark: #55a0b2;
	--c-highlight: #f0f4f8; /* Off-white, like seafoam */
	--c-highlight-dark: #d5dadd;
	--c-bg-primary: #102a43; /* Deep Blue */
	--c-bg-secondary: #243b53; /* Lighter Deep Blue */
	--c-bg-tertiary: #334e68;
	--c-text-primary: #f0f4f8;
	--c-text-secondary: #bcccdc;
	--c-border: #486581;
}

body[data-theme="cyberpunk"] {
    --c-accent: #ff00ff;
    --c-accent-dark: #cc00cc;
    --c-highlight: #00ffff;
    --c-highlight-dark: #00cccc;
    --c-bg-primary: #0a0a0a;
    --c-bg-secondary: #141414;
    --c-bg-tertiary: #212121;
    --c-text-primary: #f0f0f0;
    --c-text-secondary: #888888;
    --c-border: #333333;
}

body[data-theme="vintage"] {
    --c-accent: #8d6e63;
    --c-accent-dark: #795548;
    --c-highlight: #a1887f;
    --c-highlight-dark: #8d6e63;
    --c-bg-primary: #f4f1ea;
    --c-bg-secondary: #e8e2d6;
    --c-bg-tertiary: #d7ccc8;
    --c-text-primary: #5b4636;
    --c-text-secondary: #795548;
    --c-border: #bcaaa4;
}

body[data-theme="golden"] {
    --c-accent: #ffd700;
    --c-accent-dark: #e6c200;
    --c-highlight: #ffec80;
    --c-highlight-dark: #ffd700;
    --c-bg-primary: #121212;
    --c-bg-secondary: #222222;
    --c-bg-tertiary: #333333;
    --c-text-primary: #f5f5f5;
    --c-text-secondary: #aaaaaa;
    --c-border: #444444;
}

body[data-theme="glitch"] h1, 
body[data-theme="glitch"] .stream-info h3,
body[data-theme="glitch"] #countdown {
    animation: glitch-effect 0.15s infinite;
}

body[data-theme="glitch"] h1,
body[data-theme="glitch"] .subtitle,
body[data-theme="glitch"] .month-name,
body[data-theme="glitch"] .stream-info h3,
body[data-theme="glitch"] .stream-info p,
body[data-theme="glitch"] #countdown div,
body[data-theme="glitch"] .live-status,
body[data-theme="glitch"] .stream-title {
    position: relative;
    animation: glitch-text 2.5s infinite steps(1);
}

body[data-theme="glitch"] h1::before, body[data-theme="glitch"] h1::after,
body[data-theme="glitch"] .subtitle::before, body[data-theme="glitch"] .subtitle::after,
body[data-theme="glitch"] .month-name::before, body[data-theme="glitch"] .month-name::after,
body[data-theme="glitch"] .stream-info h3::before, body[data-theme="glitch"] .stream-info h3::after,
body[data-theme="glitch"] .stream-info p::before, body[data-theme="glitch"] .stream-info p::after,
body[data-theme="glitch"] #countdown div::before, body[data-theme="glitch"] #countdown div::after,
body[data-theme="glitch"] .live-status::before, body[data-theme="glitch"] .live-status::after,
body[data-theme="glitch"] .stream-title::before, body[data-theme="glitch"] .stream-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-bg-primary);
    overflow: hidden;
}

body[data-theme="glitch"] h1,
body[data-theme="glitch"] .subtitle { content: 'Olivier VK';}
/* More specific data-text content would require JS, but this creates the visual effect. */


body[data-theme="glitch"] h1::before, 
body[data-theme="glitch"] .subtitle::before,
body[data-theme="glitch"] .month-name::before,
body[data-theme="glitch"] .stream-info h3::before,
body[data-theme="glitch"] .stream-info p::before,
body[data-theme="glitch"] #countdown div::before,
body[data-theme="glitch"] .live-status::before,
body[data-theme="glitch"] .stream-title::before {
    left: 2px;
    text-shadow: -2px 0 var(--c-highlight);
    animation: glitch-pseudo 1.5s infinite linear alternate-reverse;
}

body[data-theme="glitch"] h1::after,
body[data-theme="glitch"] .subtitle::after,
body[data-theme="glitch"] .month-name::after,
body[data-theme="glitch"] .stream-info h3::after,
body[data-theme="glitch"] .stream-info p::after,
body[data-theme="glitch"] #countdown div::after,
body[data-theme="glitch"] .live-status::after,
body[data-theme="glitch"] .stream-title::after {
    left: -2px;
    text-shadow: -2px 0 var(--c-accent), 2px 2px var(--c-highlight);
    animation: glitch-pseudo 2s infinite linear alternate-reverse;
}

body[data-theme="glitch"] .glitch-text {
    position: relative;
}

body[data-theme="glitch"] .glitch-text::before,
body[data-theme="glitch"] .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--c-bg-primary); /* Match the container background */
}

body[data-theme="glitch"] .glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--c-highlight);
    animation: glitch-anim-1 2s infinite linear alternate-reverse steps(8);
}

body[data-theme="glitch"] .glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--c-accent), 2px 2px var(--c-highlight);
    animation: glitch-anim-2 1.5s infinite linear alternate-reverse steps(8);
}

@keyframes glitch-effect {
    0% {
        text-shadow: 0.5px 0 0 var(--c-highlight), -0.5px 0 0 var(--c-accent);
    }
    100% {
        text-shadow: -0.5px 0 0 var(--c-highlight), 0.5px 0 0 var(--c-accent);
    }
}

@keyframes glitch-text {
    0% { transform: translate(0); }
    10% { transform: translate(-2px, 2px); }
    20% { transform: translate(2px, -2px); }
    30% { transform: translate(0); }
    40% { clip-path: inset(80% 0 10% 0); }
    50% { clip-path: inset(10% 0 80% 0); }
    60% { clip-path: inset(40% 0 40% 0); }
    70% { clip-path: none; }
    80% { transform: skewX(10deg); }
    90% { transform: skewX(-10deg); }
    100% { transform: translate(0); }
}

@keyframes glitch-pseudo {
    0% { clip-path: inset(62% 0 32% 0); }
    25% { clip-path: inset(12% 0 85% 0); }
    50% { clip-path: inset(87% 0 1% 0); }
    75% { clip-path: inset(34% 0 54% 0); }
    100% { clip-path: inset(78% 0 12% 0); }
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(89% 0 1% 0); }
    25% { clip-path: inset(34% 0 33% 0); }
    50% { clip-path: inset(61% 0 3% 0); }
    75% { clip-path: inset(18% 0 78% 0); }
    100% { clip-path: inset(45% 0 45% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(9% 0 85% 0); }
    25% { clip-path: inset(72% 0 1% 0); }
    50% { clip-path: inset(8% 0 2% 0); }
    75% { clip-path: inset(34% 0 59% 0); }
    100% { clip-path: inset(93% 0 5% 0); }
}

body {
	position: relative;
	font-family: "Inter", sans-serif;
	line-height: 1.5;
	min-height: 100vh;
	background-color: var(--c-bg-primary);
	color: var(--c-text-primary);
	margin: 0;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, color 0.3s ease, font-family 0.3s ease;
}

.live-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: var(--c-bg-secondary);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    margin-bottom: 2rem;
    width: 100%;
}

.live-banner.visible {
    display: flex;
}

.live-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-indicator {
    width: 12px;
    height: 12px;
    background-color: var(--c-youtube);
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

.live-status {
    margin: 0;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--c-youtube);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stream-title {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--c-text-primary);
}

.live-links {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}

.live-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: 1px solid transparent;
}

.live-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.live-btn.youtube {
    background-color: var(--c-youtube);
}

.live-btn.twitch {
    background-color: var(--c-twitch);
}

.container {
	width: 100%;
	max-width: 800px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
	position: relative;
}

.header div {
	flex-grow: 1;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.font-dropdown {
    display: none; /* Replaced by modal */
}

.font-selector {
    display: none;
}

.theme-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--c-bg-tertiary);
	color: var(--c-text-secondary);
	border-radius: 8px;
	width: 2.5rem;
	height: 2.5rem;
	transition: all 0.2s ease;
}

.theme-btn:hover {
	background-color: var(--c-accent);
	color: white;
}

.header h1 {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--c-text-primary);
}

.subtitle {
	margin: 0;
	font-size: 1rem;
	color: var(--c-text-secondary);
	font-weight: 500;
}

.main-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.main-content {
		grid-template-columns: 1fr 240px;
		gap: 2rem;
	}
	.actions-column {
		order: 2;
	}
	.calendar-column {
		order: 1;
	}
}

.actions-column {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.stream-info {
	text-align: center;
	padding: 1rem;
	background-color: var(--c-bg-secondary);
	border-radius: 12px;
	border: 1px solid var(--c-border);
	transition: all 0.3s ease;
	min-height: 125px;
}

.stream-info h3 {
	margin: 0 0 0.25rem 0;
	color: var(--c-highlight);
	font-size: 1.1rem;
	font-weight: 700;
	transition: color 0.3s ease;
}

.stream-info p {
	margin: 0;
	color: var(--c-text-secondary);
	font-weight: 500;
	font-size: 0.9rem;
	transition: color 0.3s ease;
}

#countdown-container {
	margin-top: 1rem;
	text-align: center;
}

#countdown-container h4 {
	margin: 0 0 0.5rem 0;
	font-size: 0.8rem;
	color: var(--c-text-secondary);
	font-weight: 500;
	text-transform: uppercase;
}

#countdown {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--c-text-primary);
    white-space: nowrap;
}

.hidden {
	display: none;
}

.leaderboard {
	padding: 1rem;
	background-color: var(--c-bg-secondary);
	border-radius: 12px;
	border: 1px solid var(--c-border);
}

.leaderboard h3 {
	margin: 0 0 1rem 0;
	color: var(--c-highlight);
	font-size: 1.1rem;
	font-weight: 700;
	text-align: center;
}

#leaderboard-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.leaderboard-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem;
	border-radius: 8px;
	background-color: var(--c-bg-tertiary);
}

.leaderboard-item img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

.leaderboard-item .username {
	font-weight: 600;
	color: var(--c-text-primary);
	flex-grow: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.leaderboard-item .amount {
	font-weight: 700;
	color: var(--c-highlight);
}

.social-buttons {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.social-btn {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.2s ease;
	background-color: var(--c-bg-secondary);
	color: var(--c-text-primary);
	border: 1px solid var(--c-border);
}

.social-btn:hover {
	transform: translateY(-2px);
	border-color: var(--c-accent);
	color: var(--c-accent);
	box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.social-btn .icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	transition: color 0.2s ease;
	text-align: center;
	font-size: 1.2em;
}

.social-btn.twitch:hover .icon { color: var(--c-twitch); }
.social-btn.youtube:hover .icon, .social-btn.youtube-live:hover .icon { color: var(--c-youtube); }
.social-btn.instagram:hover .icon { color: var(--c-instagram); }
.social-btn.donate:hover .icon { color: var(--c-donate); }
.social-btn.discord:hover .icon { color: var(--c-discord); }

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
  }
  70% {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(255, 0, 0, 1);
  }
  100% {
    transform: scale(0.95);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
  }
}

button {
	font: inherit;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
}

button:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.datepicker {
	width: 100%;
	background: var(--c-bg-secondary);
	border-radius: 12px;
	padding: 1.25rem;
	border: 1px solid var(--c-border);
}

.datepicker-top {
	margin-bottom: 1.25rem;
}

.month-selector {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--c-bg-tertiary);
	border-radius: 8px;
	width: 2.5rem;
	height: 2.5rem;
	transition: all 0.2s ease;
	color: var(--c-text-primary);
}

.arrow:hover {
	background-color: var(--c-accent);
	color: white;
}

.month-name {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--c-text-primary);
}

.datepicker-calendar {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.25rem;
}

.day {
	color: var(--c-text-secondary);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 0.5rem;
}

.date {
	border: 0;
	padding: 0;
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-weight: 600;
	border: 2px solid transparent;
	background-color: transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	color: var(--c-text-primary);
	font-size: 0.9rem;
}

.date:focus-visible {
	outline-offset: 0;
	border-color: var(--c-accent);
}

.date.selected-day {
	border-color: var(--c-highlight);
	background-color: color-mix(in srgb, var(--c-highlight) 20%, transparent);
}

.date:hover:not(.faded) {
	background-color: var(--c-bg-tertiary);
}

.faded {
	color: var(--c-text-secondary);
	opacity: 0.5;
	cursor: default;
}

.current-day {
	background-color: var(--c-accent);
	color: white;
	font-weight: 700;
}

.current-day:hover {
	background-color: var(--c-accent-dark);
}

.stream-day {
	background-color: transparent;
	border: 2px solid var(--c-highlight);
	color: var(--c-highlight);
	font-weight: 700;
}

.stream-day:hover {
	background-color: color-mix(in srgb, var(--c-highlight) 20%, transparent);
	color: var(--c-highlight);
}

.stream-day .stream-indicator {
	display: none; /* Replaced by border highlight */
}

.stream-day.current-day {
	background: var(--c-accent);
	border-color: var(--c-highlight);
	color: white;
}
.stream-day.current-day .stream-indicator {
	display: none;
}

/* Music Player Styles */
#music-player {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--c-bg-secondary);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--c-border);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

#music-player:hover {
    transform: scale(1.03);
}

.album-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.song-info {
    display: flex;
    flex-direction: column;
}

.song-title {
    margin: 0;
    font-weight: 600;
    color: var(--c-text-primary);
    font-size: 0.9rem;
}

.song-artist {
    margin: 0;
    font-size: 0.8rem;
    color: var(--c-text-secondary);
}

#mute-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--c-bg-tertiary);
    color: var(--c-text-primary);
    transition: all 0.2s ease;
}

#mute-toggle-btn:hover {
    background-color: var(--c-accent);
    color: white;
}

/* Theme Modal Styles */
.theme-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.theme-modal.hidden {
    display: none;
}

.theme-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.theme-modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--c-bg-secondary) 0%, var(--c-bg-tertiary) 100%);
    border: 2px solid var(--c-border);
    border-radius: 16px;
    padding: 2.5rem;
    z-index: 2001;
    width: 100%;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.theme-modal-content h2 {
    margin: 0 0 1rem 0;
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--c-text-primary), var(--c-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--c-text-secondary);
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.close-btn:hover {
    background-color: var(--c-accent);
    color: white;
    transform: scale(1.1);
}

.theme-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    scrollbar-width: thin;
    scrollbar-color: var(--c-accent) var(--c-bg-primary);
}

.theme-options:focus-visible {
    outline: none;
}

.theme-options::-webkit-scrollbar {
    width: 6px;
}

.theme-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.theme-options::-webkit-scrollbar-thumb {
    background: var(--c-accent);
    border-radius: 10px;
}
.theme-options::-webkit-scrollbar-thumb:hover {
    background: var(--c-accent-dark);
}

.theme-option {
    cursor: pointer;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--c-bg-tertiary) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    border: 2px solid var(--c-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    position: relative;
}

.theme-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.theme-option:hover::before {
    left: 100%;
}

.theme-option:hover {
    transform: translateY(-2px);
    border-color: var(--c-accent);
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.theme-option.active {
    border-color: var(--c-accent);
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

.theme-lock-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.lock-icon {
    font-size: 1rem;
    vertical-align: middle;
    margin-left: 0.5rem;
    color: var(--c-text-secondary);
    opacity: 0.7;
}

.theme-palette {
    display: flex;
    gap: 2px;
    width: 70px;
    height: 35px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--c-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-palette-locked {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 35px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--c-bg-primary), var(--c-bg-secondary));
    color: var(--c-text-secondary);
    flex-shrink: 0;
    border: 2px solid var(--c-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-palette span {
    width: 33.33%;
    height: 100%;
    background-color: var(--color);
}

.theme-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--c-text-primary);
    flex-grow: 1;
}

.theme-option:hover .theme-name,
.theme-option.active .theme-name {
    color: white;
}

.info-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
    z-index: 100;
}

.info-icon {
    font-size: 1.2rem;
    color: var(--c-text-secondary);
    cursor: help;
    transition: all 0.3s ease;
    padding: 0.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 101;
}

.info-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background: var(--c-bg-tertiary);
    color: var(--c-text-primary);
    text-align: center;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    position: fixed;
    z-index: 10000;
    bottom: auto;
    top: auto;
    left: auto;
    right: auto;
    transform: translateX(-50%) translateY(-100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--c-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
}

.info-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--c-accent) transparent transparent transparent;
}

.info-icon-container:hover .info-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(calc(-100% - 10px));
}

.font-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.font-options-grid::-webkit-scrollbar {
    width: 6px;
}
.font-options-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.font-options-grid::-webkit-scrollbar-thumb {
    background: var(--c-accent);
    border-radius: 10px;
}
.font-options-grid::-webkit-scrollbar-thumb:hover {
    background: var(--c-accent-dark);
}

.font-option-card {
    cursor: pointer;
    padding: 1.25rem 1rem;
    background: var(--c-bg-tertiary);
    border-radius: 12px;
    border: 2px solid var(--c-border);
    transition: all 0.2s ease;
    text-align: center;
}

.font-option-card:hover {
    transform: translateY(-3px);
    border-color: var(--c-accent);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
}

.font-option-card.active {
    border-color: var(--c-accent);
    background: var(--c-accent);
}

.font-option-card .font-preview {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--c-text-primary);
}

.font-option-card .font-name {
    font-size: 0.9rem;
    color: var(--c-text-secondary);
}

.font-option-card.active .font-preview,
.font-option-card.active .font-name {
    color: white;
}

.changelog-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
    margin-top: 1.5rem;
}

.changelog-content::-webkit-scrollbar {
    width: 6px;
}
.changelog-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.changelog-content::-webkit-scrollbar-thumb {
    background: var(--c-accent);
    border-radius: 10px;
}

.changelog-version:not(:last-child) {
    margin-bottom: 2rem;
}

#changelog-modal h3 {
    text-align: left;
    margin: 0 0 1rem 0;
    color: var(--c-text-secondary);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 0.5rem;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.changelog-list li {
    font-size: 1.1rem;
    color: var(--c-text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--c-bg-tertiary);
    padding: 1rem;
    border-radius: 10px;
}

.changelog-list i {
    color: var(--c-accent);
    font-size: 1.5rem;
}

.theme-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--c-bg-primary);
    color: var(--c-text-secondary);
    border: 1px solid var(--c-border);
    transition: all 0.2s ease;
}

.theme-option:hover .theme-tag,
.theme-option.active .theme-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.theme-tag.remaining-time-tag {
    background: linear-gradient(135deg, var(--c-bg-primary), var(--c-bg-secondary));
    color: var(--c-text-secondary);
    min-width: 60px;
    text-align: center;
    font-family: "Inter", monospace;
    font-size: 0.8rem;
    font-weight: 600;
}

.theme-tag.default {
    background-color: var(--c-accent);
    color: white;
    border-color: var(--c-accent);
}

.theme-tag.pink {
    background-color: #ff69b4;
    color: white;
    border-color: #ff69b4;
}

.theme-tag.glitch {
    background-color: var(--c-highlight);
    color: white;
    border-color: var(--c-highlight);
}

.theme-tag.sunset {
    background-color: #ff8c69;
    color: #2c2138;
    border-color: #ff8c69;
}

.theme-tag.forest {
    background-color: #93c47d;
    color: #222d22;
    border-color: #93c47d;
}

.theme-tag.ocean {
    background-color: #62b6cb;
    color: #102a43;
    border-color: #62b6cb;
}

.theme-tag.cyberpunk {
    background-color: #ff00ff;
    color: white;
    border-color: #ff00ff;
}
.theme-tag.vintage {
    background-color: #8d6e63;
    color: #f4f1ea;
    border-color: #8d6e63;
}
.theme-tag.golden {
    background-color: #ffd700;
    color: #121212;
    border-color: #ffd700;
}

.theme-tag.bad {
    background-color: var(--c-highlight);
    color: var(--c-bg-primary);
    border-color: var(--c-highlight);
}

.site-footer {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--c-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.version-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-text-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.version-btn:hover {
    color: var(--c-accent);
    background-color: var(--c-bg-tertiary);
}

.site-footer a {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 600;
}
.site-footer a:hover {
    text-decoration: underline;
}