@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@100..800&display=swap');

:root {
	--primary: #d75c72;
	--primary-soft: rgba(215, 92, 114, 0.07);
	--secondary: #a88dc5;
	--secondary-soft: rgba(168, 141, 197, 0.07);
	--tertiary: #5e8a82;
	--tertiary-soft: rgba(94, 138, 130, 0.07);

	--bg-body: #fcf9f8;
	--bg-panel: #ffffff;
	--bg-card: #fffefe;

	--text-primary: #2f2a28;
	--text-muted: #71615e;
	--text-header: #7a6c92;

	--border-soft: #ecebeb;
	--border-strong: #d2c8c1;
	--border-radius: 8px;

	--accent-blue: #6c91c2;
	--accent-gold: #b8b246;
	--accent-orange: #db6e3d;
	--accent-lavender: #c878d6;
	--accent-green: #69a48d;
	--accent-pink: var(--primary);

	--pulse-pink: linear-gradient(to right, var(--primary), transparent);
	--pulse-lavender: linear-gradient(to right, var(--secondary), transparent);

	--shadow-card: 0 2px 6px rgba(0, 0, 0, 0.04);

	/* Success/Error/Warning/Info colors */
	--color-success: #69a48d;
	--color-success-hover: #5a8e79;
	--color-error: #d75c72;
	--color-error-hover: #c24d60;
	--color-warning: #db6e3d;
	--color-warning-hover: #c65e34;
	--color-info: #6c91c2;
	--color-info-hover: #5a7ba8;
}

:root.dark {
	--primary: #e0637f;
	--primary-soft: rgba(242, 120, 145, 0.1);
	--secondary: #bfa9f1;
	--secondary-soft: rgba(191, 169, 241, 0.1);
	--tertiary: #88cfc1;
	--tertiary-soft: rgba(136, 207, 193, 0.1);

	--bg-body: #181618;
	--bg-panel: #1e1c1e;
	--bg-card: #232123;

	--text-primary: #f5f3f3;
	--text-muted: #b7abab;
	--text-header: #b6a5d0;

	--border-soft: #3a3537;
	--border-strong: #5c4f4a;

	--accent-blue: #7da4e3;
	--accent-gold: #e6d97c;
	--accent-orange: #f48b54;
	--accent-lavender: #d9a7f8;
	--accent-green: #85d6b8;
	--accent-pink: var(--primary);

	--pulse-pink: linear-gradient(to right, var(--primary), transparent);
	--pulse-lavender: linear-gradient(to right, var(--secondary), transparent);

	--shadow-card: 0 2px 6px rgba(0, 0, 0, 0.3);

	/* Success/Error/Warning/Info colors */
	--color-success: #85d6b8;
	--color-success-hover: #6fc5a5;
	--color-error: #e0637f;
	--color-error-hover: #d04d6a;
	--color-warning: #f48b54;
	--color-warning-hover: #e37640;
	--color-info: #7da4e3;
	--color-info-hover: #6790d5;
}

html,
body {
	position: relative;
	width: 100%;
	min-height: 100vh;
	height: 100%;
	transition: all 0.5s ease;
}

body {
	--parallax-x: 0px;
	--parallax-y: 0px;
	background: linear-gradient(to right, rgba(245, 240, 240, 0.8) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(245, 240, 240, 0.8) 1px, transparent 1px),
		var(--bg-body);
	background-size: 40px 40px;
	color: var(--text-primary);
	font-family: 'Satoshi', sans-serif;
	margin: 0;
	padding: 0;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 16px;
	line-height: 1.6;
	background-position: var(--parallax-x) var(--parallax-y);
	transition: background-position 0.2s ease;
}

body.dark {
	background: linear-gradient(to right, rgba(32, 30, 30, 0.6) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(32, 30, 30, 0.6) 1px, transparent 1px),
		var(--bg-body);
	background-size: 40px 40px;
	color: var(--text-primary);
	background-position: var(--parallax-x) var(--parallax-y);
}

header {
	width: 100%;
	background: var(--bg-card);
	box-sizing: border-box;
	border-bottom: 1px solid var(--primary-soft);
	padding: 1.2rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 500;
	color: var(--primary);
	backdrop-filter: blur(4px);
	position: sticky;
	top: 0;
	z-index: 100;
	height: 60px;
}

header::before {
	background-image: linear-gradient(to right,
			rgba(215, 92, 114, 0.1) 1px,
			transparent 1px);
	background-size: 4px 100%;
	animation: scroll-wave 20s linear infinite;
}


@keyframes scroll-wave {
	from {
		background-position: 0 0;
	}

	to {
		background-position: 100% 0;
	}
}

