/**
 * Styles for the single-player action row (Share / Download Card /
 * Request Scout Visit), its toast confirmation, and the scout-request
 * modal. Only enqueued on single sjsa_player pages — see
 * inc/player-actions-assets.php.
 *
 * Reuses the theme's existing design tokens (defined in style.css'
 * :root) and the shared .btn / .form-card / .form-row / .empty-state
 * classes so this blends into the rest of the site instead of
 * introducing a second visual language.
 *
 * @package SJSA
 */

.pp-action-row {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 4px 0 20px;
}

/*
 * The action row's own dedicated section (below the stats/media
 * column, above the Contact CTA) — buttons centered under the
 * section-head intro copy instead of sitting inline next to the
 * player's name.
 */
.pp-actions {
	background: var(--cream);
}
.pp-actions .pp-action-row {
	justify-content: center;
	margin: 0 auto;
}
.pp-actions .pp-scout-success {
	max-width: 680px;
	margin: 0 auto 22px;
	text-align: center;
}

.pp-action-row .pp-action-btn {
	padding: 13px 22px;
	font-size: .72rem;
	border: 2px solid transparent;
}

.pp-action-row .pp-action-btn[disabled] {
	opacity: .6;
	cursor: default;
	pointer-events: none;
	transform: none !important;
}

.pp-action-row .pp-action-btn .icon-svg {
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
}

/* Small toast confirmation ("Link copied!") anchored under the row. */
.pp-toast {
	position: absolute;
	left: 0;
	bottom: -8px;
	transform: translateY(100%);
	background: var(--navy-darker);
	color: var(--white);
	font-size: .78rem;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
	white-space: nowrap;
	z-index: 5;
}
.pp-toast.is-visible {
	opacity: 1;
	transform: translateY(100%) translateY(6px);
}

.pp-scout-success {
	margin: 0 0 22px;
}

/* ===== Scout request modal ===== */
.pp-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 44, 64, .74);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease;
}
.pp-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.pp-modal-panel {
	background: var(--white);
	border-radius: 16px;
	max-width: 580px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	position: relative;
	transform: translateY(16px);
	transition: transform .2s ease;
	box-shadow: 0 30px 60px -20px rgba(8, 44, 64, .5);
}
.pp-modal-overlay.is-open .pp-modal-panel {
	transform: translateY(0);
}

.pp-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: var(--cream);
	color: var(--navy-darker);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}
.pp-modal-close:hover {
	background: var(--taupe);
}

.pp-modal-panel h3 {
	padding: 36px 46px 8px;
	color: var(--navy-darker);
	font-size: 1.6rem;
}

.pp-modal-sub {
	padding: 0 46px 20px;
	color: #556;
	font-size: .9rem;
	line-height: 1.6;
}

.pp-scout-form.form-card {
	padding: 0 46px 42px;
	border-radius: 0;
}

.pp-scout-form .btn {
	margin-top: 6px;
}

@media (max-width: 640px) {
	.pp-modal-panel h3 {
		padding: 30px 24px 6px;
		font-size: 1.35rem;
	}
	.pp-modal-sub {
		padding: 0 24px 16px;
	}
	.pp-scout-form.form-card {
		padding: 0 24px 30px;
	}
}
