/**
 * GReviews Public Frontend Stylesheet
 * Premium, ultra-modern design system with 6 responsive templates and themes (Light, Dark, Glassmorphism)
 */

.greviews-container-wrap {
	--greviews-star-color: #f59e0b;
	--greviews-bg-light: #ffffff;
	--greviews-bg-dark: #1e293b;
	--greviews-bg-glass: rgba(255, 255, 255, 0.45);
	--greviews-border-light: #f1f5f9;
	--greviews-border-dark: #334155;
	--greviews-border-glass: rgba(255, 255, 255, 0.3);
	--greviews-text-light: #1e293b;
	--greviews-text-dark: #f8fafc;
	--greviews-text-muted-light: #64748b;
	--greviews-text-muted-dark: #94a3b8;
	--greviews-card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 10px -1px rgba(0, 0, 0, 0.03);
	--greviews-accent-color: #2563eb;
	
	font-family: 'Inter', sans-serif;
	line-height: 1.5;
	box-sizing: border-box;
	margin-bottom: 30px;
}

.greviews-container-wrap * {
	box-sizing: border-box;
}

/* Star SVG styles */
.greviews-star-svg {
	fill: #cbd5e1;
	transition: fill 0.2s ease;
	vertical-align: middle;
}

.greviews-star-svg.active {
	fill: var(--greviews-star-color);
}

/* Theme variations */
.greviews-theme-light {
	--greviews-card-bg: var(--greviews-bg-light);
	--greviews-card-border: var(--greviews-border-light);
	--greviews-card-text: var(--greviews-text-light);
	--greviews-card-text-muted: var(--greviews-text-muted-light);
}

.greviews-theme-dark {
	--greviews-card-bg: var(--greviews-bg-dark);
	--greviews-card-border: var(--greviews-border-dark);
	--greviews-card-text: var(--greviews-text-dark);
	--greviews-card-text-muted: var(--greviews-text-muted-dark);
}

.greviews-theme-glass {
	--greviews-card-bg: var(--greviews-bg-glass);
	--greviews-card-border: var(--greviews-border-glass);
	--greviews-card-text: var(--greviews-text-light);
	--greviews-card-text-muted: var(--greviews-text-muted-light);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

/* Header style */
.greviews-showcase-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	background: var(--greviews-card-bg);
	border: 1px solid var(--greviews-card-border);
	border-radius: 16px;
	margin-bottom: 24px;
	box-shadow: var(--greviews-card-shadow);
	transition: all 0.3s ease;
}

.greviews-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.greviews-google-g {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.8);
	border-radius: 50%;
	padding: 10px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.greviews-header-meta h3 {
	margin: 0 0 4px 0 !important;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 18px !important;
	color: var(--greviews-card-text);
}

.greviews-header-rating-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.greviews-header-rating-num {
	font-family: 'Outfit', sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: var(--greviews-card-text);
}

.greviews-stars-row {
	display: inline-flex;
	gap: 2px;
}

.greviews-header-rating-count {
	font-size: 13px;
	color: var(--greviews-card-text-muted);
	font-weight: 500;
}

.greviews-write-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none !important;
	padding: 10px 18px;
	background-color: var(--greviews-accent-color);
	color: #ffffff !important;
	border-radius: 8px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.greviews-write-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
	background-color: #1d4ed8;
}

/* Core Card Items */
.greviews-card-item {
	background: var(--greviews-card-bg);
	border: 1px solid var(--greviews-card-border);
	border-radius: 16px;
	padding: 24px;
	box-shadow: var(--greviews-card-shadow);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
}

.greviews-card-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 25px -4px rgba(0, 0, 0, 0.08), 0 8px 16px -6px rgba(0, 0, 0, 0.05);
}

.greviews-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.greviews-card-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.greviews-card-avatar-wrap {
	position: relative;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}

.greviews-card-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--greviews-card-border);
}

.greviews-card-avatar-placeholder {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #eff6ff;
	color: #2563eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	border: 2px solid var(--greviews-card-border);
}

