/* Use Inter (Google Fonts). Loaded from Blade before this stylesheet. */
body {
	background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
	font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Social icon brand colors */
.contact-item .social-icon {
	font-size: 1.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin-right: 0.5rem;
	transition: transform 0.15s ease, opacity 0.15s ease;
	background: rgba(255,255,255,0.06);
}

.contact-item:hover .social-icon {
	transform: scale(1.06);
}

/* Common brand colors (key names should match the $key used in Blade) */
.social-facebook { color: #1877F2; }
.social-instagram { color: #E1306C; }
.social-twitter { color: #1DA1F2; }
.social-youtube { color: #FF0000; }
.social-linkedin { color: #0A66C2; }
.social-whatsapp { color: #25D366; }
.social-tiktok { color: #000000; }
.social-github { color: #181717; }
.social-dribbble { color: #EA4C89; }
.social-behance { color: #1769FF; }
.social-pinterest { color: #E60023; }
.social-telegram { color: #26A5E4; }
.social-reddit { color: #FF4500; }
.social-medium { color: #00AB6C; }
.social-yelp { color: #AF0606; }
.social-snapchat { color: #FFFC00; }

/* Fallback: if class not matched, keep white to ensure contrast */
.contact-item .social-icon:not([class*="social-"]) { color: #fff; }


.container {
	/* background: #fff; */
	/* box-shadow: 0 10px 40px rgba(0,0,0,0.08); */
	padding: 3rem 2.5rem;
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
	position: relative;
	overflow: hidden;
}

.container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background-size: 200% 100%;
	animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Section: Profile Seniman */
.seniman-profile-section {
	margin-bottom: 3rem;
	position: relative;
}

/* Layout: Left Column (Image + Contact) | Right Column (All Info) */
.seniman-profile-layout {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

/* Left Column: Image + Contact Box */
.seniman-left-column {
	flex-shrink: 0;
	width: 300px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Profile Image */
.profile-image img {
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	width: 100%;
	height: auto;
	aspect-ratio: 3/4;
	object-fit: cover;
	background: #f0f0f0;
	border: 3px solid #fff;
	display: block;
}

.default-avatar {
	border-radius: 16px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	width: 100%;
	aspect-ratio: 3/4;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
	border: 3px solid #fff;
}

/* Contact Profile Box */
.contact-profile-box {
	background: linear-gradient(135deg, #4db8c4 0%, #3da5b0 100%);
	border-radius: 12px;
	padding: 0.5rem;
	color: #fff;
	box-shadow: 0 4px 16px rgba(77, 184, 196, 0.3);
	width: 100%;
	box-sizing: border-box;
}

.contact-profile-box h6 {
	font-size: 0.9rem;
	font-weight: 700;
	margin-bottom: 0.8rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: #fff;
	text-decoration: none;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(255,255,255,0.2);
	transition: all 0.2s ease;
	font-size: 0.9rem;
}

.contact-item:last-child {
	border-bottom: none;
}

.contact-item:hover {
	padding-left: 0.3rem;
	color: #fff;
}

.contact-item i {
	font-size: 1.1rem;
}

/* Right Column: All Info */
.seniman-right-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 730px;
}

.seniman-name {
	font-size: 2rem;
	font-weight: 800;
	color: #1a202c;
	margin-bottom: 0.3rem;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.seniman-subtitle {
	font-size: 0.95rem;
	color: #718096;
	margin-bottom: 0;
	font-weight: 500;
}

/* Bio Box */
.bio-box {
	background: linear-gradient(135deg, #4db8c4 0%, #3da5b0 100%);
	border-radius: 12px;
	padding: 1.2rem 1.6rem;
	color: #fff;
	line-height: 1.75;
	box-shadow: 0 4px 16px rgba(77, 184, 196, 0.25);
	font-size: 0.95rem;
	z-index: 1;
	/* ensure long text wraps and remains readable */
	word-break: break-word;
	hyphens: auto;
	-webkit-font-smoothing: antialiased;
	/* allow vertical scrolling if content is long but avoid hidden/clipped text */
	max-height: 420px;
	overflow: auto;
}

.bio-box p {
	margin: 0;
}

.bio-box p + p {
	margin-top: 0.8rem;
}

/* Info Stats */
.seniman-info-stats {
	display: flex;
 	flex-direction: row;
 	gap: 1rem;
 	flex-wrap: wrap;
}

.info-stat {
 	display: flex;
 	align-items: center;
 	gap: 0.6rem;
 	font-size: 0.9rem;
 	color: #4a5568;
	
}

.info-stat i {
 	color: #4db8c4;
 	font-size: 1.1rem;
 	min-width: 20px;
}

.info-stat--box {
 	background: #fff;
	border: 1px solid rgba(88, 188, 194, 1);
	border-radius: 8px;
 	padding: 0.7rem 1rem;
 	box-shadow: 0 2px 8px rgba(77,184,196,0.08);
 	display: inline-flex;
 	align-items: center;
 	gap: 0.6rem;
 	flex: 1;
 	min-width: 200px;
}

/* Accordion Sections */
.accordion-sections {
	margin-top: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.accordion-item {
	margin-bottom: 0;
	border: 1px solid #e2e8f0;
	/* border-radius: 8px; */
	overflow: hidden;
	background: #fff;
}

.accordion-header {
	width: 100%;
	padding: 0.9rem 1.2rem;
	background: #fff;
	border: 1px solid #58BCC2;
	border-radius: 8px;
	box-shadow: 0px 0px 5.8px 0px #58BCC2;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
	color: #2d3748;
	transition: all 0.2s ease;
}

.accordion-header:hover {
	background: #f7fafc;
}

.accordion-header i {
	color: #4db8c4;
	font-size: 0.9rem;
	transition: transform 0.3s ease;
}

.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.28s ease;
}

/* When opened, limit the total expanded area so inner body can scroll if content is long */
.accordion-content.show {
	max-height: 680px;
}

.accordion-body {
	padding: 1.2rem;
	background: #f7fafc;
	border: 1px solid rgba(88, 188, 194, 1);
	border-radius: 8px;
	color: #343536;
	line-height: 1.6;
	font-size: 0.9rem;
	max-height: 520px; /* cap height for inner scroll */
	overflow: auto; /* enable scrolling when content exceeds the cap */
	-webkit-overflow-scrolling: touch;
}

/* Scrollbar styling for modern browsers */
.accordion-body::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
.accordion-body::-webkit-scrollbar-thumb {
	background: rgba(77,184,196,0.25);
	border-radius: 8px;
}
.accordion-body::-webkit-scrollbar-track {
	background: transparent;
}

.info-item {
	margin-bottom: 1.5rem;
	padding: 1.2rem;
	background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
	border-left: 5px solid transparent;
	border-image: linear-gradient(135deg, #4db8c4 0%, #3da5b0 100%);
	border-image-slice: 1;
	border-radius: 12px;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.info-item:hover {
	background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	transform: translateX(5px);
}

.info-item i {
	color: #4db8c4;
	font-size: 1.3rem;
	margin-top: 0.3rem;
	min-width: 24px;
}

.info-label {
	font-weight: 700;
	color: #2d3748;
	min-width: 120px;
	font-size: 1.05rem;
}

.info-value {
	color: #4a5568;
	flex: 1;
	line-height: 1.6;
}

.info-bio, .info-description {
	color: #4a5568;
	line-height: 1.8;
	word-break: break-word;
	flex: 1;
	margin: 0;
	font-size: 1rem;
}

.info-bio p, .info-description p {
	margin-bottom: 0.8em;
}

.info-bio ul, .info-description ul {
	padding-left: 1.5em;
	margin-bottom: 0.8em;
}

.info-bio img, .info-description img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	margin: 0.5rem 0;
}

.info-value .btn {
	background: linear-gradient(135deg, #4db8c4 0%, #3da5b0 100%);
	border: none;
	border-radius: 10px;
	font-weight: 600;
	padding: 0.5rem 1.2rem;
	transition: all 0.3s ease;
	color: #fff;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	box-shadow: 0 4px 12px rgba(77, 184, 196, 0.3);
}

.info-value .btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(77, 184, 196, 0.4);
	background: linear-gradient(135deg, #3da5b0 0%, #2d8a94 100%);
}

.info-value .btn i {
	color: #fff;
	font-size: 1rem;
}

hr {
	border: none;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
	margin: 3rem 0;
}

/* Section: Products */
.products-section {
	margin-top: 3rem;
}

.section-header {
	margin-bottom: 2.5rem;
	text-align: center;
	position: relative;
}

.section-header h4 {
	color: #2d3748;
	font-weight: 800;
	font-size: 2rem;
	margin-bottom: 0.8rem;
	letter-spacing: -0.5px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
}

.section-header h4 i {
	color: #4db8c4;
}

.section-subtitle {
	color: #718096;
	font-size: 1.05rem;
	margin: 0;
	font-weight: 500;
}

.card {
	border: none;
	border-radius: 20px;
	box-shadow: 0 4px 15px rgba(44, 62, 80, 0.08);
	transition: all 0.3s ease;
	background: #fff;
	overflow: hidden;
	position: relative;
}

.card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 35px rgba(77, 184, 196, 0.2);
}
.card-img-top {
	border-radius: 20px 20px 0 0;
	height: 220px;
	object-fit: cover;
	background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
	transition: transform 0.3s ease;
}

.card:hover .card-img-top {
	transform: scale(1.05);
}

.product-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(77, 184, 196, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: 20px 20px 0 0;
}

.product-overlay i {
	color: #fff;
	font-size: 3rem;
	transform: scale(0.5);
	transition: transform 0.3s ease;
}

.card:hover .product-overlay {
	opacity: 1;
}

.card:hover .product-overlay i {
	transform: scale(1);
}

.card-body {
	padding: 1.5rem;
	background: #fff;
}

.card-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #2d3748;
	margin-bottom: 0.5rem;
	display: -webkit-box;
	/* -webkit-line-clamp: 2; */
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
}

.card-title a {
	transition: color 0.2s ease;
}

.card-title a:hover {
	color: #4db8c4;
}

.card-text {
	color: #4db8c4;
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

.btn-primary.btn-sm {
	background: linear-gradient(90deg, #4db8c4 0%, #3da5b0 100%);
	border: none;
	border-radius: 10px;
	font-weight: 600;
	padding: 0.5rem 1.3rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(77, 184, 196, 0.25);
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.btn-primary.btn-sm:hover {
	background: linear-gradient(90deg, #3da5b0 0%, #2d8a94 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(77, 184, 196, 0.35);
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 5rem 2rem;
	background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
	border-radius: 20px;
	margin: 2rem 0;
}

.empty-state-icon {
	font-size: 5rem;
	color: #cbd5e0;
	margin-bottom: 1.5rem;
	animation: float 3s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-20px); }
}

.empty-state-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #4a5568;
	margin-bottom: 0.5rem;
}

.empty-state-text {
	font-size: 1.05rem;
	color: #718096;
	margin: 0;
}

/* Pagination Styles */
.pagination {
	margin-top: 2rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.pagination .page-link {
	border: 2px solid #e2e8f0;
	color: #667eea;
	border-radius: 10px;
	padding: 0.5rem 1rem;
	font-weight: 600;
	transition: all 0.2s ease;
}

.pagination .page-link:hover {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border-color: #667eea;
	transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-color: #667eea;
	color: #fff;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
	/* Switch to single-column layout on tablets/mobile */
	.seniman-profile-layout {
		flex-direction: column;
		gap: 1.5rem;
	}
	
	.seniman-left-column {
		width: 100%;
		max-width: 350px;
		margin: 0 auto;
	}

	/* Make profile image smaller on tablet/mobile while keeping aspect ratio */
	.profile-image {
		display: flex;
		justify-content: center;
	}

	.profile-image img,
	.default-avatar {
		width: 260px;
		max-width: 60%;
		height: auto;
		aspect-ratio: 3/4;
	}
	
	.seniman-right-column {
		width: 100%;
	}
	
	.seniman-name {
		font-size: 1.8rem;
		text-align: center;
	}
	
	.seniman-subtitle {
		font-size: 0.9rem;
		text-align: center;
	}
	
	.bio-box {
		font-size: 0.85rem;
		padding: 1rem;
	}
	
	.seniman-info-stats {
		gap: 0.8rem;
	}
	
	.info-stat--box {
		min-width: 180px;
		padding: 0.6rem 0.8rem;
		font-size: 0.85rem;
	}
	
	.accordion-header {
		padding: 0.8rem 1rem;
		font-size: 0.9rem;
	}
	
	.accordion-body {
		padding: 1.2rem;
		font-size: 0.95rem;
	}
	
	.container {
		padding: 1.5rem 1rem;
		margin-top: 1rem;
		margin-bottom: 1.5rem;
		border-radius: 16px;
	}
	
	.seniman-profile-section {
		margin-bottom: 2rem;
	}
	
	hr {
		margin: 2rem 0;
	}
	
	.section-header {
		margin-bottom: 2rem;
	}
	
	.section-header h4 {
		font-size: 1.6rem;
		flex-direction: column;
	}
	
	.section-subtitle {
		font-size: 1rem;
	}
	
	.card {
		margin-bottom: 1.5rem;
	}
	
	.card-img-top {
		height: 200px;
	}
	
	.card-title {
		font-size: 1.05rem;
	}
	
	.card-text {
		font-size: 1rem;
	}
	
	.row {
		display: flex;
		flex-wrap: wrap;
		margin-left: -8px;
		margin-right: -8px;
	}
	
	.row > .col-lg-3,
	.row > .col-md-4,
	.row > .col-sm-6 {
		width: 50%;
		max-width: 50%;
		flex: 0 0 50%;
		padding-left: 8px;
		padding-right: 8px;
	}
	
	.empty-state {
		padding: 3rem 1.5rem;
	}
	
	.empty-state-icon {
		font-size: 4rem;
	}
	
	.empty-state-title {
		font-size: 1.3rem;
	}
	
	.empty-state-text {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 1rem 0.8rem;
	}
	
	.seniman-left-column {
		max-width: 100%;
	}

	/* Further reduce profile image size on small phones */
	.profile-image img,
	.default-avatar {
		width: 200px;
		max-width: 50%;
		height: auto;
		aspect-ratio: 3/4;
	}
	
	.seniman-name {
		font-size: 1.5rem;
	}
	
	.seniman-subtitle {
		font-size: 0.85rem;
	}
	
	.section-header h4 {
		font-size: 1.4rem;
	}
	
	.info-stat--box {
		min-width: 100%;
		flex: 1 1 100%;
	}
	
	.row > .col-lg-3,
	.row > .col-md-4,
	.row > .col-sm-6 {
		width: 50%;
		max-width: 50%;
		flex: 0 0 50%;
		padding-left: 8px;
		padding-right: 8px;
	}
	
	.contact-profile-box {
		max-width: 100%;
	}

	/* Mobile: show only icons for contact items and arrange in a single horizontal row */
	.contact-profile-box {
		display: flex;
		align-items: center;
		gap: 0.6rem;
		padding: 0.6rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.contact-profile-box h6 {
		display: flex;
		align-items: center;
		margin: 0;
		margin-right: 0.5rem;
		font-size: 0.85rem;
		font-weight: 700;
		color: #fff;
		white-space: nowrap;
		flex: 0 0 auto;
		max-width: 90px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.contact-profile-box .contact-item {
		padding: 0.25rem 0.5rem;
		border-bottom: none;
		border-right: 1px solid rgba(255,255,255,0.12);
		display: inline-flex;
		align-items: center;
		gap: 0.45rem;
		white-space: nowrap;
		flex: 0 0 auto;
	}

	.contact-profile-box .contact-item:last-child {
		border-right: none;
	}

	/* hide the username/text on mobile, leaving only the icon/logo visible */
	.contact-profile-box .contact-item span {
		display: none;
	}

	.contact-profile-box .contact-item i {
		font-size: 1.05rem;
		min-width: auto;
	}

	/* Scrollbar styling for better affordance on mobile */
	.contact-profile-box::-webkit-scrollbar {
		height: 6px;
	}
	.contact-profile-box::-webkit-scrollbar-thumb {
		background: rgba(0,0,0,0.12);
		border-radius: 6px;
	}
}
