/* ============================================================
   Bola Mania — Custom CSS Overrides
   Only styles that Tailwind CDN can't handle natively
   ============================================================ */

/* ---- Line-Clamp Utilities (1-5 lines) with -webkit-box fallback ---- */
.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; }
.line-clamp-4 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.line-clamp-5 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }

/* ---- Custom Scrollbar (Purple Theme) ---- */
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: #f1f1f1; }
body::-webkit-scrollbar-thumb { background: #400090; border-radius: 4px; }
body::-webkit-scrollbar-thumb:hover { background: #6854b1; }

/* Firefox scrollbar */
body {
	scrollbar-width: thin;
	scrollbar-color: #400090 #f1f1f1;
}

/* ---- Loading Skeleton Shimmer Animation ---- */
.skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ============================================================
   Dynamic Menu Styling (PopojiCMS $this->menu()->getFrontMenu())
   ============================================================ */

/* Desktop: flex horizontal */
.menu-container > ul {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	padding: 0;
	margin: 0;
}
.menu-container > ul > li {
	position: relative;
}
.menu-container > ul > li > a {
	display: block;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: all 0.2s;
}
.menu-container > ul > li > a:hover {
	color: #400090;
	border-bottom-color: #188fff;
}

/* Dropdown sub-menu */
.menu-container > ul > li > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 180px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	padding: 4px 0;
	z-index: 50;
}
.menu-container > ul > li:hover > ul {
	display: block;
}
.menu-container > ul > li > ul > li > a {
	display: block;
	padding: 0.5rem 1.5rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	transition: all 0.2s;
}
.menu-container > ul > li > ul > li > a:hover {
	color: white;
	background: linear-gradient(135deg, #400090, #003abc);
}

/* Mobile: vertical with border-left active indicator */
@media (max-width: 1023px) {
	.menu-container > ul {
		flex-direction: column;
		align-items: stretch;
	}
	.menu-container > ul > li > a {
		padding: 0.75rem 1rem;
		border-bottom: 1px solid #f3f4f6;
		border-left: 3px solid transparent;
	}
	.menu-container > ul > li > a:hover {
		border-bottom-color: #f3f4f6;
		border-left-color: #400090;
	}
	.menu-container > ul > li > ul {
		position: static;
		box-shadow: none;
		border-radius: 0;
		background: #f9fafb;
	}
}

/* ============================================================
   Article Prose Styling
   ============================================================ */
.article-content p {
	margin-bottom: 1.25rem;
	line-height: 1.9;
	color: #1f2937;
}
.article-content h2 {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 2rem 0 0.75rem;
	color: #111827;
}
.article-content h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 1.5rem 0 0.5rem;
	color: #111827;
}
.article-content blockquote {
	border-left: 4px solid #400090;
	padding: 1rem 1.5rem;
	margin: 1.5rem 0;
	background: #f8f7ff;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #4b5563;
}
.article-content ul,
.article-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}
.article-content li {
	margin-bottom: 0.5rem;
	line-height: 1.7;
}
.article-content img {
	border-radius: 12px;
	width: 100%;
	margin: 1.5rem 0;
}
.article-content strong {
	font-weight: 700;
	color: #111827;
}
.article-content a {
	color: #400090;
	text-decoration: underline;
}
.article-content a:hover {
	color: #188fff;
}

/* ============================================================
   Score Card Widget (Sidebar)
   ============================================================ */
.score-card {
	background: linear-gradient(135deg, #1a0a36 0%, #2d1152 100%);
	border-radius: 12px;
	padding: 1rem;
	color: white;
}
.score-card .team {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0;
}
.score-card .team-name {
	font-weight: 600;
	font-size: 0.9rem;
}
.score-card .score {
	font-weight: 800;
	font-size: 1.25rem;
	background: rgba(255, 255, 255, 0.15);
	padding: 2px 12px;
	border-radius: 6px;
}

/* ============================================================
   Section Divider with Decorative Line
   ============================================================ */
.section-divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.section-divider h2 {
	font-weight: 800;
	font-size: 1.25rem;
	color: #111827;
	white-space: nowrap;
	position: relative;
}
.section-divider h2::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 40px;
	height: 3px;
	background: linear-gradient(90deg, #400090, #188fff);
	border-radius: 2px;
}
.section-divider .line {
	flex: 1;
	height: 1px;
	background: #e5e7eb;
}

/* ============================================================
   Gallery Masonry Grid (CSS Columns)
   ============================================================ */
.gallery-grid {
	columns: 2;
	column-gap: 1rem;
}
@media (min-width: 768px) {
	.gallery-grid { columns: 3; }
}
@media (min-width: 1024px) {
	.gallery-grid { columns: 4; }
}
.gallery-grid > .gallery-item {
	break-inside: avoid;
	margin-bottom: 1rem;
}

/* Gallery overlay hover effect */
.gallery-overlay {
	opacity: 0;
	transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
	opacity: 1;
}
.gallery-item:hover img {
	transform: scale(1.05);
}

/* ============================================================
   Album Stacked Card Effect (::before/::after rotated cards)
   ============================================================ */
.album-card:hover .album-cover img {
	transform: scale(1.08);
}
.album-card:hover .album-overlay {
	opacity: 1;
}
.album-overlay {
	opacity: 0;
	transition: opacity 0.3s ease;
}
.album-cover img {
	transition: transform 0.5s ease;
}
.stacked::before,
.stacked::after {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 10px;
	background: white;
	z-index: -1;
	transition: all 0.3s ease;
}
.stacked::before {
	transform: rotate(-2deg);
	opacity: 0.5;
}
.stacked::after {
	transform: rotate(2deg);
	opacity: 0.3;
}
.album-card:hover .stacked::before {
	transform: rotate(-3deg) translateY(-4px);
}
.album-card:hover .stacked::after {
	transform: rotate(3deg) translateY(-6px);
}

/* ============================================================
   Swiper.js Custom Pagination
   ============================================================ */
.swiper-pagination-bullet-active {
	background: #400090 !important;
}
