/* ==========================================================================
   آزمون‌های روانشناختی عرفان — frontend styles
   The outer wrapper is intentionally "naked" so Elementor / page builders can
   apply the containing frame, padding, border-radius, background etc.
   Only inner interactive elements keep their own styling.
   ========================================================================== */

.alpha-pm-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	color: #f8fafc;
	font-family: var(--alpha-pm-font-regular, inherit);
}

.alpha-pm-wrap *,
.alpha-pm-wrap *::before,
.alpha-pm-wrap *::after {
	box-sizing: border-box;
}

.alpha-pm-wrap [hidden] {
	display: none !important;
}

/* Custom intro (always visible, even after results). No outer chrome. */
.alpha-pm-intro {
	margin: 0 0 18px;
	animation: alphaFadeUp .5s ease both;
	color: #dcfff5b3;
}

/* Form and results containers are transparent — Elementor frames them. */
.alpha-pm-form-card,
.alpha-pm-results {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	box-shadow: none;
	animation: alphaFadeUp .5s ease both;
}

.alpha-pm-results {
	margin-top: 18px;
}

.alpha-pm-title {
	margin: 0 0 16px;
	font-size: 1.2rem;
	font-family: var(--alpha-pm-font-bold, inherit);
	font-weight: 700;
	color: #f8fafc
}

/* ---------------- Welcome / Login gate ---------------- */
.alpha-pm-welcome,
.alpha-pm-login-gate {
	background: linear-gradient(145deg, rgba(20, 61, 57, 0.45), rgba(10, 30, 28, 0.7));
	border: 1px solid rgba(152, 234, 224, 0.22);
	border-radius: 14px;
	padding: 16px;
	margin: 12px 0;
	box-shadow: inset 0 1px 0 rgba(222, 255, 251, 0.08), 8px 8px 18px rgba(3, 11, 11, 0.45);
}

.alpha-pm-welcome-message {
	margin-bottom: 12px;
	line-height: 1.9;
	color: #dcfff5b3;
}

.alpha-pm-welcome-message p:first-child { margin-top: 0; }
.alpha-pm-welcome-message p:last-child  { margin-bottom: 0; }

.alpha-pm-welcome-actions {
	display: flex;
	justify-content: flex-end;
}

/* ---------------- Progress ---------------- */
.alpha-pm-progress {
	width: 100%;
	height: 10px;
	background: rgba(15, 35, 33, 0.55);
	border: 1px solid rgba(141, 211, 203, 0.22);
	border-radius: 999px;
	overflow: hidden;
	margin: 10px 0 16px;
}

.alpha-pm-progress-bar {
	height: 100%;
	width: 0;
	--main1: #2ea77f;
    --main2: #1c534d;
    background: linear-gradient(145deg, var(--main1), var(--main2));
	//background: linear-gradient(90deg, #1c534d 0%, #2d877e 45%, #6be6d8 100%);
	box-shadow: 0 0 12px rgba(107, 230, 216, 0.45);
	transition: width 0.28s ease;
}

/* ---------------- Questions ---------------- */
.alpha-pm-question-meta {
	margin-top: 4px;
	font-size: 0.85rem;
	color: #dcfff5b3;
}

.alpha-pm-question-text {
	font-size: 1.05rem;
	line-height: 1.9;
	margin: 12px 0 14px;
	color: #dcfff5b3;
}

