/**
 * Legacy Styles — migrated from rehub-blankchild/style.css
 *
 * Styles for legacy shortcodes (alert, notice, toggle, accordion, skill)
 * and other elements from old reviews/ratings content.
 *
 * Loaded on: is_singular() only
 *
 * @package MyChooz_Aesthetic
 * @version 0.0.1
 */

/* ==========================================================================
   ALERTS [alert type="notice/warning/success/error/info"]
   ========================================================================== */

.alert,
.alert-notice,
.alert-warning,
.alert-success,
.alert-error,
.alert-info {
	background: var(--mca-surface, #ffffff);
	border-radius: var(--mca-radius, 12px);
	padding: 20px;
	text-align: left;
	margin-bottom: 1.5em;
	box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.alert ul,
.alert-notice ul,
.alert-warning ul,
.alert-success ul,
.alert-error ul,
.alert-info ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.alert li,
.alert-notice li,
.alert-warning li,
.alert-success li,
.alert-error li,
.alert-info li {
	margin-bottom: 0.5em;
}

/* ==========================================================================
   NOTICE [notice]
   ========================================================================== */

.notice {
	background: var(--mca-surface, #ffffff);
	border-radius: var(--mca-radius, 12px);
	padding: 20px;
	text-align: center;
	margin-bottom: 1.5em;
	box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.notice .su-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.notice .su-list li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.notice .su-list a {
	color: var(--mca-link, #1a0dab);
	text-decoration: underline;
	transition: color 0.15s ease;
}

.notice .su-list a:hover {
	color: var(--mca-primary, #e71d1d);
}

/* ==========================================================================
   FIELDSETS (legacy content wrappers)
   ========================================================================== */

fieldset {
	border: 1px solid rgba(0, 0, 0, 0.1);
	margin: 0 0 1.5em;
	padding: 25px;
	max-width: 100%;
	box-sizing: border-box;
}

fieldset .wp-caption,
fieldset figure {
	width: 100% !important;
	max-width: 100% !important;
}

fieldset legend {
	display: block;
	font-weight: bold;
	line-height: 1.5em;
	margin: 0 0 0 -5px;
	padding: 0 5px;
}

.firstlinks {
	border: 1px solid #0099cc;
	margin: 0 0 1.5em;
	padding: 4px 8px 0;
	border-radius: 4px;
}
.firstlinks ul,
.secondlinks ul,
.pricelinks ul {
	margin: 0 0 4px 16px;
}
.firstlinks li,
.secondlinks li,
.pricelinks li {
	margin-bottom: 2px;
}

.secondlinks {
	border: 1px solid #339933;
	margin: 0 0 1.5em;
	padding: 5px 10px 0;
	border-radius: 4px;
}

.pricelinks {
	border: 1px solid #ffc57c73;
	margin: 0 0 1.5em;
	padding: 10px 4px 0;
	border-radius: 4px;
}

.firstlinks .su-list a,
.secondlinks .su-list a,
.pricelinks .su-list a {
	color: var(--mca-link, #1a0dab);
	text-decoration: underline;
	transition: color 0.15s ease;
}

.firstlinks .su-list a:hover,
.secondlinks .su-list a:hover,
.pricelinks .su-list a:hover {
	color: var(--mca-primary, #e71d1d);
}

/* ==========================================================================
   TOGGLE [toggle title="" status="open/closed"]
   ========================================================================== */

.toggle {
	margin-bottom: 1em;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
}

.toggle-title {
	padding: 12px 15px;
	background: #f5f5f5;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	transition: background 0.2s ease;
}

.toggle-title:hover {
	background: #eee;
}

.toggle-title::after {
	content: '+';
	position: absolute;
	right: 15px;
	font-size: 18px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.toggle-opened .toggle-title::after {
	content: '−';
}

.toggle-holder {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.toggle-opened .toggle-holder {
	max-height: 2000px;
}

.toggle-box {
	padding: 15px;
}

/* ==========================================================================
   SKILL PROGRESS BAR [skill progress="90"]
   ========================================================================== */

.skill {
	margin-bottom: 1.5em;
}

.skill-bar {
	height: 24px;
	background: #f0f0f0;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	margin-bottom: 8px;
}

.skill-bar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: var(--progress, 0%);
	background: linear-gradient(90deg, #4a6fa1, #65a854);
	transition: width 1s ease;
}

.skill-label {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #666;
}

.skill-label span {
	font-weight: 600;
	color: #333;
}

/* Animate on scroll */
.skill-scroll[data-progress]::before {
	width: 0;
}

.skill-scroll.animated::before {
	width: attr(data-progress);
}

/* ==========================================================================
   ACCORDION [accordion]
   ========================================================================== */

.accordion {
	margin-bottom: 1em;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 15px;
	background: #fafafa;
}

/* ==========================================================================
   WPSM_BOX [wpsm_box type="green/red/gray/..."]
   ========================================================================== */

.wpsm_box {
	box-sizing: border-box;
	max-width: 100%;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 30px;
	line-height: 1.6;
	text-align: left;
}

.wpsm_box ul,
.wpsm_box ol {
	margin: 0 0 0 20px;
}

.wpsm_box ul li {
	list-style: disc;
}

.wpsm_box li {
	margin: 0 0 5px 0;
}

.wpsm_box.nonefloat_box {
	float: none;
}

/* Box types */
.wpsm_box.gray_type {
	color: #666;
	background: #f9f9f9;
}

.wpsm_box.red_type {
	color: #de5959;
	background: #ffe9e9;
}

.wpsm_box.green_type {
	background: var(--mca-surface, #ffffff);
	border: 2px solid var(--mca-success, #10b981);
	border-radius: var(--mca-radius, 12px);
	padding: 20px;
	text-align: center;
}

.wpsm_box.green_type .su-list li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.wpsm_box.green_type a {
	color: var(--mca-link, #1a0dab);
	text-decoration: underline;
	transition: color 0.15s ease;
}

.wpsm_box.green_type a:hover {
	color: var(--mca-primary, #e71d1d);
}

.wpsm_box.warning_type {
	background-color: #fff7f4;
	color: #a61818;
}

.wpsm_box.standart_type {
	background-color: #f9f9f9;
}

.wpsm_box.info_type {
	background-color: #f0ffde;
}

.wpsm_box.error_type {
	background-color: #ffd3d3;
	color: #dc0000;
}

.wpsm_box.download_type {
	background-color: #e8f9ff;
}

.wpsm_box.note_type {
	background-color: #fffce5;
}

/* Icons for box types (optional, using FontAwesome if available) */
.wpsm_box.standart_type i,
.wpsm_box.info_type i,
.wpsm_box.warning_type i,
.wpsm_box.error_type i,
.wpsm_box.download_type i,
.wpsm_box.note_type i {
	display: none; /* Hide by default, ReHub uses icon font we don't have */
}

/* ==========================================================================
   REVIEW SCORE BOX [review] — Variant A Compact Card
   ========================================================================== */

/* Score color classes */
.rv-sc-1, .rv-sc-2 { --rv-bar: #940000; }
.rv-sc-3, .rv-sc-4 { --rv-bar: #cc0000; }
.rv-sc-5, .rv-sc-6 { --rv-bar: #f59e0b; }
.rv-sc-7, .rv-sc-8 { --rv-bar: #10b981; }
.rv-sc-9, .rv-sc-10 { --rv-bar: #059669; }

.rv-box {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 24px;
}

.rv-box__top {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px;
}

.rv-box__score {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	background: var(--rv-bar, #10b981);
}

.rv-box__info {
	flex: 1;
	min-width: 0;
}

.rv-box__heading {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 4px;
}

.rv-box__summary {
	font-size: 14px;
	color: #888;
	line-height: 1.5;
}

.rv-box__label {
	font-size: 11px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-top: 4px;
}

/* Criteria bars */
.rv-box__criteria {
	padding: 0 24px 16px;
	width: 100%;
	box-sizing: border-box;
}

.rv-box__bar {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.rv-box__bar-name {
	font-size: 14px;
	color: #1a1a1a;
}

.rv-box__bar-score {
	font-size: 14px;
	font-weight: 600;
	min-width: 28px;
	text-align: right;
}

.rv-box__bar-track {
	grid-column: 1 / -1;
	height: 4px;
	background: #f0f0f0;
	border-radius: 2px;
	overflow: hidden;
	margin-top: -4px;
}

.rv-box__bar-fill {
	height: 100%;
	border-radius: 2px;
	background: var(--rv-bar, #10b981);
}

/* Pros / Cons */
.rv-box__proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 16px 24px 24px;
	border-top: 1px solid #f0f0f0;
}

.rv-box__pc-title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-bottom: 8px;
}

.rv-box__pc-title--pro { color: #10b981; }
.rv-box__pc-title--con { color: #ef4444; }

.rv-box__pc-list {
	list-style: none;
	font-size: 14px;
	line-height: 1.6;
	padding: 0;
	margin: 0;
}

.rv-box__pc-list li {
	padding-left: 18px;
	position: relative;
	margin-bottom: 4px;
}

.rv-box__pc-list li::before {
	position: absolute;
	left: 0;
	font-size: 12px;
	font-weight: 700;
}

.rv-box__pc-list--pro li::before {
	content: "\2713";
	color: #10b981;
}

.rv-box__pc-list--con li::before {
	content: "\2717";
	color: #ef4444;
}

@media screen and (max-width: 600px) {
	.rv-box__proscons {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   [ALIEXPRESS] SHORTCODE — Icon Replaces Bullet
   ========================================================================== */

.ali-wrapper ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ali-wrapper ul li {
	position: relative;
	padding-left: 1.5em;
	margin-bottom: 0.5em;
}

.ali-wrapper ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	background-color: var(--mca-primary, #e71d1d);
	mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2L3 6v14c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V6l-3-4H6zM3 6h18M16 10a4 4 0 0 1-8 0"/></svg>');
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2L3 6v14c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V6l-3-4H6zM3 6h18M16 10a4 4 0 0 1-8 0"/></svg>');
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

/* ==========================================================================
   GREENSHIFT ICON LIST (gspb_iconsList)
   ========================================================================== */

.gspb_iconsList {
	margin-block-start: 0;
}
.gspb_iconsList__item {
	display: flex;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid var(--mca-border, #e5e7eb);
	line-height: 1.6;
}
.gspb_iconsList__item:last-child {
	border-bottom: none;
}
.gspb_iconsList__item > svg {
	flex-shrink: 0;
	margin-top: 3px;
}
.gspb_iconsList__item__text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--mca-text, #1a1a1a);
}
.gspb_iconsList__item__text a {
	color: var(--mca-link, #1a0dab);
	text-decoration: underline;
}
.gspb_iconsList__item__text a:hover {
	color: var(--mca-primary, #e71d1d);
}

/* ==========================================================================
   GREENSHIFT ROW / COLUMNS (gspb_row)
   ========================================================================== */

.gspb_row__content {
	display: flex;
	gap: 24px;
}
.gspb_row__col--6 {
	flex: 1 1 0;
	min-width: 0;
}
@media (max-width: 768px) {
	.gspb_row__content {
		flex-direction: column;
		gap: 16px;
	}
}

/* ==========================================================================
   GREENSHIFT TOGGLER (gs-contenttoggler)
   ========================================================================== */

.gs-contenttoggler {
	position: relative;
	margin-bottom: 24px;
}
.gs-toggler-wrapper {
	overflow: hidden;
	position: relative;
	transition: height 0.35s ease;
}
.gs-toggler-wrapper.gs-expanded {
	height: auto !important;
}
.gs-tgl-trigger {
	display: block;
	text-align: center;
	cursor: pointer;
	padding: 8px 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--mca-primary, #e71d1d);
}
.gs-expanded .gs-tgl-trigger {
	position: relative !important;
	bottom: auto !important;
	z-index: 2;
	margin-top: 8px;
}
.gs-tgl-trigger:hover {
	opacity: 0.8;
}
.gs-tgl-grad {
	pointer-events: none;
}
.gs-expanded .gs-tgl-grad {
	display: none !important;
}

/* Greenshift image */
.gspb_image {
	text-align: center;
}
.gspb_image img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   GREENSHIFT TABS (gspb-tabs)
   ========================================================================== */

.gspb-tabs {
	margin-bottom: 24px;
}
.t-btn-container {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid var(--mca-border, #e5e7eb);
	margin-bottom: 16px;
}
.t-btn {
	padding: 8px 16px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	font-size: 14px;
	color: var(--mca-muted, #6b7280);
	transition: color 0.15s ease, border-color 0.15s ease;
}
.t-btn:hover {
	color: var(--mca-text, #1a1a1a);
}
.t-btn.active {
	color: var(--mca-text, #1a1a1a);
	border-bottom-color: var(--mca-primary, #e71d1d);
	font-weight: 500;
}
.tabtitlelabel {
	text-align: left;
}
.tabsubtitle {
	font-size: 12px;
	color: var(--mca-muted, #6b7280);
	font-weight: 400;
}
.t-panel-container {
	overflow: hidden;
}
.t-panel {
	display: none;
}
.t-panel.active {
	display: block;
}

/* ==========================================================================
   GREENSHIFT TOC — Autolist Variant (gs-autolist)
   ========================================================================== */

.wp-block-greenshift-blocks-toc {
	background: var(--mca-surface, #ffffff);
	border: 1px solid var(--mca-border, #e5e7eb);
	border-radius: var(--mca-radius, 12px);
	padding: 24px;
	margin-bottom: 24px;
}

.gs-autolist {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.gs-autolist-item {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--mca-border, #e5e7eb);
}

.gs-autolist-item:last-child {
	border-bottom: none;
}

.gs-autolist-item.gs_sub_heading {
	padding-left: 28px;
}

.gs-autolist-number {
	flex-shrink: 0;
	min-width: 22px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mca-muted, #6b7280);
	text-align: right;
}

.gs-autolist-title {
	font-size: 15px;
	line-height: 1.5;
}

.gs-autolist-title a.gs-scrollto {
	color: var(--mca-link, #1a0dab);
	text-decoration: none;
	transition: color 0.15s ease;
}

.gs-autolist-title a.gs-scrollto:hover {
	color: var(--mca-primary, #e71d1d);
	text-decoration: underline;
}

.gs_sub_heading .gs-autolist-number {
	font-size: 12px;
	color: var(--mca-muted, #9ca3af);
}

.gs_sub_heading .gs-autolist-title {
	font-size: 14px;
}

@media (max-width: 768px) {
	.wp-block-greenshift-blocks-toc {
		padding: 16px;
		border-radius: 0;
		margin-left: -16px;
		margin-right: -16px;
		border-left: none;
		border-right: none;
	}
}

/* Legacy Greenshift TOC: sticky-вариант и мобильный 3-точечный handle требовали
   JS/CSS от Greenshift плагина. Плагин отключён — прячем, главный .gs-autolist
   сверху статьи достаточен. */
.gs-section-sticky-nav,
.gs-toc-mobile {
	display: none;
}
