/**
 * KazinoNews Theme Styles
 *
 * Additional styles to complement Tailwind CSS
 *
 * @package KazinoNews
 */

/* ==========================================
   PROSE STYLES (Article Content)
   ========================================== */
.prose {
	color: var(--tw-prose-body);
	max-width: 65ch;
}

.prose :where(p):not(:where([class~="not-prose"] *)) {
	margin-top: 1.25em;
	margin-bottom: 1.25em;
}

.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)) {
	color: var(--tw-prose-lead);
	font-size: 1.25em;
	line-height: 1.6;
	margin-top: 1.2em;
	margin-bottom: 1.2em;
}

.prose :where(a):not(:where([class~="not-prose"] *)) {
	color: #1E88E5;
	text-decoration: underline;
	font-weight: 500;
}

.prose :where(a):hover:not(:where([class~="not-prose"] *)) {
	color: #E53935;
}

.prose :where(strong):not(:where([class~="not-prose"] *)) {
	color: var(--tw-prose-bold);
	font-weight: 600;
}

.prose :where(h1):not(:where([class~="not-prose"] *)) {
	color: var(--tw-prose-headings);
	font-weight: 800;
	font-size: 2.25em;
	margin-top: 0;
	margin-bottom: 0.8888889em;
	line-height: 1.1111111;
}

.prose :where(h2):not(:where([class~="not-prose"] *)) {
	color: var(--tw-prose-headings);
	font-weight: 700;
	font-size: 1.5em;
	margin-top: 2em;
	margin-bottom: 1em;
	line-height: 1.3333333;
}

.prose :where(h3):not(:where([class~="not-prose"] *)) {
	color: var(--tw-prose-headings);
	font-weight: 600;
	font-size: 1.25em;
	margin-top: 1.6em;
	margin-bottom: 0.6em;
	line-height: 1.6;
}

.prose :where(h4):not(:where([class~="not-prose"] *)) {
	color: var(--tw-prose-headings);
	font-weight: 600;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	line-height: 1.5;
}

.prose :where(img):not(:where([class~="not-prose"] *)) {
	margin-top: 2em;
	margin-bottom: 2em;
	border-radius: 0.5rem;
}

.prose :where(figure):not(:where([class~="not-prose"] *)) {
	margin-top: 2em;
	margin-bottom: 2em;
}

.prose :where(figure > *):not(:where([class~="not-prose"] *)) {
	margin-top: 0;
	margin-bottom: 0;
}

.prose :where(figcaption):not(:where([class~="not-prose"] *)) {
	color: var(--tw-prose-captions);
	font-size: 0.875em;
	line-height: 1.4285714;
	margin-top: 0.8571429em;
}

.prose :where(code):not(:where([class~="not-prose"] *)) {
	color: var(--tw-prose-code);
	font-weight: 600;
	font-size: 0.875em;
	background-color: #f3f4f6;
	padding: 0.2em 0.4em;
	border-radius: 0.25rem;
}

.dark .prose :where(code):not(:where([class~="not-prose"] *)) {
	background-color: #374151;
}

.prose :where(pre):not(:where([class~="not-prose"] *)) {
	color: var(--tw-prose-pre-code);
	background-color: var(--tw-prose-pre-bg);
	overflow-x: auto;
	font-size: 0.875em;
	line-height: 1.7142857;
	margin-top: 1.7142857em;
	margin-bottom: 1.7142857em;
	border-radius: 0.5rem;
	padding: 1.1428571em 1.4285714em;
}

.prose :where(ol):not(:where([class~="not-prose"] *)) {
	list-style-type: decimal;
	padding-left: 1.625em;
	margin-top: 1.25em;
	margin-bottom: 1.25em;
}

.prose :where(ul):not(:where([class~="not-prose"] *)) {
	list-style-type: disc;
	padding-left: 1.625em;
	margin-top: 1.25em;
	margin-bottom: 1.25em;
}

