/*
 * Styles for legacy content shortcodes ported from the whitestudio theme:
 * [categories_archive], [blog_archive] and [user_reviews]. Only loaded on
 * pages that actually use one of these shortcodes.
 */

/* Searchbox (shared by categories_archive) */
.searchbox-clean {
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: all 0.2s ease;
}

.searchbox-clean:focus-within {
	border-color: #7c3aed;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.searchbox-clean i {
	color: #9ca3af;
	font-size: 1.1rem;
}

.searchbox-input-clean {
	flex: 1;
	border: none;
	outline: none;
	font-size: 0.95rem;
	color: #111827;
}

.searchbox-module {
	margin-bottom: 30px;
}

.searchbox-module .input-group {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	border-radius: 50px;
	overflow: hidden;
}

.searchbox-module .form-control {
	border: 1px solid #dee2e6;
	border-left: 0;
	border-right: 0;
	padding: 12px 0;
	font-size: 0.95rem;
	z-index: 2;
}

.searchbox-module .form-control:focus {
	box-shadow: none;
	border-color: #dee2e6;
}

.searchbox-module .btn-primary {
	background: #7c3aed;
	border-color: #7c3aed;
	padding: 12px 24px;
	font-weight: 600;
	border-radius: 0 50px 50px 0;
	z-index: 3;
}

.searchbox-module .btn-primary:hover {
	background: #6b21a8;
	border-color: #6b21a8;
}

/* categories_archive shortcode */
.bg-gradient {
	background: linear-gradient(135deg, #652eba 0%, #ff4b93 100%);
}

.categories-hero-compact {
	border-radius: 1rem;
}

.category-card-compact .card {
	border: none;
	border-radius: 1rem;
	overflow: hidden;
	transition: all 0.3s ease;
}

.category-card-compact .card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(101, 46, 186, 0.15) !important;
}

