/*!/wp-content/plugins/wp-split-generator/assets/split-generator.css*/

/* ── Wrap ── */
.el-split-wrap {
	font-family: 'Sora', sans-serif;
	max-width: 1000px;
	margin: 0 auto;
}

/* ── Admin notice (logged-in admins only) ── */
.el-split-admin-notice {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 20px;
	color: #333;
}

/* ── Form card ── */
.el-split-form {
	background: #111111;
	border-radius: 16px;
	overflow: hidden;
}

.el-split-header {
	background: #111111;
	padding: 28px 32px 20px;
	border-bottom: 1px solid #222;
}

.el-split-title {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 4px;
	line-height: 1.2;
}

.el-split-sub {
	font-size: 13px;
	color: #888;
	margin: 0;
}

.el-split-body {
	padding: 24px 32px;
}

/* ── Sections ── */
.el-split-section {
	margin-bottom: 22px;
}

.el-split-step-label {
	font-size: 11px;
	font-weight: 600;
	color: #FF6A00;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 10px;
}

/* ── Chips ── */
.el-split-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.el-chip {
	padding: 8px 16px;
	border-radius: 8px;
	border: 1px solid #2a2a2a;
	background: #1a1a1a;
	color: #aaa;
	font-size: 13px;
	font-family: 'Sora', sans-serif;
	cursor: pointer;
	font-weight: 500;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
	line-height: 1;
}

.el-chip:hover {
	border-color: #FF6A00;
	color: #FF6A00;
}

.el-chip.active {
	background: #FF6A00;
	border-color: #FF6A00;
	color: #fff;
}

/* Days chips — square */
.el-split-days .el-chip {
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
}

/* ── Divider ── */
.el-split-divider {
	height: 1px;
	background: #1e1e1e;
	margin: 4px 0 22px;
}

/* ── Generate button ── */
.el-split-generate-btn {
	width: 100%;
	padding: 14px;
	background: #FF6A00;
	border: none;
	border-radius: 10px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	font-family: 'Sora', sans-serif;
	cursor: pointer;
	letter-spacing: 0.02em;
	transition: background 0.15s;
}

.el-split-generate-btn:hover {
	background: #e05a00;
}

.el-split-generate-btn:disabled {
	background: #555;
	cursor: not-allowed;
}

/* ── Error ── */
.el-split-error {
	margin-top: 12px;
	padding: 10px 14px;
	background: rgba(220, 50, 50, 0.1);
	border: 1px solid rgba(220, 50, 50, 0.3);
	border-radius: 8px;
	color: #ff6b6b;
	font-size: 13px;
}

/* ── Loading ── */
.el-split-loading {
	background: #111111;
	border-radius: 16px;
	padding: 60px 32px;
	text-align: center;
	color: #888;
	font-size: 14px;
}

.el-split-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #2a2a2a;
	border-top-color: #FF6A00;
	border-radius: 50%;
	animation: el-spin 0.7s linear infinite;
	margin: 0 auto 16px;
}

@keyframes el-spin {
	to { transform: rotate(360deg); }
}

/* ── Result ── */
.el-split-result {
	background: #111111;
	border-radius: 16px;
	overflow: hidden;
}

.el-split-result-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 32px 16px;
	border-bottom: 1px solid #1e1e1e;
}

.el-split-result-label {
	font-size: 11px;
	font-weight: 700;
	color: #FF6A00;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0;
}

.el-split-back-btn {
	background: transparent;
	border: 1px solid #2a2a2a;
	border-radius: 6px;
	color: #666;
	font-size: 12px;
	font-family: 'Sora', sans-serif;
	font-weight: 600;
	padding: 6px 12px;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.el-split-back-btn:hover {
	color: #ccc;
	border-color: #444;
}

/* ── Week grid ── */
.el-split-week-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 10px;
	padding: 20px 32px;
}

.el-split-day-card {
	background: #1a1a1a;
	border: 1px solid #252525;
	border-radius: 10px;
	padding: 14px;
}

.el-split-day-card--rest {
	opacity: 0.45;
}

.el-day-name {
	font-size: 10px;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 6px;
}

.el-day-focus {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 10px;
	line-height: 1.3;
}

.el-day-exercises {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 12px;
}

.el-day-exercise {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px solid #1e1e1e;
}

.el-day-exercise:last-child {
	border-bottom: none;
}

.el-day-exercise a {
	font-size: 13px;
	color: #ccc;
	text-decoration: none;
	line-height: 1.3;
	flex: 1;
	min-width: 0;
}

.el-day-exercise a:hover {
	color: #FF6A00;
}

.el-ex-scheme {
	font-size: 11px;
	font-weight: 600;
	color: #FF6A00;
	white-space: nowrap;
	background: rgba(255,106,0,0.1);
	padding: 2px 7px;
	border-radius: 4px;
	flex-shrink: 0;
}

