/**
 * FootGoal Football Birthday Widget Styles
 * Matching the UEFA Champions League / modern broadcast aesthetic:
 * - Stadium floodlight gradient header with UEFA star accents
 * - Interactive Yesterday / Today (coral/red pill) / Tomorrow date navigation
 * - Elegant player cards with circular avatars, age badges, jersey watermark & share pill
 * - Dashed "Embed Widget on Your Website" trigger box
 * - FootGoal.pro attribution
 */

.footgoal-birthday-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(7, 34, 66, 0.05);
	padding: 0;
	margin: 0 auto;
	font-family: inherit;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	color: #0f172a;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: box-shadow 0.25s ease;
}

.footgoal-birthday-box:hover {
	box-shadow: 0 10px 28px rgba(7, 34, 66, 0.08);
}

/* Header: UEFA Royal Blue Stadium Floodlight Effect */
.fg-bday-header {
	background: #022359;
	background: radial-gradient(circle at 50% -20%, #1e52ad 0%, #032b69 55%, #01193d 100%);
	padding: 16px 18px;
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fg-bday-header::before {
	content: '';
	position: absolute;
	top: -24px;
	left: 50%;
	transform: translateX(-50%);
	width: 220px;
	height: 90px;
	background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.4) 0%, rgba(56, 189, 248, 0) 70%);
	pointer-events: none;
}

/* Subtle star accents in top-right */
.fg-bday-header::after {
	content: '★  ✦  ★';
	position: absolute;
	right: 18px;
	top: 14px;
	font-size: 9px;
	color: rgba(255, 255, 255, 0.2);
	letter-spacing: 5px;
	pointer-events: none;
}

.fg-bday-title-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 2;
}

.fg-bday-cake-box {
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(4px);
}

.fg-bday-title-text {
	display: flex;
	flex-direction: column;
}

.fg-bday-title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 800;
	color: #ffffff !important;
	letter-spacing: -0.2px;
	line-height: 1.2;
	font-family: inherit;
}

.fg-bday-date {
	font-size: 12px;
	color: #93c5fd;
	font-weight: 600;
	margin-top: 2px;
	display: block;
	letter-spacing: 0.2px;
	font-family: inherit;
}

/* Nav Pills Bar */
.fg-bday-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px 10px 14px;
	background: #ffffff;
}

.fg-bday-btn {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #475569;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	font-family: inherit;
	line-height: 1.3;
	flex: 1;
}

.fg-bday-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Active Today Button (Bright Red/Coral Pill) */
.fg-bday-btn.fg-btn-active,
.fg-bday-btn-today.fg-btn-active {
	background: #ef4444 !important;
	border-color: #ef4444 !important;
	color: #ffffff !important;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.fg-bday-btn.fg-btn-active:hover,
.fg-bday-btn-today.fg-btn-active:hover {
	background: #dc2626 !important;
	border-color: #dc2626 !important;
}

/* Loading & Empty States */
.fg-bday-loading {
	padding: 16px;
	text-align: center;
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
}

.fg-bday-empty {
	padding: 24px 14px;
	text-align: center;
	font-size: 12px;
	color: #64748b;
	font-style: italic;
}

/* Players List */
.fg-bday-players-list {
	padding: 0 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: opacity 0.2s ease;
}

/* Player Card */
.fg-bday-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px 12px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 3px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
}

.fg-bday-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.04);
	border-color: #cbd5e1;
	background: #ffffff;
}

.fg-bday-card-inner {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	position: relative;
	z-index: 2;
}

.fg-bday-avatar-wrap {
	flex-shrink: 0;
	margin-top: 1px;
}

.fg-bday-avatar-img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.fg-bday-avatar-init {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 18px;
	box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

.fg-bday-info {
	flex: 1;
	min-width: 0;
	padding-right: 42px; /* space so watermark doesn't overlap text */
}

/* Row 1: Name + Turns Badge */
.fg-bday-row-1 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 2px;
}

.fg-bday-name {
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
	font-family: inherit;
}