.greviews-verified-badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	background-color: #22c55e;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.greviews-card-name-meta {
	display: flex;
	flex-direction: column;
}

.greviews-card-author-name {
	margin: 0 !important;
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	font-size: 15px !important;
	color: var(--greviews-card-text);
}

.greviews-card-author-name a {
	color: inherit !important;
	text-decoration: none !important;
}

.greviews-card-author-name a:hover {
	color: var(--greviews-accent-color) !important;
}

.greviews-card-date {
	font-size: 11px;
	color: var(--greviews-card-text-muted);
	margin-top: 1px;
}

.greviews-card-stars {
	margin: -4px 0 -4px 0;
}

.greviews-card-description {
	flex-grow: 1;
	font-size: 13.5px;
	color: var(--greviews-card-text);
	opacity: 0.95;
	line-height: 1.6;
}

.greviews-card-text {
	margin: 0 !important;
}

.greviews-readmore-toggle {
	color: var(--greviews-accent-color);
	font-weight: 600;
	text-decoration: none !important;
	font-size: 12px;
	margin-left: 4px;
	transition: opacity 0.2s ease;
}

.greviews-readmore-toggle:hover {
	opacity: 0.8;
}

/* Template 1: Grid */
.greviews-grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

/* Template 2: Carousel */
.greviews-carousel-container {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding: 10px 0 35px 0;
}

.greviews-carousel-track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
	width: 100%;
}

.greviews-carousel-slide {
	flex-shrink: 0;
	padding: 0 12px;
	box-sizing: border-box;
}

.greviews-carousel-nav {
	position: absolute;
	top: calc(50% - 30px);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #334155;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	transition: all 0.2s ease;
	z-index: 10;
}

.greviews-carousel-nav:hover {
	background-color: #f8fafc;
	transform: scale(1.05);
	color: #0f172a;
}

.nav-prev { left: 10px; }
.nav-next { right: 10px; }

.greviews-carousel-pagination {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #cbd5e1;
	cursor: pointer;
	transition: all 0.2s ease;
}

.carousel-dot.active {
	background-color: var(--greviews-accent-color);
	transform: scale(1.2);
}

/* Template 3: Masonry */
.greviews-masonry-container {
	column-count: 3;
	column-gap: 24px;
	width: 100%;
}

.greviews-masonry-item {
	display: inline-block;
	width: 100%;
	margin-bottom: 24px;
	break-inside: avoid;
}

@media (max-width: 900px) {
	.greviews-masonry-container { column-count: 2; }
}
@media (max-width: 600px) {
	.greviews-masonry-container { column-count: 1; }
}

/* Template 4: Spotlight */
.greviews-spotlight-card {
	position: relative;
	background: var(--greviews-card-bg);
	border: 1px solid var(--greviews-card-border);
	border-radius: 24px;
	padding: 48px;
	box-shadow: var(--greviews-card-shadow);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: 800px;
	margin: 0 auto;
}

.spotlight-quote-icon {
	position: absolute;
	top: 10px;
	left: 40px;
	font-family: 'Outfit', sans-serif;
	font-size: 120px;
	color: var(--greviews-card-text-muted);
	opacity: 0.15;
	line-height: 1;
	user-select: none;
}

.spotlight-text {
	font-family: 'Outfit', sans-serif;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.6;
	color: var(--greviews-card-text);
	margin: 0 !important;
	position: relative;
	z-index: 2;
}

.spotlight-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.spotlight-avatar-wrap {
	width: 64px;
	height: 64px;
}

.spotlight-avatar-wrap img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--greviews-card-border);
}

.spotlight-avatar-placeholder {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #eff6ff;
	color: #2563eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 24px;
	text-transform: uppercase;
	border: 3px solid var(--greviews-card-border);
}

.spotlight-author-name {
	margin: 0 0 4px 0 !important;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 18px !important;
	color: var(--greviews-card-text);
}

.spotlight-author-name a {
	color: inherit !important;
	text-decoration: none !important;
}