.alpha-pm-options {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.alpha-pm-option input {
	display: none;
}

.alpha-pm-option span {
	display: block;
	padding: 10px;
	text-align: center;
	color: #dcfff5b3;
	border-radius: 10px;
	background: rgba(11, 23, 23, 0.65);
	border: 1px solid rgba(134, 194, 187, 0.26);
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow: inset 1px 1px 0 rgba(189, 255, 248, 0.07), inset -1px -1px 0 rgba(0, 0, 0, 0.34);
}

.alpha-pm-option input:checked + span {
	border-color: #6be6d8;
	color: #c3fff8;
	box-shadow: 0 0 0 1px rgba(107, 230, 216, 0.45), 0 0 20px rgba(28, 83, 77, 0.55);
}

.alpha-pm-options--labeled {
	grid-template-columns: 1fr;
	gap: 10px;
}

.alpha-pm-option--labeled span {
	text-align: right;
	padding: 12px 14px;
	line-height: 1.6;
	font-size: 0.92rem;
}

.alpha-pm-style-badge-wrap {
	margin: 0 0 16px;
	text-align: center;
}

.alpha-pm-style-badge {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	border: 1px solid rgba(139, 210, 201, 0.35);
	background: rgba(9, 28, 27, 0.72);
	color: #dcfff5;
}

.alpha-pm-style-badge--secure {
	border-color: rgba(107, 230, 216, 0.55);
	box-shadow: 0 0 18px rgba(28, 83, 77, 0.45);
}

.alpha-pm-style-badge--anxious {
	border-color: rgba(255, 170, 90, 0.55);
	color: #ffe8cc;
}

.alpha-pm-style-badge--avoidant {
	border-color: rgba(160, 170, 190, 0.55);
	color: #e8edf5;
}

.alpha-pm-style-badge--mixed {
	border-color: rgba(190, 150, 255, 0.45);
	color: #f0e8ff;
}

.alpha-pm-style-badge-prefix {
	margin-left: 6px;
	font-weight: 500;
	opacity: 0.92;
}

.alpha-pm-style-badge-value {
	font-size: 1.05em;
}

.alpha-pm-results-guide {
	margin: 0 0 18px;
}

.alpha-pm-style-breakdown {
	display: grid;
	gap: 12px;
	margin: 16px 0 4px;
}

.alpha-pm-style-row {
	background: rgba(9, 28, 27, 0.66);
	border: 1px solid rgba(139, 210, 201, 0.22);
	border-radius: 10px;
	padding: 12px;
}

.alpha-pm-style-row-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	color: #dcfff5b3;
}

.alpha-pm-style-bar {
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.alpha-pm-style-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, rgba(107, 230, 216, 0.85), rgba(28, 120, 110, 0.95));
}

.alpha-pm-help {
	font-size: 0.82rem;
	color: #dcfff5b3;
	margin-top: 10px;
}

/* ---------------- Action buttons ---------------- */
.alpha-pm-actions,
.alpha-pm-results-actions {
	display: flex;
	gap: 12px;
	margin-top: 18px;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.alpha-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 140px;
	border: none;
	border-radius: 12px;
	padding: 11px 18px;
	cursor: pointer;
	font-weight: 600;
	font-size: .95rem;
	font-family: var(--alpha-pm-font-bold, inherit);
	transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
	box-shadow: 6px 6px 14px rgba(4, 15, 14, 0.48), -4px -4px 10px rgba(70, 152, 142, 0.18);
}

.alpha-btn:hover:not(:disabled) {
	transform: translateY(-1px);
}

.alpha-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.alpha-btn-secondary {
	background: linear-gradient(145deg, #132a28, #0b1d1c);
	color: #d1fdf4;
	border: 1px solid rgba(141, 211, 203, 0.3);
}

.alpha-btn-primary {
	//background: linear-gradient(90deg, #1c534d, #2d877e 45%, #6be6d8);
	//color: #041210;
	//border: 1px solid rgba(178, 255, 247, 0.38);

    --main1: #2ea77f;
    --main2: #1c534d;
    background: linear-gradient(145deg, var(--main1), var(--main2));
    border-radius: 15px;
    border: none;
    color: #fff;
    //padding: 2px 6px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(46, 167, 127, 0.4), 0 0 20px rgba(46, 167, 127, 0.2);
    transition: all 0.3s ease;



}

.alpha-pm-btn-arrow {
	font-size: 1.1rem;
	line-height: 1;
}

/* ---------------- Loading ---------------- */
.alpha-pm-loading {
	margin-top: 16px;
	color: #2dd4bf;
	display: flex;
	align-items: center;
	gap: 8px;
}

.alpha-pm-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,.2);
	border-top-color: #6be6d8;
	border-radius: 50%;
	animation: alphaSpin .9s linear infinite;
}

/* ---------------- Results ---------------- */
.alpha-pm-chart-wrap {
	position: relative;
	width: 100%;
	max-width: 760px;
	margin: 0 auto 20px;
	height: 360px;
}

.alpha-pm-chart-wrap--bar {
	max-width: 900px;
	height: 640px;
}

.alpha-pm-chart-wrap canvas {
	width: 100% !important;
	height: 100% !important;
}

