.pgo-app {
	display: flex;
	flex-direction: column;
	gap: 28px;
	font-family: "Titillium Web", arial, helvetica, sans-serif;
}

.pgo-top-row {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 28px;
	align-items: start;
}

.pgo-left-col {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}

.pgo-loading {
	padding: 3em 0;
	color: #888;
	text-align: center;
}

/* ---------- Calendrier ---------- */

.pgo-calendar-panel {
	padding: 22px 22px 26px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.pgo-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.pgo-cal-title {
	color: #1a1a1a;
	font-weight: 800;
	font-size: 1.2em;
	text-transform: capitalize;
}

.pgo-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 999px;
	background: #f3f3f3;
	color: #333;
	font-size: 1.3em;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.pgo-nav:hover {
	background: #aa2200;
	color: #fff;
	transform: scale(1.06);
}

.pgo-today-btn {
	display: inline-block;
	margin-bottom: 16px;
	padding: 6px 14px;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #fff;
	color: #555;
	font-size: 0.8em;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.pgo-today-btn:hover {
	border-color: #aa2200;
	color: #aa2200;
}

.pgo-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 6px;
	color: #999;
	font-weight: 700;
	font-size: 0.72em;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pgo-days-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	transition: opacity 0.15s ease;
}

.pgo-days-grid.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

.pgo-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	aspect-ratio: 1;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 12px;
	background: #fafafa;
	color: #333;
	font-family: inherit;
	font-size: 0.95em;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.pgo-day:hover {
	background: #f1e4e0;
	transform: translateY(-1px);
}

.pgo-day.is-outside {
	color: #ccc;
	background: transparent;
}

.pgo-day.is-today .pgo-day-num {
	position: relative;
}

.pgo-day.is-today {
	border-color: #aa2200;
	font-weight: 800;
}

.pgo-day.is-selected {
	background: #aa2200;
	color: #fff;
}

.pgo-day.is-selected:hover {
	background: #8a1b00;
}

.pgo-day-dots {
	display: flex;
	gap: 3px;
	min-height: 6px;
}

.pgo-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
}

.pgo-day.is-selected .pgo-dot {
	background: #fff !important;
	opacity: 0.85;
}

@media only screen and (max-width: 40em) {
	.pgo-day {
		border-radius: 8px;
		font-size: 0.85em;
	}
}

/* ---------- Panneau latéral ---------- */

.pgo-right-col {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}

.pgo-day-events,
.pgo-raids,
.pgo-bonuses {
	padding: 20px 22px 22px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.pgo-day-events h3,
.pgo-raids h3,
.pgo-bonuses h3 {
	margin: 0 0 4px;
	color: #1a1a1a;
	font-size: 1.05em;
	font-weight: 800;
	text-transform: capitalize;
}

.pgo-raids-updated {
	margin: 0 0 14px;
	color: #999;
	font-size: 0.78em;
}

.pgo-event-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
	min-height: 60px;
	transition: opacity 0.12s ease, transform 0.12s ease;
}

.pgo-event-list.is-updating {
	opacity: 0;
	transform: translateY(4px);
}

.pgo-empty {
	margin: 0;
	color: #999;
	font-size: 0.9em;
	font-style: italic;
}

.pgo-event-card {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px;
	border: 1px solid #eee;
	border-radius: 12px;
	text-decoration: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.pgo-event-card:hover {
	border-color: #ddd;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.pgo-event-img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	object-fit: cover;
	background: #f2f2f2;
	border-radius: 10px;
}

.pgo-event-img-placeholder {
	background: linear-gradient(135deg, #f2f2f2, #e6e6e6);
}

.pgo-event-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.pgo-event-badge {
	display: inline-block;
	width: fit-content;
	padding: 2px 9px;
	border-radius: 999px;
	color: #fff;
	font-size: 0.68em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.pgo-event-name {
	overflow: hidden;
	color: #1a1a1a;
	font-weight: 700;
	font-size: 0.95em;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pgo-event-time {
	color: #888;
	font-size: 0.8em;
}

/* ---------- Bonus actifs ---------- */

.pgo-bonus-list {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pgo-bonus-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: linear-gradient(135deg, #fff3ea, #ffe8db);
}

.pgo-bonus-icon {
	flex: 0 0 auto;
	font-size: 1.3em;
}

.pgo-bonus-card > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pgo-bonus-text {
	color: #aa2200;
	font-weight: 800;
	font-size: 0.95em;
}

.pgo-bonus-source {
	color: #888;
	font-size: 0.78em;
}

.pgo-bonus-note {
	margin: 14px 0 6px;
	color: #999;
	font-size: 0.78em;
}

.pgo-bonus-other-list {
	margin: 0;
	padding-left: 18px;
	color: #666;
	font-size: 0.85em;
	line-height: 1.7;
}

/* ---------- Raids ---------- */

.pgo-raid-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
}

.pgo-raid-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 10px 14px;
	border: 1px solid #eee;
	border-radius: 12px;
	text-align: center;
	background: #fafafa;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pgo-raid-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.pgo-raid-tier {
	margin-bottom: 6px;
	color: #aa2200;
	font-weight: 700;
	font-size: 0.68em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pgo-shiny {
	filter: drop-shadow(0 0 2px rgba(255, 200, 0, 0.8));
}

.pgo-raid-img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	background: #fff;
	border-radius: 10px;
	margin-bottom: 6px;
}

.pgo-raid-name {
	margin-bottom: 4px;
	color: #1a1a1a;
	font-weight: 700;
	font-size: 0.85em;
	line-height: 1.25;
}

.pgo-raid-types {
	display: flex;
	gap: 4px;
	justify-content: center;
	margin-bottom: 6px;
}

.pgo-type-icon,
.pgo-weather-icon {
	width: 16px;
	height: 16px;
}

.pgo-raid-cp {
	color: #777;
	font-size: 0.72em;
	line-height: 1.5;
}

.pgo-cp-boosted {
	color: #aa2200;
	font-weight: 700;
}

/* ---------- Responsive ---------- */

@media only screen and (max-width: 60em) {
	.pgo-top-row {
		grid-template-columns: 1fr;
	}
}
