/*
 * Neon sidebar skin (owner mockup "Neon Lottery of Life Dashboard", 2026-11-15).
 * Every theme sidebar widget becomes a glowing blue glass panel with a neon header; the
 * raffle widgets (.lol-wg) get glossy pill headers, glowing rows and buttons.
 * The theme styles sidebars with high specificity, hence the !important on visuals.
 */
.gp-sidebar {
	--sb-edge: #2d8cff;
	--sb-edge-soft: rgba(45, 140, 255, 0.55);
	--sb-ink: #eaf2ff;
	--sb-muted: #9fb4d8;
	--sb-head: #5cc3ff;
	--sb-row: rgba(9, 20, 48, 0.92);
	--sb-row-line: rgba(92, 170, 255, 0.28);
}

/* ---- Panels ---- (descendant selectors: Theia Sticky Sidebar wraps the widgets in a div at runtime) */
.gp-sidebar .widget {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #0c1c44 0%, #071230 45%, #050b20 100%) !important;
	border: 2px solid var(--sb-edge) !important;
	border-radius: 14px !important;
	box-shadow: 0 0 10px var(--sb-edge-soft), 0 0 26px rgba(45, 140, 255, 0.25), inset 0 0 22px rgba(45, 140, 255, 0.16) !important;
	padding: 14px 12px !important;
	margin-bottom: 18px !important;
	color: var(--sb-ink) !important;
}
/* Glass highlight across the top edge. */
.gp-sidebar .widget::before {
	content: "";
	position: absolute;
	left: 8%; right: 8%; top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(160, 215, 255, 0.95), transparent);
	pointer-events: none;
}
/* Slow diagonal shine sweeping across the panel. */
.gp-sidebar .widget::after {
	content: "";
	position: absolute;
	top: -50%; left: -60%;
	width: 40%; height: 200%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent);
	transform: rotate(8deg);
	animation: lol-sb-sweep 9s ease-in-out infinite;
	pointer-events: none;
}
.gp-sidebar .widget:nth-child(2n)::after { animation-delay: 3s; }
.gp-sidebar .widget:nth-child(3n)::after { animation-delay: 6s; }
@keyframes lol-sb-sweep {
	0%, 70% { left: -60%; }
	100% { left: 130%; }
}

/* ---- Theme widget headers ("SITE NEWS", "GROUPS") ---- */
.gp-sidebar .widgettitle,
.gp-sidebar .widget-title {
	font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	color: var(--sb-head) !important;
	text-shadow: 0 0 8px rgba(92, 195, 255, 0.75), 0 0 18px rgba(45, 140, 255, 0.45) !important;
	border: 0 !important;
	background: none !important;
	padding: 0 0 8px !important;
	margin: 0 0 10px !important;
	position: relative;
}
.gp-sidebar .widgettitle::after,
.gp-sidebar .widget-title::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, var(--sb-edge), rgba(45, 140, 255, 0));
	box-shadow: 0 0 6px var(--sb-edge);
}
.gp-sidebar .widgettitle::before { display: none !important; }