.spotlight-rating-date {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.spotlight-date {
	font-size: 12px;
	color: var(--greviews-card-text-muted);
}

.spotlight-google-badge {
	margin-top: 10px;
}

/* Template 5: Compact List */
.greviews-list-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.greviews-list-item {
	display: flex;
	gap: 16px;
	background: var(--greviews-card-bg);
	border: 1px solid var(--greviews-card-border);
	border-radius: 16px;
	padding: 20px;
	box-shadow: var(--greviews-card-shadow);
	transition: all 0.3s ease;
}

.greviews-list-item:hover {
	transform: translateX(4px);
}

.list-item-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.list-item-avatar-placeholder {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: #eff6ff;
	color: #2563eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
}

.list-item-right {
	flex-grow: 1;
}

.list-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.list-item-author {
	margin: 0 !important;
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	font-size: 15px !important;
	color: var(--greviews-card-text);
}

.list-item-author a {
	color: inherit !important;
	text-decoration: none !important;
}

.list-item-meta-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.list-item-date {
	font-size: 11px;
	color: var(--greviews-card-text-muted);
}

.list-item-text {
	margin: 0 !important;
	font-size: 13px;
	line-height: 1.5;
	color: var(--greviews-card-text);
}

/* Template 6: Floating Badge Widget */
.greviews-floating-badge {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99990;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 9999px;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: 'Inter', sans-serif;
	animation: slideUpIn 0.5s ease;
}

.greviews-floating-badge:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

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

.badge-g-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f8fafc;
	border-radius: 50%;
	padding: 4px;
}

.badge-content-right {
	display: flex;
	flex-direction: column;
}

.badge-title {
	font-size: 10px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 700;
}

.badge-rating-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 1px;
}

.badge-rating-val {
	font-weight: 800;
	font-size: 13.5px;
	color: #0f172a;
}

.badge-stars {
	display: flex;
	gap: 1px;
}

.badge-count {
	font-size: 11px;
	color: #64748b;
	font-weight: 500;
}

/* Slide-out Drawer Panel */
.greviews-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 99995;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.greviews-drawer-overlay.active {
	opacity: 1;
	visibility: visible;
}

.greviews-drawer-container {
	position: fixed;
	top: 0;
	right: -420px;
	width: 100%;
	max-width: 420px;
	height: 100%;
	background-color: #ffffff;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
	transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	z-index: 99996;
}

.greviews-drawer-overlay.active .greviews-drawer-container {
	right: 0;
}

.greviews-drawer-header {
	padding: 24px;
	border-bottom: 1px solid #f1f5f9;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.drawer-header-left h3 {
	margin: 0 0 6px 0 !important;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 18px !important;
	color: #0f172a;
}

.drawer-rating-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.drawer-rating-val {
	font-weight: 800;
	font-size: 14px;
	color: #0f172a;
}

.drawer-stars {
	display: flex;
	gap: 1px;
}

.drawer-rating-count {
	font-size: 12px;
	color: #64748b;
}

.greviews-drawer-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #94a3b8;
	cursor: pointer;
	line-height: 0.5;
	padding: 6px;
	transition: color 0.2s ease;
}

.greviews-drawer-close:hover {
	color: #475569;
}

.greviews-drawer-body {
	flex-grow: 1;
	overflow-y: auto;
	padding: 24px;
}

.greviews-drawer-body .greviews-list-item {
	box-shadow: none;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid #f1f5f9;
	padding: 16px 0;
}

.greviews-drawer-body .greviews-list-item:hover {
	transform: none;
}

.greviews-drawer-body .greviews-list-item:last-child {
	border-bottom: none;
}

.greviews-drawer-footer {
	padding: 20px 24px;
	border-top: 1px solid #f1f5f9;
	background-color: #f8fafc;
}

.greviews-drawer-cta-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	background-color: #0f172a;
	color: #ffffff !important;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 13.5px;
	padding: 12px;
	border-radius: 8px;
	transition: background-color 0.2s ease;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.greviews-drawer-cta-btn:hover {
	background-color: #1e293b;
}

/* Responsive adjustment for drawer on small screens */
@media (max-width: 480px) {
	.greviews-drawer-container {
		max-width: 100%;
		right: -100%;
	}
}
