/* Single Article Page Styles */

.article-container {
	max-width: 800px;
	margin: 0 auto;
}

.article-header {
	margin-bottom: 32px;
    position: relative !important;
    z-index: -1000 !important;
}

.breadcrumb {
	margin-bottom: 16px;
}

.breadcrumb a {
	color: #6b7280;
	text-decoration: none;
	font-size: 14px;
}

.breadcrumb a:hover {
	color: var(--accent-color);
}

.breadcrumb-separator {
	margin: 0 8px;
	color: #6b7280;
}

.article-meta {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
	font-size: 14px;
	color: #6b7280;
}

.category-tag {
	color: var(--accent-color);
	font-weight: 500;
}

.article-title {
	font-size: 36px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 16px;
	line-height: 1.2;
}

.article-excerpt {
	font-size: 18px;
	color: #6b7280;
	line-height: 1.6;
	margin-bottom: 24px;
}

.article-image {
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 32px;
}

.article-content {
	font-size: 18px;
	line-height: 1.8;
	color: #1a1a1a;
	margin-bottom: 48px;
}

.article-content h2 {
	font-size: 28px;
	font-weight: 600;
	margin: 32px 0 16px 0;
	color: #1a1a1a;
}

.article-content h3 {
	font-size: 24px;
	font-weight: 600;
	margin: 24px 0 12px 0;
	color: #1a1a1a;
}

.article-content p {
	margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
	margin: 16px 0;
	padding-left: 24px;
}

.article-content ul {
	list-style: none;
}

.article-content ul li::before {
	content: '•';
	color: var(--accent-color);
	font-weight: bold;
	font-size: 20px;
	margin-right: 8px;
}

.article-content ol {
	counter-reset: item;
}

.article-content ol li {
	counter-increment: item;
	position: relative;
	padding-left: 8px;
}

.article-content ol li::before {
	content: counter(item);
	background: var(--accent-color);
	color: white;
	font-weight: 600;
	font-size: 14px;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	left: -32px;
	top: 2px;
}

.article-content li {
	margin-bottom: 8px;
}

.article-content blockquote {
	border-left: 4px solid var(--accent-color);
	padding-left: 16px;
	margin: 24px 0;
	font-style: italic;
	color: #6b7280;
}

.article-content a {
	color: var(--accent-color);
	text-decoration: none;
}

.article-content a:hover {
	text-decoration: underline;
}

.article-footer {
	border-top: 1px solid #e5e7eb;
	padding-top: 32px;
	margin-top: 48px;
}

.rating-section {
	margin-bottom: 24px;
}

.rating-title {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 16px;
}

.star-rating {
	display: flex;
	align-items: center;
	gap: 8px;
}

.stars {
	display: flex;
	gap: 4px;
}

.star {
	width: 24px;
	height: 24px;
	fill: #e5e7eb;
	cursor: pointer;
	transition: all 0.2s;
}

.star:hover {
	fill: #fbbf24;
	transform: scale(1.1);
}

.star.filled {
	fill: #fbbf24;
}

.star-rating.rated .star {
	cursor: default;
}

.star-rating.rated .star:hover {
	transform: none;
}

.rating-info {
	font-size: 14px;
	color: #6b7280;
}

.rating-message {
	position: fixed;
	top: 20px;
	right: 20px;
	background: var(--accent-color);
	color: white;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.action-buttons {
	display: flex;
	gap: 16px;
}

.action-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: none;
	border: none;
	color: #6b7280;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.2s;
}

.action-btn:hover {
	background: #f9fafb;
	color: #1a1a1a;
}

.action-btn.liked {
	color: var(--accent-color);
}

.action-btn.liked svg {
	fill: var(--accent-color);
}

.action-btn.liked {
	cursor: default;
}

.action-btn.liked:hover {
	background: none;
	color: var(--accent-color);
}

.action-btn svg {
	width: 16px;
	height: 16px;
	transition: fill 0.2s;
}

.action-message {
	position: fixed;
	top: 20px;
	right: 20px;
	background: var(--accent-color);
	color: white;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	animation: slideIn 0.3s ease;
}

.related-articles {
	margin-top: 64px;
}

.related-title {
	font-size: 24px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 24px;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.related-article {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s;
}

.related-article:hover {
	transform: translateY(-2px);
}

.related-image {
	width: 100%;
	height: 150px;
	object-fit: cover;
}

.related-content {
	padding: 16px;
}

.related-meta {
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 8px;
}

.related-article-title {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
}

.related-article-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.related-article-title a:hover {
	color: var(--accent-color);
}

@media (max-width: 768px) {
	.article-title {
		font-size: 28px;
	}

	.article-content {
		font-size: 16px;
	}

	.article-content h2 {
		font-size: 24px;
	}

	.article-content h3 {
		font-size: 20px;
	}

	.related-grid {
		grid-template-columns: 1fr;
	}

	.action-buttons {
		flex-wrap: wrap;
	}
} 