header .logo {
	color: var(--primary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 1rem;
}


.tags {
	display: flex;
	flex-flow: row wrap;
	gap: 0.3rem;
}


.tag {
	padding: 0.25rem 0.5rem;
	border-radius: 2px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	font-family: 'Source Code Pro', monospace;
	text-transform: uppercase;
	border: none;
	color: #fff;
	line-height: 1;
	opacity: 0.75;
	display: flex;
	align-items: center;
	max-height: 0.75rem;
}

.tag:hover {
	transform: skew(-3deg);
	border-color: transparent;
	cursor: pointer;
	opacity: 1;
	animation: pulse 0.3s ease-in-out;
}

aside .tag {
	font-size: 0.75rem;
	padding: 0.2rem 0.5rem;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}

	30% {
		transform: scale(1.05) rotate(-0.5deg);
	}

	60% {
		transform: scale(0.95) rotate(0.5deg);
	}

	100% {
		transform: scale(1);
	}
}

header .user span {
	font-size: 0.85rem;
	color: var(--text-muted);
}

a {
	color: var(--secondary);
	text-decoration: none;
	font-weight: 500;
}

a:hover {
	text-decoration: underline;
}

a:visited {
	color: var(--tertiary);
}

label.floating {
	position: absolute;
	top: 14px;
	left: 10px;
	font-size: 14px;
	color: var(--text-muted);
	background-color: transparent;
	transition: all 0.2s ease;
	pointer-events: none;
}

input,
button,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	box-sizing: border-box;
	border-radius: 2px;
	color: var(--text-primary);
}

div.input-block {
    position: relative;
    margin: 0px;
    padding: 0px;
}

/* Autofill override */
/* input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px transparent inset !important;
	-webkit-text-fill-color: inherit !important;
	background-color: transparent !important;
	transition: background-color 9999s ease-in-out 0s;
} */

input:not([type="checkbox"]):not([type="radio"]) {
	width: 100%;
	padding: 14px 10px 8px 10px;
	font-size: 14px;
	border: none;
	border-bottom: 2px solid transparent;
	border-image: linear-gradient(to right, #f48fb1, #b39ddb) 1;
	border-image-slice: 1;
	background-color: transparent;
	outline: none;
	box-sizing: border-box;
	border-radius: 2px;
}

input:focus+label,
input:not(:placeholder-shown)+label {
	top: -8px;
	left: 8px;
	font-size: 12px;
	padding: 0 4px;
	color: #b39ddb;
}

input::placeholder {
	color: transparent;
}

input:disabled {
	color: #ccc;
}

button {
	background: var(--tertiary);
	color: var(--text-muted);
	border: none;
	padding: 0.6rem 1.1rem;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: 'Source Code Pro', monospace;
	font-size: 0.75rem;
	transition: background 0.2s ease;
}

button:disabled {
	cursor: not-allowed;
}

button:hover {
	background: #efb0bd;
	animation: pulse 0.3s ease-in-out;
}

button>img {
	height: 80%;
}

button.primary {
	background: var(--primary);
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.03em;
	font-size: 1rem;
	transition: transform 0.15s ease, background 0.2s ease;
}

button.primary:hover {
	background: #e1677c;
}

button.primary:disabled {
	background: var(--primary-soft);
	color: #fff;
	cursor: not-allowed;
}

button.secondary {
	background-color: transparent;
	color: var(--secondary);
	border: 1px solid var(--secondary);
	padding: 0.4rem 1rem;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	transition: all 0.2s ease;
	border-radius: 4px;
}

button.secondary:hover {
	background-color: var(--secondary);
	color: #fff;
}

button.secondary.thick {
	border: 2px solid var(--secondary);
	font-weight: 600;
}

aside {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--border-radius);
	padding: 0.5rem 1.5rem;
	font-size: 0.85rem;
	color: var(--text-muted);
	box-shadow: var(--shadow-card);
	width: 250px;
	position: relative;
	z-index: 1;
}

aside::after {
	content: '';
	position: absolute;
	bottom: -35px;
	right: -35px;
	width: 230px;
	height: 230px;
	background-image: url('/images/flower.png');
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.5;
	pointer-events: none;
	z-index: 0;
}

h3 {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--text-header);
	letter-spacing: 0.14em;
	padding: 0.25rem 0.5rem 0.3rem 0.5rem;
	position: relative;
	border-bottom: 1px solid rgba(158, 139, 196, 0.35);
	border-radius: 0;
	background: none;
	text-shadow: 0 1px rgba(255, 255, 255, 0.05);
}

aside ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

aside li {
	padding: 0.3rem 0;
	color: var(--text-muted);
	transition: all 0.2s ease;
	font-weight: 500;
	position: relative;
	padding-left: 0.75rem;
	cursor: pointer;
	font-variant: all-small-caps;
	font-size: 1rem;
}

aside li.active {
	color: var(--accent-pink);
	font-weight: 500;
	background: rgba(215, 92, 114, 0.04);
	border-left: 3px solid var(--accent-pink);
	padding-left: 0.75rem;
	border-radius: 2px;
	font-style: italic;
	letter-spacing: 0.03em;
}

aside li:not(.active):hover {
	transform: translateX(2px);
	font-weight: 500;
	letter-spacing: 0.01em;
}

