/*
 * TOFFEHA Public CSS
 * Plugin-level overrides and shortcode styling.
 * Presentation tokens live in the theme; this file only adds
 * plugin-owned widget and shortcode chrome.
 */

/* ─── Plan card shortcode ─────────────────── */

.toffeha-plans-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.toffeha-plan-card-wrap {
	display: contents; /* let theme card handle own box */
}

/* ─── Review widget ───────────────────────── */

.toffeha-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.toffeha-review-item {
	border: 1px solid rgba(14,32,66,.1);
	border-radius: 12px;
	padding: 20px;
	background: #fff;
}

.toffeha-review-item__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.toffeha-review-item__meta {
	font-size: .8rem;
	color: #55657F;
	margin-top: 4px;
}

.toffeha-review-item__body {
	font-size: .9rem;
	line-height: 1.6;
	color: #374151;
}

/* ─── Review form ─────────────────────────── */

.toffeha-review-form {
	background: #F5F0E8;
	border-radius: 12px;
	padding: 24px;
	margin-top: 24px;
}

.toffeha-review-form h3 {
	margin: 0 0 16px;
	font-size: 1rem;
	color: #0E2042;
}

.toffeha-star-picker {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
}

.toffeha-star-picker button {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #ccc;
	padding: 0;
	line-height: 1;
	transition: color .15s;
}

.toffeha-star-picker button.is-active,
.toffeha-star-picker button:hover {
	color: #F5A623;
}

.toffeha-review-form textarea {
	width: 100%;
	min-height: 100px;
	padding: 12px;
	border: 1px solid #DDE3ED;
	border-radius: 8px;
	font-size: .9rem;
	resize: vertical;
	box-sizing: border-box;
	margin-bottom: 12px;
}

/* ─── Favorite / Save button ──────────────── */

.toffeha-save-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .8rem;
	cursor: pointer;
	border: none;
	background: transparent;
	color: #55657F;
	padding: 4px 0;
	transition: color .15s;
}

.toffeha-save-btn svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
}

.toffeha-save-btn.is-saved,
.toffeha-save-btn:hover {
	color: #E63732;
}

.toffeha-save-btn.is-saved svg {
	fill: #E63732;
	stroke: #E63732;
}

/* ─── Buy panel ───────────────────────────── */

.toffeha-buy-panel {
	background: #fff;
	border: 1px solid #DDE3ED;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 24px rgba(14,32,66,.08);
}

.toffeha-buy-panel__price {
	font-size: 2rem;
	font-weight: 700;
	color: #0E2042;
	margin-bottom: 4px;
}

.toffeha-buy-panel__price small {
	font-size: .9rem;
	font-weight: 400;
	color: #55657F;
}

.toffeha-buy-panel__cta {
	width: 100%;
	margin-top: 16px;
	padding: 14px;
	background: #E63732;
	color: #fff;
	border: none;
	border-radius: 30px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}

.toffeha-buy-panel__cta:hover {
	background: #C12D28;
}

/* ─── Creator profile card ─────────────────── */

.toffeha-creator-profile-header {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 24px;
	background: #0E2042;
	border-radius: 16px;
	color: #fff;
}

.toffeha-creator-profile-header img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(255,255,255,.3);
}

.toffeha-creator-profile-header h1 {
	font-size: 1.4rem;
	margin: 0 0 4px;
}

/* ─── Load-more button ──────────────────── */

.toffeha-load-more-btn {
	display: block;
	margin: 32px auto 0;
	padding: 12px 32px;
	background: transparent;
	border: 2px solid #0E2042;
	border-radius: 30px;
	color: #0E2042;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.toffeha-load-more-btn:hover {
	background: #0E2042;
	color: #fff;
}

.toffeha-load-more-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* ─── Empty state ───────────────────────── */

.toffeha-empty-state {
	text-align: center;
	padding: 48px 24px;
	color: #55657F;
}

.toffeha-empty-state__icon {
	font-size: 3rem;
	display: block;
	margin-bottom: 16px;
}

.toffeha-empty-state h3 {
	font-size: 1.1rem;
	color: #0E2042;
	margin: 0 0 8px;
}

/* ─── Login-required notice ──────────────── */

.toffeha-login-notice {
	background: #EEF3FA;
	border: 1px solid #C2D1E8;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
}

.toffeha-login-notice a {
	color: #E63732;
	font-weight: 600;
}

/* ─── Response: tablet ─────────────────── */

@media ( max-width: 767px ) {
	.toffeha-plans-grid {
		grid-template-columns: 1fr;
	}

	.toffeha-buy-panel {
		border-radius: 0;
		border-left: none;
		border-right: none;
	}
}
