/**
 * GS WhatsApp Group Submitter Pro Add-on
 * Single Group & Channel Page Stylesheet
 */

:root {
	--wgs-pro-green: #25D366;
	--wgs-pro-green-dark: #128C7E;
	--wgs-pro-green-hover: #1ebd5a;
	--wgs-pro-slate-900: #0f172a;
	--wgs-pro-slate-700: #334155;
	--wgs-pro-slate-500: #64748b;
	--wgs-pro-slate-100: #f1f5f9;
	--wgs-pro-border: #e2e8f0;
	--wgs-pro-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.wgs-single-container {
	max-width: 980px;
	margin: 24px auto 48px;
	padding: 0 16px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	color: var(--wgs-pro-slate-900);
}

/* Breadcrumbs */
.wgs-single-breadcrumbs {
	font-size: 13px;
	color: var(--wgs-pro-slate-500);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.wgs-single-breadcrumbs a {
	color: #0284c7;
	text-decoration: none;
}

.wgs-single-breadcrumbs a:hover {
	text-decoration: underline;
}

.wgs-bc-sep {
	color: #cbd5e1;
}

.wgs-bc-current {
	color: var(--wgs-pro-slate-700);
	font-weight: 600;
	font-family: monospace;
}

/* Main Profile Card */
.wgs-single-card {
	background: #ffffff;
	border: 1px solid var(--wgs-pro-border);
	border-radius: 16px;
	padding: 28px;
	box-shadow: var(--wgs-pro-shadow);
	margin-bottom: 24px;
}

.wgs-single-header {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.wgs-single-logo-wrap {
	position: relative;
	width: 96px;
	height: 96px;
	min-width: 96px;
	border-radius: 50%;
	border: 3px solid var(--wgs-pro-green);
	padding: 2px;
	background: #ffffff;
	box-sizing: border-box;
}

.wgs-single-logo {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.wgs-single-verified-badge {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 26px;
	height: 26px;
	background: var(--wgs-pro-green);
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 900;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.wgs-single-info {
	flex: 1;
	min-width: 260px;
}

.wgs-single-badges {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.wgs-sbadge {
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 99px;
	letter-spacing: 0.02em;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.wgs-sbadge--type {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.wgs-sbadge--cat {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.wgs-sbadge--clicks {
	background: #f8fafc;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.wgs-single-title {
	font-size: 26px;
	font-weight: 800;
	color: var(--wgs-pro-slate-900);
	margin: 0 0 8px;
	line-height: 1.3;
}

.wgs-single-meta {
	font-size: 13px;
	color: var(--wgs-pro-slate-500);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.wgs-single-meta code {
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
	color: #0369a1;
	border: 1px solid #cbd5e1;
}

.wgs-meta-dot {
	color: #cbd5e1;
}

/* CTA Buttons */
.wgs-single-cta-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--wgs-pro-border);
	flex-wrap: wrap;
}

.wgs-single-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 24px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	box-sizing: border-box;
}

.wgs-single-btn--join {
	background: linear-gradient(135deg, var(--wgs-pro-green), var(--wgs-pro-green-dark));
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.wgs-single-btn--join:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
	color: #ffffff !important;
}

.wgs-single-btn--copy {
	background: #f8fafc;
	color: #334155;
	border: 1px solid #cbd5e1;
}

.wgs-single-btn--copy:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.wgs-single-notice {
	margin-top: 18px;
	padding: 12px 16px;
	background: #fffbeb;
	border: 1px solid #fef3c7;
	border-radius: 8px;
	font-size: 12.5px;
	color: #92400e;
	line-height: 1.5;
}

/* Interactive Features Grid */
.wgs-single-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 32px;
}

@media (max-width: 860px) {
	.wgs-single-features-grid {
		grid-template-columns: 1fr;
	}
}

.wgs-feature-card {
	background: #ffffff;
	border: 1px solid var(--wgs-pro-border);
	border-radius: 14px;
	padding: 22px;
	box-shadow: var(--wgs-pro-shadow);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.wgs-feature-card__header h3,
.wgs-block-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--wgs-pro-slate-900);
	margin: 0 0 6px;
}

.wgs-feature-card__header p {
	font-size: 12.5px;
	color: var(--wgs-pro-slate-500);
	margin: 0 0 16px;
	line-height: 1.45;
}

/* QR Code Section */
.wgs-qr-image-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 10px 0 14px;
	background: #f8fafc;
	padding: 16px;
	border-radius: 12px;
	border: 1px dashed #cbd5e1;
}

.wgs-qr-img {
	width: 160px;
	height: 160px;
	object-fit: contain;
	display: block;
}

.wgs-qr-download-link {
	display: block;
	text-align: center;
	font-size: 12.5px;
	font-weight: 600;
	color: #0284c7;
	text-decoration: none;
	margin-top: 6px;
}

.wgs-qr-download-link:hover {
	text-decoration: underline;
}

/* Vote Buttons (Like / Dislike) */
.wgs-votes-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.wgs-vote-btn {
	flex: 1;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wgs-vote-btn:hover {
	background: #e2e8f0;
}

.wgs-vote-btn.wgs-voted-like {
	background: #dcfce7 !important;
	border-color: #86efac !important;
	color: #166534 !important;
}

.wgs-vote-btn.wgs-voted-dislike {
	background: #fee2e2 !important;
	border-color: #fca5a5 !important;
	color: #991b1b !important;
}

.wgs-vote-count {
	background: rgba(0, 0, 0, 0.06);
	padding: 2px 7px;
	border-radius: 99px;
	font-size: 11.5px;
}

.wgs-vote-feedback,
.wgs-rating-feedback,
.wgs-report-feedback {
	font-size: 12px;
	margin: 8px 0 0;
	min-height: 18px;
	color: #166534;
	font-weight: 600;
}

/* Star Rating Section */
.wgs-rating-widget {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
	flex-wrap: wrap;
}

.wgs-rating-stars {
	display: flex;
	gap: 4px;
}

.wgs-star-btn {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #cbd5e1;
	cursor: pointer;
	padding: 0;
	transition: color 0.15s ease, transform 0.1s ease;
}

.wgs-star-btn:hover,
.wgs-star-btn.wgs-star--hover {
	color: #f59e0b;
	transform: scale(1.15);
}

.wgs-star-btn.wgs-star--active {
	color: #f59e0b;
}

.wgs-rating-score-display {
	font-size: 13.5px;
	color: #475569;
}

.wgs-rating-score-display strong {
	font-size: 16px;
	color: #0f172a;
}

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

/* Report Form */
.wgs-single-report-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wgs-report-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 4px;
}

.wgs-report-field select,
.wgs-report-field textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 12.5px;
	background: #f8fafc;
	box-sizing: border-box;
	font-family: inherit;
}

.wgs-report-field select:focus,
.wgs-report-field textarea:focus {
	border-color: #0284c7;
	outline: none;
	background: #ffffff;
}

.wgs-single-btn--submit-report {
	height: 38px;
	background: #ffffff;
	border: 1px solid #fca5a5;
	color: #ef4444;
	font-size: 13px;
	font-weight: 700;
	border-radius: 6px;
}

.wgs-single-btn--submit-report:hover {
	background: #fef2f2;
}

/* Related Groups Section */
.wgs-related-section {
	margin-top: 40px;
}

.wgs-related-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 12px;
	flex-wrap: wrap;
	gap: 10px;
}

.wgs-related-header h2 {
	font-size: 18px;
	font-weight: 800;
	color: var(--wgs-pro-slate-900);
	margin: 0;
}

.wgs-related-see-all {
	font-size: 13px;
	font-weight: 600;
	color: #0284c7;
	text-decoration: none;
}

.wgs-related-see-all:hover {
	text-decoration: underline;
}

.wgs-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

@media (max-width: 900px) {
	.wgs-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.wgs-related-grid {
		grid-template-columns: 1fr;
	}
}

.wgs-related-card {
	background: #ffffff;
	border: 1px solid var(--wgs-pro-border);
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wgs-related-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.wgs-related-logo-link {
	display: block;
	margin-bottom: 10px;
}

.wgs-related-logo {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--wgs-pro-green);
	display: block;
}

.wgs-related-body {
	flex: 1;
	margin-bottom: 14px;
	width: 100%;
}

.wgs-related-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wgs-related-title a {
	color: var(--wgs-pro-slate-900);
	text-decoration: none;
}

.wgs-related-title a:hover {
	color: #0284c7;
}

.wgs-related-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.wgs-sbadge--type-small {
	font-size: 10.5px;
	padding: 1px 6px;
	background: #f1f5f9;
	color: #475569;
	border-radius: 4px;
}

.wgs-related-clicks {
	font-size: 11px;
	color: #94a3b8;
}

.wgs-related-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.wgs-btn-details {
	flex: 1;
	height: 32px;
	line-height: 30px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
	background: #f8fafc;
	text-align: center;
	box-sizing: border-box;
}

.wgs-btn-details:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.wgs-btn-join-sm {
	flex: 1;
	height: 32px;
	line-height: 32px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #ffffff !important;
	background: var(--wgs-pro-green);
	text-decoration: none;
	text-align: center;
	box-sizing: border-box;
}

.wgs-btn-join-sm:hover {
	background: var(--wgs-pro-green-hover);
}