.prose :where(li):not(:where([class~="not-prose"] *)) {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.prose :where(blockquote):not(:where([class~="not-prose"] *)) {
	font-weight: 500;
	font-style: italic;
	color: var(--tw-prose-quotes);
	border-left-width: 0.25rem;
	border-left-color: #E53935;
	quotes: "\201C""\201D""\2018""\2019";
	margin-top: 1.6em;
	margin-bottom: 1.6em;
	padding-left: 1em;
}

.prose :where(hr):not(:where([class~="not-prose"] *)) {
	border-color: var(--tw-prose-hr);
	border-top-width: 1px;
	margin-top: 3em;
	margin-bottom: 3em;
}

.prose :where(table):not(:where([class~="not-prose"] *)) {
	width: 100%;
	table-layout: auto;
	text-align: left;
	margin-top: 2em;
	margin-bottom: 2em;
}

.prose :where(thead):not(:where([class~="not-prose"] *)) {
	border-bottom-width: 1px;
	border-bottom-color: var(--tw-prose-th-borders);
}

.prose :where(thead th):not(:where([class~="not-prose"] *)) {
	color: var(--tw-prose-headings);
	font-weight: 600;
	vertical-align: bottom;
	padding-right: 0.5714286em;
	padding-bottom: 0.5714286em;
	padding-left: 0.5714286em;
}

.prose :where(tbody tr):not(:where([class~="not-prose"] *)) {
	border-bottom-width: 1px;
	border-bottom-color: var(--tw-prose-td-borders);
}

.prose :where(tbody td):not(:where([class~="not-prose"] *)) {
	vertical-align: top;
	padding: 0.5714286em;
}

/* Dark mode prose colors */
.dark .prose {
	--tw-prose-body: #e7e9ea;
	--tw-prose-headings: #fff;
	--tw-prose-lead: #9ca3af;
	--tw-prose-links: #1E88E5;
	--tw-prose-bold: #fff;
	--tw-prose-counters: #9ca3af;
	--tw-prose-bullets: #6b7280;
	--tw-prose-hr: #374151;
	--tw-prose-quotes: #f3f4f6;
	--tw-prose-quote-borders: #374151;
	--tw-prose-captions: #9ca3af;
	--tw-prose-code: #fff;
	--tw-prose-pre-code: #e5e7eb;
	--tw-prose-pre-bg: #1f2937;
	--tw-prose-th-borders: #4b5563;
	--tw-prose-td-borders: #374151;
}

/* Light mode prose colors */
.prose {
	--tw-prose-body: #1a1a1a;
	--tw-prose-headings: #111827;
	--tw-prose-lead: #4b5563;
	--tw-prose-links: #1E88E5;
	--tw-prose-bold: #111827;
	--tw-prose-counters: #6b7280;
	--tw-prose-bullets: #d1d5db;
	--tw-prose-hr: #e5e7eb;
	--tw-prose-quotes: #111827;
	--tw-prose-quote-borders: #e5e7eb;
	--tw-prose-captions: #6b7280;
	--tw-prose-code: #111827;
	--tw-prose-pre-code: #e5e7eb;
	--tw-prose-pre-bg: #1f2937;
	--tw-prose-th-borders: #d1d5db;
	--tw-prose-td-borders: #e5e7eb;
}

/* ==========================================
   LINE CLAMP UTILITIES
   ========================================== */
.line-clamp-1 {
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.line-clamp-2 {
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.line-clamp-3 {
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* ==========================================
   CUSTOM SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
	background: #1f2937;
}

::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: #555;
}

.dark ::-webkit-scrollbar-thumb {
	background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
	background: #6b7280;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideInUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.animate-fade-in {
	animation: fadeIn 0.3s ease-in;
}

.animate-slide-in-up {
	animation: slideInUp 0.3s ease-out;
}

.animate-gradient {
	background-size: 200% 200%;
	animation: gradient 4s ease infinite;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.aspect-16-10 {
	aspect-ratio: 16 / 10;
}

.aspect-16-9 {
	aspect-ratio: 16 / 9;
}

.aspect-4-3 {
	aspect-ratio: 4 / 3;
}

/* ==========================================
   RESPONSIVE IMAGES
   ========================================== */
img {
	max-width: 100%;
	height: auto;
}

/* ==========================================
   FOCUS VISIBLE
   ========================================== */
*:focus-visible {
	outline: 2px solid #E53935;
	outline-offset: 2px;
}

/* ==========================================
   SELECTION
   ========================================== */
::selection {
	background-color: #E53935;
	color: white;
}

::-moz-selection {
	background-color: #E53935;
	color: white;
}

/* ==========================================
   WORDPRESS CORE STYLES
   ========================================== */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1em;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption img {
	display: block;
	margin: 0 auto;
}

.wp-caption-text {
	text-align: center;
	font-size: 0.875rem;
	color: #6b7280;
	margin-top: 0.5rem;
}

.dark .wp-caption-text {
	color: #9ca3af;
}

/* ==========================================
   GALLERY STYLES
   ========================================== */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1rem;
	margin: 2rem 0;
}

.gallery-item {
	overflow: hidden;
	border-radius: 0.5rem;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

/* ==========================================
   COMMENTS STYLES
   ========================================== */
.comment-list {
	list-style: none;
	padding: 0;
}

.comment {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background-color: #f9fafb;
	border-radius: 0.5rem;
}

.dark .comment {
	background-color: #1f2937;
}

.comment .children {
	list-style: none;
	padding-left: 2rem;
	margin-top: 1rem;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
	.site-header,
	.site-footer,
	.mobile-menu,
	.breaking-news-ticker,
	.share-buttons,
	.sidebar,
	.related-posts {
		display: none !important;
	}

	body {
		font-size: 12pt;
		line-height: 1.5;
		color: #000;
		background: #fff;
	}

	a {
		text-decoration: underline;
	}

	a[href]:after {
		content: " (" attr(href) ")";
	}
}