.fg-bday-turns {
	background: #ffe4e6;
	color: #be123c;
	font-size: 10px;
	font-weight: 700;
	padding: 1.5px 6.5px;
	border-radius: 8px;
	white-space: nowrap;
	display: inline-block;
	letter-spacing: -0.1px;
}

/* Row 2: Country + Club / Position */
.fg-bday-row-2 {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: #475569;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.fg-bday-country {
	font-weight: 600;
	color: #334155;
}

.fg-bday-dot {
	color: #94a3b8;
	font-size: 10px;
}

.fg-bday-pos {
	color: #475569;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Row 3: Italicized Description / Achievement */
.fg-bday-row-3 {
	font-size: 10.5px;
	color: #475569;
	font-style: italic;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Jersey Silhouette Watermark */
.fg-bday-watermark {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0.12;
	color: #0284c7;
	z-index: 1;
}

.fg-bday-wm-jersey {
	width: 48px;
	height: 48px;
}

.fg-bday-wm-num {
	position: absolute;
	font-size: 18px;
	font-weight: 900;
	color: #0284c7;
	top: 54%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: inherit;
	line-height: 1;
}

/* Share Wish Pink Pill Button */
.fg-bday-share-btn {
	align-self: flex-end;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff1f2;
	color: #e11d48 !important;
	border: 1px solid #fecdd3;
	border-radius: 12px;
	font-size: 10px;
	font-weight: 700;
	padding: 2.5px 8px;
	text-decoration: none !important;
	margin-top: 2px;
	position: relative;
	z-index: 2;
	transition: all 0.2s ease;
	line-height: 1.3;
}

.fg-bday-share-btn:hover {
	background: #ffe4e6;
	color: #be123c !important;
	border-color: #fda4af;
	transform: translateY(-1px);
}

.fg-bday-share-btn svg {
	flex-shrink: 0;
}

/* Dashed Embed Widget Box */
.fg-bday-embed-trigger {
	margin: 8px 14px 4px 14px;
	padding: 8px 12px;
	background: #f8fafc;
	border: 1.5px dashed #cbd5e1;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
	box-sizing: border-box;
	width: calc(100% - 28px);
}

.fg-bday-embed-trigger:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
}

.fg-bday-embed-trigger-left {
	display: flex;
	align-items: center;
	gap: 7px;
}

.fg-bday-code-icon {
	color: #0284c7;
	display: flex;
	align-items: center;
}

.fg-bday-embed-label {
	font-size: 11px;
	font-weight: 700;
	color: #0f172a;
}

.fg-bday-embed-arrow {
	font-size: 13px;
	font-weight: 700;
	color: #0284c7;
	transition: transform 0.2s ease;
}

.fg-bday-embed-trigger:hover .fg-bday-embed-arrow {
	transform: translateX(3px);
}

/* Footer Attribution */
.fg-bday-credit-line {
	text-align: center;
	font-size: 10.5px;
	color: #94a3b8;
	padding: 6px 14px 12px 14px;
	line-height: 1.3;
}

.fg-bday-credit-line a {
	color: #0284c7;
	font-weight: 600;
	text-decoration: none !important;
}

.fg-bday-credit-line a:hover {
	text-decoration: underline !important;
}

/* Embed Modal Panel */
.fg-embed-modal {
	padding: 12px 14px;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
}

.fg-embed-panel-inner h4 {
	margin: 0 0 6px 0;
	font-size: 12.5px;
	font-weight: 700;
	color: #0f172a;
}

.fg-embed-panel-inner p {
	font-size: 11px;
	color: #64748b;
	margin: 0 0 8px 0;
	line-height: 1.4;
}

.fg-embed-code-box {
	width: 100%;
	height: 52px;
	font-family: monospace;
	font-size: 10px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 6px 8px;
	box-sizing: border-box;
	resize: none;
	color: #334155;
}

.fg-bday-btn-copy {
	background: #0284c7;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s;
}

.fg-bday-btn-copy:hover {
	background: #0369a1;
}