@media (max-width: 640px) {
	.alpha-pm-chart-wrap { height: 280px; }
	.alpha-pm-chart-wrap--bar { height: 520px; }
}

.alpha-pm-score-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.alpha-pm-high-items {
	margin: 20px 0;
	padding: 16px 18px;
	border-radius: 12px;
	border: 1px solid rgba(139, 210, 201, 0.22);
	background: rgba(9, 28, 27, 0.55);
	text-align: right;
	direction: rtl;
}

.alpha-pm-high-items-title {
	margin: 0 0 12px;
	font-size: 1.05rem;
	color: #6be6d8;
}

.alpha-pm-high-items-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 360px;
	overflow: auto;
}

.alpha-pm-high-item {
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(4, 18, 16, 0.55);
	border: 1px solid rgba(139, 210, 201, 0.14);
}

.alpha-pm-high-item-meta {
	display: block;
	font-size: 0.82rem;
	color: #9ca3af;
	margin-bottom: 4px;
}

.alpha-pm-high-item-text {
	display: block;
	font-size: 0.92rem;
	line-height: 1.7;
	color: #dcfff5;
}

.alpha-pm-score-item {
	background: rgba(9, 28, 27, 0.66);
	border: 1px solid rgba(139, 210, 201, 0.22);
	padding: 12px;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-shadow: inset 0 1px 0 rgba(224, 255, 251, 0.06), 6px 6px 16px rgba(3, 13, 12, 0.42);
}

.alpha-pm-score-item strong {
	font-size: 1.25rem;
	color: #9ffcf1;
	font-family: var(--alpha-pm-font-bold, inherit);
}

.alpha-pm-recommendations {
	margin-top: 18px;
	display: grid;
	gap: 12px;
}

.alpha-pm-rec-item {
	background: rgba(7, 25, 24, 0.7);
	border: 1px solid rgba(128, 198, 190, 0.22);
	border-radius: 12px;
	padding: 14px;
	animation: alphaFadeUp .5s ease both;
	box-shadow: 8px 8px 18px rgba(1, 10, 10, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	line-height: 1.9;
}

.alpha-pm-rec-item > *:first-child { margin-top: 0; }
.alpha-pm-rec-item > *:last-child  { margin-bottom: 0; }

.alpha-pm-rec-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	line-height: 1.4;
	color: #9ca3af;
	background: rgba(10, 40, 38, 0.55);
	border: 1px solid rgba(128, 198, 190, 0.18);
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
	letter-spacing: 0.02em;
}
.alpha-pm-rec-date span { color: #7ff3e6; }
.alpha-pm-rec-date time { font-family: var(--alpha-pm-font-regular, inherit); }

.alpha-pm-rec-item img,
.alpha-pm-rec-item video,
.alpha-pm-rec-item audio,
.alpha-pm-rec-item iframe {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.alpha-pm-link {
	color: #7ff3e6;
	text-decoration: underline;
}

/* ---------------- WooCommerce account menu ---------------- */
.woocommerce-MyAccount-navigation-link.alpha-pm-account-menu-item a::before {
	font-family: dashicons;
	content: "\f184";
	margin-right: 8px;
}

/* ---------------- Animations ---------------- */
.alpha-pm-reveal { animation: alphaReveal .45s ease both; }

@keyframes alphaSpin { to { transform: rotate(360deg); } }

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

@keyframes alphaReveal {
	from { opacity: 0; transform: scale(.98); }
	to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
	.alpha-pm-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.alpha-pm-options--labeled { grid-template-columns: 1fr; }
	.alpha-pm-score-grid { grid-template-columns: 1fr; }
	.alpha-btn { min-width: 120px; flex: 1; }
}



.alpha-pm-user-table th

 {

    color: #dcfff5b3;
}



.alpha-pm-user-table td

 {

    color: #dcfff5b3;
}




/* AJAX Lazy Loader Styles */
.alpha-pm-lazy-shortcode {
    width: 100vw;
    max-width: 100%;
    display: block;
}
.alpha-pm-lazy-shortcode .alpha-pm-skeleton-loader {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: alphaPwaSkeletonLoading 1.5s infinite;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
@keyframes alphaPwaSkeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-color-scheme: light) {
    .alpha-pm-lazy-shortcode .alpha-pm-skeleton-loader {
        background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
        border: 1px solid rgba(0,0,0,0.05);
    }
}