/* ---- Theme widget lists (Site News, Groups, ...) as glowing rows ---- */
.gp-sidebar .widget ul { display: block !important; height: auto !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.gp-sidebar .widget ul li {
	background: var(--sb-row) !important;
	border: 1px solid var(--sb-row-line) !important;
	border-radius: 10px !important;
	padding: 8px 10px !important;
	margin: 0 0 8px !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.gp-sidebar .widget ul li:last-child { margin-bottom: 0 !important; }
.gp-sidebar .widget ul li:hover { border-color: var(--sb-edge) !important; box-shadow: 0 0 10px var(--sb-edge-soft); }
.gp-sidebar .widget a { color: var(--sb-ink) !important; }
.gp-sidebar .widget a:hover { color: #fff !important; text-shadow: 0 0 6px rgba(92, 195, 255, 0.8); }
/* Buttons keep dark text on their bright colour (the link colour above would wash them out). */
.gp-sidebar .widget a.lol-wg-btn, .gp-sidebar .widget a.lol-wg-btn:hover { color: #0b0b14 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) !important; }
.gp-sidebar .widget a.lol-wg-btn.ghost { color: var(--sb-ink) !important; text-shadow: none !important; }

/* Site News (Recent Posts with Thumbnails) */
.gp-sidebar .rpwwt-widget ul li a { display: flex !important; align-items: center; gap: 10px; }
.gp-sidebar .rpwwt-widget ul li img {
	width: 48px !important; height: 48px !important; margin: 0 !important; float: none !important;
	border-radius: 9px; object-fit: cover; flex: 0 0 48px;
	border: 1px solid rgba(92, 170, 255, 0.6); box-shadow: 0 0 8px rgba(45, 140, 255, 0.45);
}
.gp-sidebar .rpwwt-widget .rpwwt-post-title { font-size: 14px !important; line-height: 1.3 !important; font-weight: 600; color: var(--sb-ink) !important; }

/* Groups / members (BuddyPress) */
.gp-sidebar .widget_bp_groups_widget ul li,
.gp-sidebar .widget_bp_core_members_widget ul li { display: flex !important; align-items: center; gap: 10px; }
.gp-sidebar .widget_bp_groups_widget .item-avatar img,
.gp-sidebar .widget_bp_core_members_widget .item-avatar img {
	width: 40px !important; height: 40px !important; border-radius: 50% !important; margin: 0 !important;
	border: 2px solid #ffd23f; box-shadow: 0 0 8px rgba(255, 210, 63, 0.55);
}
.gp-sidebar .widget_bp_groups_widget .item-avatar,
.gp-sidebar .widget_bp_core_members_widget .item-avatar { float: none !important; margin: 0 !important; flex: 0 0 auto; }
.gp-sidebar .widget_bp_groups_widget .item,
.gp-sidebar .widget_bp_core_members_widget .item { margin: 0 !important; padding: 0 !important; overflow: visible !important; border: 0 !important; }
.gp-sidebar .widget_bp_groups_widget .item-title { font-size: 14px !important; font-weight: 700; }
.gp-sidebar .widget_bp_groups_widget .item-meta,
.gp-sidebar .widget_bp_groups_widget .item-meta * { color: var(--sb-muted) !important; font-size: 10.5px !important; letter-spacing: 0.04em; }
.gp-sidebar .widget_bp_groups_widget .item-options { color: var(--sb-muted) !important; margin-bottom: 8px !important; }

/* Youzify pads BuddyPress widget lists with !important; outrank it. The filter menu sits in the header row. */
body .gp-sidebar .buddypress.widget .item-list { padding: 0 !important; margin: 0 !important; }
body .gp-sidebar .buddypress.widget .item-options {
	position: absolute; top: 14px; right: 12px; z-index: 2;
	padding: 0 !important; margin: 0 !important; width: auto !important; height: auto !important;
}

/* ---- Raffle widgets (.lol-wg) inside the panels ---- */
.gp-sidebar .lol-wg-title {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #3d8bff 0%, #1d5fe0 55%, #1449b8 100%) !important;
	border: 1px solid #8cc4ff;
	border-radius: 10px !important;
	font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	letter-spacing: 0.05em;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45), 0 0 10px rgba(160, 215, 255, 0.6);
	box-shadow: 0 0 12px rgba(45, 140, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
	padding: 8px 8px 6px !important;
}
/* Gloss on the top half + a quick shine across the pill. */
.gp-sidebar .lol-wg-title::before {
	content: "";
	position: absolute; left: 0; right: 0; top: 0; height: 50%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
	pointer-events: none;
}
.gp-sidebar .lol-wg-title::after {
	content: "";
	position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: skewX(-20deg);
	animation: lol-sb-pill 6s ease-in-out infinite;
	pointer-events: none;
}
@keyframes lol-sb-pill {
	0%, 75% { left: -40%; }
	100% { left: 140%; }
}
.gp-sidebar .lol-wg-sub { color: var(--sb-muted); }

.gp-sidebar .lol-wg-r,
.gp-sidebar .lol-wg-box {
	background: var(--sb-row) !important;
	border: 1px solid var(--sb-row-line) !important;
	border-radius: 10px !important;
}
.gp-sidebar .lol-wg-r { transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.gp-sidebar .lol-wg-r:hover {
	border-color: var(--c) !important;
	box-shadow: 0 0 12px color-mix(in srgb, var(--c) 55%, transparent);
	transform: translateY(-1px);
}
.gp-sidebar .lol-wg-r::before { box-shadow: 0 0 8px var(--c); }
.gp-sidebar .lol-wg-r.lol-wg-main {
	background: linear-gradient(160deg, rgba(70, 52, 6, 0.95), var(--sb-row) 60%) !important;
	border-color: rgba(255, 210, 63, 0.7) !important;
	box-shadow: 0 0 14px rgba(255, 210, 63, 0.3);
}
.gp-sidebar .lol-wg-pay big { text-shadow: 0 0 10px rgba(255, 210, 63, 0.45); }
.gp-sidebar .lol-wg-amt { text-shadow: 0 0 8px rgba(255, 210, 63, 0.4); }
.gp-sidebar .lol-wg-win { border-bottom-color: var(--sb-row-line); }

/* Glossy buttons that glow in the raffle type's colour. */
/* (Stays position:static, no transform: the button's link stretches over the whole row, see lol-widgets.css.) */
.gp-sidebar .lol-wg-btn {
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%) !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	border-radius: 8px !important;
	box-shadow: 0 0 10px color-mix(in srgb, var(--c) 65%, transparent), inset 0 -2px 0 rgba(0, 0, 0, 0.25);
	transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.gp-sidebar .lol-wg-r:hover .lol-wg-btn { box-shadow: 0 0 16px var(--c), inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.gp-sidebar .lol-wg-btn.ghost { background-image: none !important; box-shadow: none; border-color: rgba(255, 255, 255, 0.25) !important; }

@media (prefers-reduced-motion: reduce) {
	.gp-sidebar .widget::after, .gp-sidebar .lol-wg-title::after { animation: none; display: none; }
	.gp-sidebar .lol-wg-r, .gp-sidebar .lol-wg-btn { transition: none; }
}
