/**
 * Campus Celebrations — Hub Widget Styles
 */

/* ======================================================
   CELEBRATIONS LIST
   ====================================================== */

.cp-celebrations-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cp-celebrations-widget__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 1.125rem;
	font-weight: 600;
	color: #0f172a;
}

.cp-celebrations-widget__title-icon {
	flex-shrink: 0;
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #64748b;
}

.cp-celebrations-section-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin: 8px 0 4px;
	padding: 0;
}

.cp-celebrations-section-title:first-child {
	margin-top: 0;
}

.cp-celebrations-widget__footer {
	margin: 12px 0 0;
}

.cp-celebrations-widget__footer .campus-btn {
	margin: 0;
}

.cp-celebration-item--no-avatar {
	padding-left: 12px;
}

.cp-celebration-today-tag--inline {
	margin-left: 6px;
	vertical-align: middle;
}

.cp-celebration-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.cp-celebration-item:hover {
	border-color: #cbd5e1;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cp-celebration-today {
	background: #fffbeb;
	border-color: #fcd34d;
}

.cp-celebration-today:hover {
	background: #fef9c3;
	border-color: #f59e0b;
}

/* ======================================================
   AVATAR
   ====================================================== */

.cp-celebration-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cp-celebration-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cp-celebration-initials {
	font-size: 14px;
	font-weight: 600;
	color: #475569;
	line-height: 1;
}

/* ======================================================
   INFO
   ====================================================== */

.cp-celebration-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.cp-celebration-name {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cp-celebration-date {
	font-size: 12px;
	color: #64748b;
}

/* ======================================================
   BADGES
   ====================================================== */

.cp-celebration-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

.cp-celebration-badge .dashicons {
	font-size: 13px;
	width: 13px;
	height: 13px;
}

.cp-celebration-badge-birthday {
	background: #ecfdf5;
	color: #059669;
}

.cp-celebration-badge-anniversary {
	background: #fffbeb;
	color: #d97706;
}

.cp-celebration-today-tag {
	background: #fef3c7;
	color: #92400e;
	padding: 1px 6px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 700;
	margin-left: 4px;
}

/* ======================================================
   EMPTY STATE
   ====================================================== */

.cp-celebrations-empty {
	text-align: center;
	padding: 24px 16px;
	color: #94a3b8;
}

.cp-celebrations-empty .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	display: block;
	margin: 0 auto 8px;
}

.cp-celebrations-empty p {
	margin: 0;
	font-size: 14px;
}

/* ======================================================
   DASHBOARD WIDGET (admin) — inline styles
   ====================================================== */

.cp-dash-section-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin: 16px 0 8px;
	padding: 0;
}

.cp-dash-section-title:first-child {
	margin-top: 0;
}

.cp-dash-section-title .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #64748b;
}

.cp-dash-celebrations-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cp-dash-celebration-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 6px;
	font-size: 13px;
	transition: background 0.1s;
}

.cp-dash-celebration-item:hover {
	background: #f8fafc;
}

.cp-dash-celebration-item a {
	color: #1e293b;
	text-decoration: none;
}

.cp-dash-celebration-item a:hover {
	color: #2563eb;
}

.cp-dash-celebration-today {
	background: #fffbeb;
}

.cp-dash-celebration-years {
	color: #d97706;
	font-weight: 600;
	font-size: 12px;
}

.cp-dash-celebration-date {
	color: #94a3b8;
	font-size: 12px;
	margin-left: auto;
}

.cp-today-badge {
	display: inline-block;
	background: #fef3c7;
	color: #92400e;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 8px;
	margin-left: 4px;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 640px) {
	.cp-celebration-item {
		padding: 8px 10px;
		gap: 8px;
	}

	.cp-celebration-badge {
		padding: 3px 8px;
		font-size: 10px;
	}

	.cp-celebration-avatar {
		width: 32px;
		height: 32px;
	}
}
