/* ITX Cryptocurrencies Section - Redesign */
/* Orange color scheme inspired by modern design */

:root {
	--itx-crypto-orange: #F7A600;
	--itx-crypto-orange-hover: #E69500;
	--itx-crypto-text-dark: #1e293b;
	--itx-crypto-text-muted: #64748b;
	--itx-crypto-bg-light: #ffffff;
	--itx-crypto-border: #e2e8f0;
	--itx-crypto-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	--itx-crypto-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.itx-cryptocurrencies-section {
	background: var(--itx-crypto-bg-light);
	padding: 40px 20px;
	margin: 40px 0;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header */
.itx-cryptocurrencies-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--itx-crypto-border);
}

.itx-cryptocurrencies-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--itx-crypto-text-dark);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Navigation Wrapper */
.itx-cryptocurrencies-nav-wrapper {
	display: flex;
	align-items: center;
	gap: 15px;
}

/* Navigation Buttons */
.itx-cryptocurrencies-nav {
	display: flex;
	gap: 10px;
}

.itx-cryptocurrencies-all-link {
	background: var(--itx-crypto-orange);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(247, 166, 0, 0.2);
}

.itx-cryptocurrencies-all-link:hover {
	background: var(--itx-crypto-orange-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(247, 166, 0, 0.3);
	color: #ffffff;
}

.itx-crypto-nav-btn {
	background: var(--itx-crypto-orange);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	min-width: 120px;
}

.itx-crypto-nav-btn:hover {
	background: var(--itx-crypto-orange-hover);
	transform: translateY(-2px);
	box-shadow: var(--itx-crypto-shadow);
}

.itx-crypto-nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Content Container */
.itx-cryptocurrencies-content {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

/* Left Column: Articles List */
.itx-cryptocurrencies-list-col {
	flex: 1;
	min-width: 300px;
}

.itx-cryptocurrencies-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.itx-cryptocurrencies-list-item {
	position: relative;
	padding: 20px 0 20px 40px;
	border-bottom: 1px solid var(--itx-crypto-border);
	transition: background-color 0.3s ease;
}

.itx-cryptocurrencies-list-item:last-child {
	border-bottom: none;
}

.itx-cryptocurrencies-list-item:hover {
	background: #f8f9fa;
}

/* Orange vertical line - всегда на месте, резервируем пространство */
.itx-cryptocurrencies-list-line {
	position: absolute;
	left: 0;
	top: 20px;
	bottom: 20px;
	width: 4px;
	background: transparent;
	border-radius: 2px;
	transition: background-color 0.3s ease;
}

.itx-cryptocurrencies-list-item:hover .itx-cryptocurrencies-list-line {
	background: var(--itx-crypto-orange);
}

.itx-cryptocurrencies-list-link {
	display: block;
	text-decoration: none;
	color: var(--itx-crypto-text-dark);
	transition: opacity 0.3s ease;
}

.itx-cryptocurrencies-list-item:hover .itx-cryptocurrencies-list-link {
	opacity: 0.8;
}

.itx-cryptocurrencies-list-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.itx-cryptocurrencies-list-title-wrapper {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.itx-cryptocurrencies-list-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	flex: 1;
}

.itx-cryptocurrencies-list-arrow {
	color: var(--itx-crypto-orange);
	font-size: 18px;
	font-weight: 700;
	flex-shrink: 0;
	line-height: 1.2;
	margin-top: 2px;
}

.itx-cryptocurrencies-list-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--itx-crypto-text-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	position: relative;
	max-height: calc(1.6em * 2);
}

.itx-cryptocurrencies-list-excerpt::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 50%;
	height: 1.6em;
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 1) 100%);
	pointer-events: none;
}

.itx-cryptocurrencies-list-item:hover .itx-cryptocurrencies-list-excerpt::after {
	background: linear-gradient(to right, rgba(248, 249, 250, 0) 0%, rgba(248, 249, 250, 0.7) 50%, rgba(248, 249, 250, 1) 100%);
}

.itx-cryptocurrencies-list-date {
	font-size: 12px;
	color: var(--itx-crypto-text-muted);
	font-weight: 500;
}

/* Right Column: Featured Card */
.itx-cryptocurrencies-featured-col {
	flex: 1.5;
	min-width: 400px;
}

.itx-cryptocurrencies-featured-card {
	background: var(--itx-crypto-bg-light);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--itx-crypto-shadow);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.itx-cryptocurrencies-featured-card.itx-cryptocurrencies-loading {
	opacity: 0.5;
	pointer-events: none;
}

.itx-cryptocurrencies-featured-card:hover {
	box-shadow: var(--itx-crypto-shadow-hover);
	transform: translateY(-5px);
}

.itx-cryptocurrencies-featured-image {
	width: 100%;
	height: 300px;
	overflow: hidden;
	background: #f0f0f0;
}

.itx-cryptocurrencies-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.itx-cryptocurrencies-featured-card:hover .itx-cryptocurrencies-featured-image img {
	transform: scale(1.05);
}

.itx-cryptocurrencies-featured-content {
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.itx-cryptocurrencies-featured-title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}

.itx-cryptocurrencies-featured-title a {
	color: var(--itx-crypto-orange);
	text-decoration: none;
	transition: color 0.3s ease;
}

.itx-cryptocurrencies-featured-title a:hover {
	color: var(--itx-crypto-orange-hover);
}

.itx-cryptocurrencies-featured-excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: var(--itx-crypto-text-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	position: relative;
	max-height: calc(1.6em * 2);
}

.itx-cryptocurrencies-featured-excerpt::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 50%;
	height: 1.6em;
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 1) 100%);
	pointer-events: none;
}

.itx-cryptocurrencies-featured-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 13px;
	color: var(--itx-crypto-text-muted);
}

.itx-cryptocurrencies-featured-date {
	font-weight: 500;
}

.itx-cryptocurrencies-featured-btn {
	display: inline-block;
	background: var(--itx-crypto-orange);
	color: #ffffff;
	padding: 12px 24px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	transition: all 0.3s ease;
	margin-top: 10px;
	align-self: flex-start;
}

.itx-cryptocurrencies-featured-btn:hover {
	background: var(--itx-crypto-orange-hover);
	transform: translateY(-2px);
	box-shadow: var(--itx-crypto-shadow);
	color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
	.itx-cryptocurrencies-content {
		flex-direction: column;
		gap: 20px;
	}

	.itx-cryptocurrencies-list-col {
		width: 100%;
	}

	.itx-cryptocurrencies-featured-col {
		width: 100%;
		min-width: auto;
	}

	.itx-cryptocurrencies-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.itx-cryptocurrencies-nav {
		width: 100%;
		justify-content: space-between;
	}

	.itx-crypto-nav-btn {
		flex: 1;
		text-align: center;
	}

	.itx-cryptocurrencies-featured-image {
		height: 200px;
	}

	.itx-cryptocurrencies-featured-content {
		padding: 20px;
	}

	.itx-cryptocurrencies-featured-title {
		font-size: 20px;
	}
}

