/**
 * Stylesheet for Sauna Reviews Manager.
 * Designed using Sauna Hat Club brand guidelines.
 */

/* ----------------------------------------------------
 * 1. Global / Typography & Core
 * ---------------------------------------------------- */
.srm-reviews-section {
	font-family: 'Inter', sans-serif;
	color: #1A2E2A; /* Forest */
}

.srm-reviews-section h2, 
.srm-reviews-section h3, 
.srm-reviews-section h4,
.srm-reviews-section .font-display {
	font-family: 'Cormorant Garamond', serif !important;
}

/* ----------------------------------------------------
 * 2. Summary Card Layout
 * ---------------------------------------------------- */
.srm-summary-card {
	display: flex;
	flex-direction: row;
	gap: 40px;
	background-color: #ffffff;
	border: 1px solid #B8E0D4; /* Mist */
	border-radius: 2px;
	padding: 32px;
	margin-bottom: 48px;
	box-shadow: 0 4px 12px rgba(26, 46, 42, 0.02);
}

/* Overview Column (Left) */
.srm-overview-col {
	flex: 0 0 35%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-right: 1px solid rgba(184, 224, 212, 0.4);
	padding-right: 32px;
}

.srm-rating-score {
	font-size: 56px;
	line-height: 1;
	font-weight: 400;
	color: #1A2E2A;
	margin-bottom: 8px;
	font-family: 'Cormorant Garamond', serif;
}

.srm-based-on-text {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: rgba(26, 46, 42, 0.6);
	font-weight: 500;
}

/* Bars Column (Right) */
.srm-bars-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.srm-bars-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.srm-bar-row {
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
}

.srm-bar-label {
	width: 60px;
	color: rgba(26, 46, 42, 0.8);
}

.srm-bar-container {
	flex: 1;
	height: 8px;
	background-color: #F0F7F5; /* Ice */
	border: 1px solid rgba(184, 224, 212, 0.4); /* Mist */
	border-radius: 9999px;
	margin: 0 16px;
	overflow: hidden;
}

.srm-bar-fill {
	height: 100%;
	background-color: #2E6B5E; /* Pine */
	border-radius: 9999px;
	width: 0;
	transition: width 0.8s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.srm-bar-count {
	width: 30px;
	text-align: right;
	color: rgba(26, 46, 42, 0.6);
}

/* ----------------------------------------------------
 * 3. Star Ratings (Pixel-perfect width stars)
 * ---------------------------------------------------- */
/* Verified Badge check styling */
.srm-verified-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	background-color: #F0F7F5 !important; /* Ice */
	border: 1px solid rgba(46, 107, 94, 0.2) !important; /* Pine opacity */
	border-radius: 9999px !important;
	padding: 4px 10px !important;
	color: #2E6B5E !important; /* Pine */
	font-size: 10px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	font-weight: 600 !important;
	margin-top: 6px !important;
	line-height: 1 !important;
}

.srm-verified-badge svg {
	width: 12px !important;
	height: 12px !important;
	flex-shrink: 0 !important;
	color: #2E6B5E !important;
	display: inline-block !important;
	vertical-align: middle !important;
}

.srm-stars-outer {
	position: relative;
	display: inline-block;
	font-size: 24px;
	line-height: 1;
	color: rgba(184, 224, 212, 0.7); /* Mist (Empty stars) */
	letter-spacing: 2px;
}

.srm-stars-outer::before {
	content: "★★★★★";
}

.srm-stars-inner {
	position: absolute;
	top: 0;
	left: 0;
	white-space: nowrap;
	overflow: hidden;
	color: #2E6B5E; /* Pine (Filled stars) */
	width: 0;
}

.srm-stars-inner::before {
	content: "★★★★★";
}

/* Review List specific stars */
.srm-review-stars {
	color: #2E6B5E;
	letter-spacing: 2px;
	font-size: 18px;
}

/* ----------------------------------------------------
 * 4. Reviews List Cards
 * ---------------------------------------------------- */
.srm-reviews-list {
	margin-top: 24px;
}

.srm-review-card {
	padding: 32px 0;
	border-bottom: 1px solid rgba(184, 224, 212, 0.3);
}

.srm-review-card:last-child {
	border-bottom: none;
}

/* Helpful Voting */
.srm-helpful-btn {
	background: transparent;
	border: 1px solid rgba(184, 224, 212, 0.7);
	padding: 6px 14px;
	border-radius: 2px;
	color: rgba(26, 46, 42, 0.7);
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.srm-helpful-btn svg {
	width: 14px;
	height: 14px;
}

.srm-helpful-btn:hover {
	border-color: #2E6B5E;
	color: #2E6B5E;
}

.srm-helpful-btn.voted {
	background-color: rgba(240, 247, 245, 0.8);
	border-color: #2E6B5E;
	color: #2E6B5E;
	pointer-events: none;
}

/* Lightbox Modal */
#srm-lightbox-overlay {
	background-color: rgba(26, 46, 42, 0.85);
	transition: opacity 0.3s ease;
}

/* Submission Form CSS styling */
.srm-submission-container {
	border: 1px solid #B8E0D4;
}

.srm-file-upload-wrapper {
	border: 2px dashed #B8E0D4;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.srm-file-upload-wrapper:hover {
	border-color: #2E6B5E;
	background-color: rgba(240, 247, 245, 0.4);
}

/* ----------------------------------------------------
 * 5. Responsive Styles
 * ---------------------------------------------------- */
@media (max-width: 768px) {
	.srm-summary-card {
		flex-direction: column;
		padding: 24px;
		gap: 24px;
	}

	.srm-overview-col {
		flex: 1;
		border-right: none;
		border-bottom: 1px solid rgba(184, 224, 212, 0.4);
		padding-right: 0;
		padding-bottom: 24px;
	}

	.srm-bars-col {
		width: 100%;
	}
}

/* Custom interactive rating stars in form */
.srm-rating-select-stars .srm-star {
	color: rgba(184, 224, 212, 0.5);
	transition: color 0.2s ease;
}
.srm-rating-select-stars .srm-star.active {
	color: #2E6B5E !important;
}
.srm-rating-select-stars .srm-star.hover {
	color: #2E6B5E !important;
}

.hidden {
	display: none !important;
}

/* ----------------------------------------------------
 * 6. Product Rating Snippet (Below Title)
 * ---------------------------------------------------- */
.srm-rating-snippet-container {
	margin-bottom: 24px;
	display: block;
}

.srm-rating-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
	text-decoration: none !important;
	transition: opacity 0.2s ease;
	cursor: pointer;
}

.srm-rating-link:hover {
	opacity: 0.85;
}

.srm-rating-link:hover .srm-rating-count {
	text-decoration: underline;
}

.srm-rating-label {
	font-family: 'Inter', sans-serif;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #1A2E2A !important; /* Forest */
	line-height: 1 !important;
}

.srm-rating-count {
	font-weight: 400 !important;
	color: rgba(26, 46, 42, 0.6) !important;
	margin-left: 2px;
}
