* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	/* Background colors */
	--bg-primary: #000000;
	--bg-secondary: #1a1a1a;
	--bg-tertiary: rgba(30, 5, 50, 0.67);
	--bg-content: #111111;
	--bg-hover: #2a2a2a;

	/* Text colors */
	--text-primary: #ffffff;
	--text-secondary: #cccccc;
	--text-muted: #999999;

	/* Accent colors */
	--accent-primary: #e3ec38;
	--accent-secondary: #9333ea;
	--accent-shadow: rgba(168, 85, 247, 0.3);
	--accent-shadow-light: rgba(168, 85, 247, 0.15);
	--accent-shadow-strong: rgba(168, 85, 247, 0.5);

	/* Status colors */
	--color-success: #10b981;
	--color-danger: #ef4444;
	--color-warning: #f59e0b;

	/* Border colors */
	--border-color: #f30000;
	--border-active: #e3ed2a;

	/* Dimensions */
	--header-height: 4rem;
	--sidebar-width: 16.5rem;
	--sidebar-collapsed-width: 4rem;

	/* Z-index */
	--z-header: 100;
	--z-sidebar: 90;
	--z-content: 1;

	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
	--shadow-accent: 0 0 20px var(--accent-shadow);
	--shadow-accent-hover: 0 0 40px var(--accent-shadow-strong);
	--shadow-accent-light: 0 0 15px rgba(168, 85, 247, 0.15);
}

html {font-size: 16px;}

body {
	font-family: 'Arial', sans-serif;
	background-color: var(--bg-primary);
	color: var(--text-primary);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* pasek u gory */
.header {
	height: var(--header-height);
	background-color: var(--bg-secondary);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	z-index: var(--z-header);
}

.header::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
	box-shadow: 0 0 10px var(--accent-shadow);
}

.header-menu, .header-info, .header-coin {
	display: flex;
	align-items: center;
}

.header-coin {gap: 1rem;}

.coin-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.coin-price-main {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-primary);
}

.coin-price-secondary {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.coin-change {
	font-size: 0.85rem;
	font-weight: 500;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	background-color: var(--bg-tertiary);
}

.coin-change.positive {
	color: var(--color-success);
	background-color: rgba(16, 185, 129, 0.1);
}

.coin-change.negative {
	color: var(--color-danger);
	background-color: rgba(239, 68, 68, 0.1);
}

.menu-button {
	width: 2.5rem;
	height: 2.5rem;
	background-color: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-right: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-sm);
}

.menu-button:hover {
	background-color: var(--bg-hover);
	border-color: var(--border-active);
	box-shadow: var(--shadow-accent);
	transform: translateY(-1px);
}

.menu-button.active {
	background-color: var(--bg-hover);
	border-color: var(--accent-primary);
	box-shadow: var(--shadow-accent-hover);
}

.menu-button span {
	display: block;
	width: 1.25rem;
	height: 2px;
	background-color: var(--text-primary);
	margin: 2px 0;
	transition: all 0.3s ease;
}

/* animacja zmiany przycisku z trzech paskow na znak X */
.menu-button.active span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
	height: 4px;
}

.menu-button.active span:nth-child(2) {
	opacity: 0;
}

.menu-button.active span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Menu boczne */
.sidebar {
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: 100%;
	height: calc(100vh - var(--header-height));
	background-color: var(--bg-secondary);
	z-index: var(--z-sidebar);
	transform: translateX(-100%);
	transition: all 550ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
	overflow-y: auto;
	overflow-x: hidden;
	border-right: 1px solid var(--border-color);
	box-shadow: var(--shadow-lg);
}

.sidebar-menu {padding-top: 3px}

.sidebar.visible { transform: translateX(0); }