aside li:not(.active)::after {
	content: '';
	position: absolute;
	left: 0.75rem;
	bottom: 0;
	height: 2px;
	width: 0%;
	background: var(--secondary);
	transition: width 0.3s ease;
}

aside li:hover::after {
	width: 25%;
}


.editor {
	line-height: 1.7;
	padding-top: 0rem;
}

.editor h2 {
	color: var(--text-header);
	border-bottom: 1px solid var(--border-soft);
	padding-bottom: 0.25rem;
	margin: 1rem 0 0.5rem 0;
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	font-family: 'Satoshi', sans-serif;
}

blockquote {
	border-left: 3px solid var(--secondary);
	padding-left: 1rem;
	color: var(--text-muted);
	font-style: italic;
	margin: 1rem 0;
	background: var(--secondary-soft);
}

.editor p,
.editor ul,
.editor ol {
	margin: 0.75rem 0;
	color: var(--text-primary);
}

.editor ul li,
.editor ol li {
	margin: 0.25rem 0;
}

.editor a {
	color: var(--primary);
	text-decoration: underline;
	font-weight: 500;
}

.editor a:hover {
	text-decoration: none;
}

.editor img,
.editor video {
	max-width: 100%;
	height: auto;
	max-height: 400px;
	object-fit: contain;
	border-radius: 4px;
	margin: 0.5rem 0;
}

.editor table {
	width: 100%;
	margin: 1em 0;
	border-collapse: collapse;
	font-size: 14px;
	border: none;
}

.editor thead {
	border-bottom: 2px solid transparent;
	border-image: linear-gradient(to right, #f48fb1, #b39ddb) 1;
	border-image-slice: 1;
	position: relative;
}

.editor table tr:first-child {
	position: relative;
}

.editor table tr:first-child::after,
.editor table thead::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	height: 2px;
	width: 100%;
	background: linear-gradient(to right, #f48fb1, #b39ddb);
	pointer-events: none;
}

.card {
	--content: "ECHO-013";
	background: var(--bg-card);
	/* background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' fill='none' stroke='%23f7dce2' stroke-opacity='0.03'><path d='M0 200 Q100 100 200 200'/><circle cx='60' cy='80' r='2' fill='%23f7dce2' /><circle cx='120' cy='150' r='1.5' fill='%23f7dce2' /></svg>");
	background-repeat: repeat;
	background-size: 200px 200px; */
	border: 1px solid var(--border-soft);
	padding: 2rem;
	border-radius: var(--border-radius);
	position: relative;
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bg-card) 60%, transparent), 0 2px 6px rgba(0, 0, 0, 0.02); 
	transition: all 0.4s ease;
	position: relative;
	z-index: 1;
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card::before {
	content: var(--content);
	position: absolute;
	top: 1rem;
	right: 1rem;
	color: color-mix(in oklab, var(--text-primary) 10%, transparent);
	font-family: monospace;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	pointer-events: none;
}

/* .card::after {
	content: '';
	position: absolute;
	bottom: 10px;
	left: 10px;
	width: 120px;
	height: 120px;
	background-image: url('/images/mountains.png');
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.03;
	pointer-events: none;
	z-index: 0;
} */

div.list {
	display: flex;
	flex-flow: column nowrap;
	gap: 1rem;
	flex: 1;
}

div.list-header {
	display: flex;
	flex-flow: row nowrap;
	gap: 1.5rem;
	align-items: center;
	height: 35px;
}

div.list-header-menu {
	flex: 1;
	display: flex;
	flex-flow: row nowrap;
	position: relative;
	gap: 0rem;
}

div.list-header-menu > input {
	background: #fff;
	border: 1px solid var(--border-strong);
	border-radius: 4px;
	padding: 0.4rem 0.75rem;
	font-size: 0.85rem;
	transition: border-color 0.2s ease;
	font-family: 'Satoshi', sans-serif;
	color: var(--text-primary);
}

div.list-header-menu > input:focus {
	border-color: var(--primary);
	outline: none;
}

div.list-cards {
	display: flex;
	flex-flow: column nowrap;
	gap: 2rem;
}

button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.edit-quill {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 28px;
	height: 28px;
	background-image: url('/assets/feather-tech.svg');
	background-size: contain;
	background-repeat: no-repeat;
	cursor: pointer;
	opacity: 0.3;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.edit-quill:hover {
	transform: scale(1.08) rotate(-3deg);
	opacity: 0.7;
	filter: drop-shadow(0 2px 1px rgba(215, 92, 114, 0.3));
}

.card:hover {
	transform: translateY(-3px) scale(1.01);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
}


dialog {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--border-radius);
	padding: 2rem;
	box-shadow: var(--shadow-card);
	z-index: 1000;
	transition: all 1s;
}


dialog::backdrop {
	background: #000;
	opacity: 0.75;
	animation: fade-in 0.5s;
}

@keyframes fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 0.75;
	}
}