.category-image-compact {
	height: 150px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.category-image-default-compact {
	background: linear-gradient(135deg, #652eba 0%, #ff4b93 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.category-icon-compact {
	font-size: 3rem;
	color: rgba(255, 255, 255, 0.9);
}

.category-overlay-compact {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
	display: flex;
	align-items: flex-end;
	padding: 0.75rem;
	opacity: 0;
	transition: opacity 0.3s;
}

.category-card-compact .card:hover .category-overlay-compact {
	opacity: 1;
}

.category-card-compact .card-title {
	color: #2c3e50;
	font-weight: 600;
}

.category-card-compact .card:hover .card-title {
	color: #652eba;
}

.category-meta-compact {
	border-top: 1px solid #eee;
	padding-top: 0.5rem;
	margin-top: 0.5rem;
}

/* blog_archive shortcode */
.archive-clean {
	background: #f9fafb;
	padding: 40px 0 80px;
}

.archive-simple-header {
	background: #fff;
	padding: 30px 0;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 40px;
}

.archive-title-clean {
	font-size: 2rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 8px;
}

.post-card-clean {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.2s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.post-card-clean:hover {
	border-color: #7c3aed;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.post-thumbnail-clean {
	height: 200px;
	overflow: hidden;
	background: #f3f4f6;
	position: relative;
}

.post-thumbnail-clean img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.post-card-clean:hover .post-thumbnail-clean img {
	transform: scale(1.05);
}

.post-default-thumb {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
	color: #fff;
	font-size: 3rem;
}

.post-body-clean {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.post-category-tag {
	display: inline-block;
	background: #eff6ff;
	color: #7c3aed;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 4px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

.post-category-tag:hover {
	background: #7c3aed;
	color: #fff;
}

.post-title-clean {
	font-size: 1.25rem;
	font-weight: 600;
	color: #111827;
	margin-bottom: 10px;
	line-height: 1.4;
}

.post-title-clean a {
	color: inherit;
	text-decoration: none;
}

.post-title-clean a:hover {
	color: #7c3aed;
}

.post-excerpt-clean {
	font-size: 0.95rem;
	color: #6b7280;
	line-height: 1.6;
	margin-bottom: 15px;
	flex: 1;
}

.post-meta-clean {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 15px;
	border-top: 1px solid #f3f4f6;
	font-size: 0.875rem;
	color: #9ca3af;
}

.post-date-clean {
	display: flex;
	align-items: center;
	gap: 5px;
}

.post-link-clean {
	color: #7c3aed;
	text-decoration: none;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 5px;
}

.post-link-clean:hover {
	color: #6b21a8;
}

.pagination-clean {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 50px;
	padding: 30px 0;
	border-top: 1px solid #e5e7eb;
}

.pagination-clean a,
.pagination-clean span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #6b7280;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

.pagination-clean a:hover {
	border-color: #7c3aed;
	background: #eff6ff;
	color: #7c3aed;
}

.pagination-clean .current {
	background: #7c3aed;
	color: #fff;
	border-color: #7c3aed;
}

.pagination-clean .dots {
	border: none;
	background: transparent;
}

@media (max-width: 768px) {
	.archive-title-clean {
		font-size: 1.5rem;
	}

	.post-thumbnail-clean {
		display: none !important;
	}

	.post-card-clean {
		padding-top: 1rem;
	}
}

/* user_reviews shortcode */
.user-reviews-page {
	padding: 60px 0;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.reviews-page-header {
	padding: 40px 20px;
	margin-bottom: 50px;
}

.reviews-page-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	color: #1e293b;
	margin-bottom: 20px;
	line-height: 1.2;
}

.reviews-page-title i {
	color: #fbbf24;
}

.reviews-page-subtitle {
	font-size: 1.25rem;
	color: #64748b;
	max-width: 700px;
	margin: 0 auto 30px;
}

.rating-summary {
	background: #fff;
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	display: inline-block !important;
	min-width: 300px;
}

.rating-stars {
	font-size: 2rem;
	color: #fbbf24;
	margin-bottom: 10px;
}

.rating-text {
	font-size: 1.25rem;
	color: #1e293b;
	margin-bottom: 10px;
}

.rating-text strong {
	font-size: 2rem;
	font-weight: 700;
	color: #fbbf24;
}

.verified-badge {
	color: #10b981;
	font-weight: 600;
	font-size: 0.95rem;
}

.reviews-grid {
	margin-top: 40px;
}

.review-card-full {
	background: #fff;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e8f0;
	position: relative;
	overflow: hidden;
}

.review-card-full::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, #fbbf24, #f59e0b);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.review-card-full:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	border-color: #fbbf24;
}

.review-card-full:hover::before {
	transform: scaleX(1);
}

.review-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.review-rating .stars {
	color: #fbbf24;
	font-size: 1.1rem;
	display: inline-block;
	margin-inline-end: 8px;
}

.review-rating .rating-number {
	font-weight: 700;
	color: #1e293b;
	font-size: 1rem;
}

.verified-icon {
	color: #10b981;
	font-size: 1.5rem;
}

.review-content {
	flex: 1;
	margin-bottom: 20px;
}

.review-text {
	margin: 0;
	padding: 0;
	border: none;
	position: relative;
}

.review-text .quote-start {
	position: absolute;
	top: -10px;
	inset-inline-start: -10px;
	font-size: 3rem;
	color: #fbbf24;
	opacity: 0.2;
}

.review-text p {
	font-size: 1rem;
	line-height: 1.7;
	color: #475569;
	margin: 0;
	padding-inline-start: 20px;
}

.review-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.author-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.author-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #fbbf24, #f59e0b);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.8rem;
	flex-shrink: 0;
}

.author-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.author-name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1e293b;
	margin: 0;
}

.review-date {
	font-size: 0.85rem;
	color: #94a3b8;
	display: flex;
	align-items: center;
	gap: 4px;
}

.read-more-link {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #3b82f6;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.2s;
	white-space: nowrap;
}

.read-more-link:hover {
	color: #2563eb;
	gap: 10px;
}

.reviews-cta {
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	border-radius: 20px;
	padding: 50px 30px;
	color: #fff;
}

.reviews-cta h2 {
	color: #fff;
}

.cta-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

.cta-buttons .btn-primary {
	background: #fbbf24;
	border: none;
	color: #1e293b;
}

.cta-buttons .btn-primary:hover {
	background: #f59e0b;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

.cta-buttons .btn-outline-primary {
	border: 2px solid #fff;
	color: #fff;
	background: transparent;
}

.cta-buttons .btn-outline-primary:hover {
	background: #fff;
	color: #1e293b;
	transform: translateY(-2px);
}

@media (max-width: 768px) {
	.reviews-page-title {
		font-size: 1.75rem;
	}

	.review-footer {
		flex-direction: column;
		gap: 15px;
		align-items: flex-start;
	}

	.cta-buttons {
		flex-direction: column;
	}

	.cta-buttons .btn {
		width: 100%;
	}
}

.review-card-full:focus-within {
	outline: 3px solid #fbbf24;
	outline-offset: 4px;
}