.sidebar-item {
	position: relative;
	display: flex;
	align-items: center;
	padding: 10px 20px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-bottom: 1px solid var(--border-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-item img {
	width: 1.75rem;
	height: 1.75rem;
	margin-right: 15px;
	flex-shrink: 0;
	transition: all 0.3s ease;
	transform-origin: center;
}

.sidebar-item:hover {
	background-color: var(--bg-tertiary);
	transform: translateX(3px);
}

.sidebar-item:hover img {
	transform: rotate(15deg) scale(1.2);
	filter: drop-shadow(0 0 10px rgb(248, 219, 43));  /* żółty */
}

/* SHINE EFFECT */
.sidebar-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transition: left 0.6s ease;
	z-index: 1;
}

.sidebar-item:hover::before { left: 100%;}

.sidebar-item img, .sidebar-title {
	position: relative;
	z-index: 2;
	font-size: 1.1rem;
}

 /* wyswietlany czas aktualizacji Coina */
.timer-value {
	color: var(--accent-primary);
	font-weight: 600;
	font-size: 1.35rem;
	text-shadow: 0 1px 2px rgb(223, 14, 14);
}

/* Strona  */
.main-content {
	flex: 1;
	padding: 20px;
	margin-top: var(--header-height);
	z-index: var(--z-content);
}

/* Anchor section - Shadow Box style */
.anchor-section {margin-bottom: 15px;}

.anchor-header {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	padding: 20px;
	cursor: pointer;
	border-radius: 12px;
	transition: all 0.3s ease;
	position: relative;
	box-shadow: var(--shadow-sm);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* TODO dodac nowa animacje*/
.anchor-header:hover {
	transform: translateY(-2px);
	background: var(--bg-tertiary);
	box-shadow: var(--shadow-accent);
}

.anchor-header:hover img {
	transform: rotate(-5deg) scale(1.1);
}
.anchor-header:hover .anchor-title {
	font-size: 1.2em;
	transition: font-size 0.3s ease;
}
/* TODO to jest probna nowa animacja */

.anchor-header.active {
	background: var(--bg-tertiary);
	border-radius: 12px 12px 0 0;
	border-color: var(--border-active);
	box-shadow: var(--shadow-accent-hover);
}

.anchor-title-container {
	display: flex;
	align-items: center;
}

.anchor-title-container img {
	width: 1.5rem;
	height: 1.5rem;
	margin-right: 15px;
}

.anchor-title {
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--text-primary);
}

.triangle {
	transform: translateY(0) scale(1);
	transition: all 0.3s ease;
	font-size: 1.2rem;
	color: var(--accent-primary);
	user-select: none;
}

.anchor-header.active .triangle {
	transform: scale(1.1) rotate(180deg);
}

.anchor-content {
	opacity: 0;
	transform: translateY(-20px);
	max-height: 0;
	overflow: hidden;
	transition: all 0.4s ease;
	background: var(--bg-content);
	border: 1px solid var(--border-active);
	border-top: none;
	border-radius: 0 0 12px 12px;
}

.anchor-content.active {
	opacity: 1;
	transform: translateY(0);
	max-height: none;
	overflow: visible;
}

.anchor-content-inner {
	padding: 25px;
	color: var(--text-secondary);
	line-height: 1.6;
}

/* stopka */
.footer {
	color: var(--text-muted);
	padding: 0.5rem;
	border: 1px solid var(--border-color);
	border-radius: 0.8rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	font-size: 0.6rem;
	margin-top: 5rem;
	background-color: var(--bg-secondary);
	box-shadow: var(--shadow-sm);
}

/* FAQ and Rules */
.faq-item, .rule-item  {
	margin-bottom: 15px;
}

.faq-question, .rule-title {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	padding: 15px;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
	box-shadow: var(--shadow-sm);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 500;
}

.faq-question:hover, .rule-title:hover {
	transform: translateY(-2px);
	background: var(--bg-hover);
	box-shadow: var(--shadow-accent-light);
}

.faq-question.active, .rule-title.active {
	background: var(--bg-hover);
	border-radius: 8px 8px 0 0;
	border-color: var(--border-active);
	box-shadow: var(--shadow-accent);
}

.faq-toggle, .rule-toggle {
	transition: all 0.3s ease;
	color: var(--accent-primary);
	font-size: 1.1rem;
	margin-left: 10px;
}

.faq-answer, .rule-content {
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transition: all 0.4s ease;
	background: var(--bg-content);
	border: 1px solid var(--border-active);
	border-top: none;
	border-radius: 0 0 8px 8px;
	padding: 0 15px;
}

.faq-answer.active, .rule-content.active {
	opacity: 1;
	padding: 15px;
	max-height: none;
	overflow: visible;
}

@media (min-width: 768px) {
	html {
		font-size: 18px;
	}

	.sidebar {
		width: var(--sidebar-width);
		transform: translateX(0px);
	}

	.sidebar.collapsed {
		width: var(--sidebar-collapsed-width);
	}

	.sidebar.collapsed .sidebar-title {
		display: none;
	}

	.sidebar.collapsed .timer-item img {
		margin-right: 0;
	}

	.main-content {
		margin-left: var(--sidebar-width);
		transition: margin-left 0.4s ease;
		padding: 30px;
	}

	.main-content.expanded {
		margin-left: var(--sidebar-collapsed-width);
	}
}

@media (max-width: 768px) {
	.header-coin {
		flex-direction: row;
		align-items: center;
		gap: 0.5rem;
	}

	.header-info {
		display: none;
	}

	.coin-info {
		flex-direction: row;
		gap: 0.5rem;
		align-items: center;
	}

	.anchor-section {
		margin-bottom: 15px;
	}

	.anchor-header {
		padding: 15px;
	}

	.anchor-title {
		font-size: 1rem;
	}

	.triangle {
		font-size: 1.1rem;
	}

	.anchor-content-inner {padding: 15px;}

	.faq-question,
	.rule-title {
		padding: 12px;
		font-size: 0.9rem;
	}

	.faq-answer.active,
	.rule-content.active {
		padding: 12px;
	}
}