.el-day-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.el-tag {
	font-size: 10px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 4px;
}

.el-tag--orange { background: rgba(255,106,0,0.15); color: #FF6A00; }
.el-tag--green  { background: rgba(29,158,117,0.15); color: #1D9E75; }
.el-tag--blue   { background: rgba(59,139,212,0.15); color: #3B8BD4; }
.el-tag--amber  { background: rgba(239,159,39,0.15); color: #EF9F27; }
.el-tag--gray   { background: #222; color: #555; }

/* ── Disclaimer ── */
.el-split-disclaimer {
	margin: 0 32px 12px;
	padding: 12px 16px;
	background: #0a0a0a;
	border: 1px solid #1a1a1a;
	border-radius: 8px;
}

.el-split-disclaimer p {
	font-size: 11px;
	color: #444;
	line-height: 1.6;
	margin: 0;
}

/* ── Rationale ── */
.el-split-rationale {
	margin: 0 32px 16px;
	padding: 14px 16px;
	background: #0d0d0d;
	border: 1px solid #1e1e1e;
	border-radius: 8px;
	font-size: 12px;
	color: #666;
	line-height: 1.6;
}

/* ── Share row ── */
.el-split-share-row {
	display: flex;
	gap: 10px;
	padding: 0 32px 24px;
}

.el-split-share-btn {
	flex: 1;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid #2a2a2a;
	background: transparent;
	color: #888;
	font-size: 12px;
	font-family: 'Sora', sans-serif;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.el-split-share-btn:hover {
	border-color: #444;
	color: #ccc;
}

.el-split-share-btn--primary {
	color: #FF6A00;
	border-color: rgba(255,106,0,0.4);
}

.el-split-share-btn--primary:hover {
	border-color: #FF6A00;
	background: rgba(255,106,0,0.05);
	color: #FF6A00;
}

/* ── Responsive ── */
@media (max-width: 600px) {
	.el-split-header,
	.el-split-body,
	.el-split-result-header,
	.el-split-share-row {
		padding-left: 20px;
		padding-right: 20px;
	}
	.el-split-week-grid {
		grid-template-columns: repeat(1, 1fr);
		padding: 16px 20px;
	}
	.el-split-rationale {
		margin-left: 20px;
		margin-right: 20px;
	}
}

/* ── Print / PDF styles ──────────────────────────────────────────────────── */
@media print {
	/* Hide the entire page — show only the print frame */
	body * { visibility: hidden; }
	#el-split-printframe,
	#el-split-printframe * { visibility: visible; }
	#el-split-printframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		display: block !important;
	}
	@page { margin: 1.5cm; }
}

/* Print frame base */
.pf-wrap {
	font-family: 'Sora', sans-serif;
	max-width: 100%;
	color: #111;
	background: #fff;
}

/* Header */
.pf-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 3px solid #FF6A00;
	padding-bottom: 12px;
	margin-bottom: 20px;
}

.pf-logo a {
	font-size: 14px;
	font-weight: 700;
	color: #FF6A00;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-decoration: none;
}

.pf-meta h1 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 2px;
	color: #111;
}

.pf-meta p {
	font-size: 11px;
	color: #888;
	margin: 0;
}

/* Day grid — 3 columns to fit more per page */
.pf-days {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.pf-day {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 12px 14px;
	break-inside: avoid;
}

.pf-day--rest {
	opacity: 0.4;
}

.pf-day-name {
	font-size: 9px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 3px;
}

.pf-day-focus {
	font-size: 12px;
	font-weight: 700;
	color: #FF6A00;
	margin: 0 0 10px;
	line-height: 1.3;
}

/* Exercise table inside each day */
.pf-ex-table {
	width: 100%;
	border-collapse: collapse;
}

.pf-ex-table tr {
	border-bottom: 1px solid #f0f0f0;
}

.pf-ex-table tr:last-child {
	border-bottom: none;
}

.pf-ex-table td {
	padding: 4px 0;
	font-size: 11px;
	line-height: 1.3;
	vertical-align: middle;
}

.pf-ex-table td:first-child {
	color: #222;
	width: 100%;
}

.pf-ex-table td:first-child a {
	color: #222;
	text-decoration: none;
}

.pf-ex-table td:last-child {
	white-space: nowrap;
	padding-left: 8px;
	font-weight: 700;
	font-size: 10px;
	color: #FF6A00;
	text-align: right;
}

/* Rationale */
.pf-rationale {
	font-size: 11px;
	color: #666;
	border-left: 3px solid #FF6A00;
	padding: 6px 10px;
	margin: 0 0 16px;
	line-height: 1.5;
}

/* Footer */
.pf-footer {
	font-size: 10px;
	color: #bbb;
	text-align: center;
	border-top: 1px solid #eee;
	padding-top: 10px;
}

.pf-footer a {
	color: #FF6A00;
	text-decoration: none;
	font-weight: 700;
}