/**
 * Reusable Component Styles — Badges, pills, toast notifications,
 * loading states, breadcrumbs, pagination, modals.
 *
 * @package SkyyRose_Flagship
 * @since   3.0.0
 */

/* ==================================================
   BADGES & PILLS
   ================================================== */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 4px 10px;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 4px;
	line-height: 1;
}

.badge--rose-gold { background: rgba(183, 110, 121, 0.15); color: var(--color-rose-gold, #B76E79); }
.badge--gold      { background: rgba(212, 175, 55, 0.15); color: var(--color-gold, #D4AF37); }
.badge--crimson   { background: rgba(220, 20, 60, 0.15); color: var(--color-crimson, #DC143C); }
.badge--silver    { background: rgba(192, 192, 192, 0.15); color: #C0C0C0; }
.badge--success   { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }

.pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.6);
	background: transparent;
	cursor: pointer;
	transition: all 0.2s ease;
}

.pill:hover,
.pill.active {
	border-color: var(--color-rose-gold, #B76E79);
	color: #fff;
	background: rgba(183, 110, 121, 0.1);
}

/* ==================================================
   LOADING STATES
   ================================================== */

.skeleton {
	background: linear-gradient(90deg,
		rgba(255, 255, 255, 0.04) 25%,
		rgba(255, 255, 255, 0.08) 50%,
		rgba(255, 255, 255, 0.04) 75%
	);
	background-size: 200% 100%;
	animation: skeletonShimmer 1.5s ease-in-out infinite;
	border-radius: 6px;
}

@keyframes skeletonShimmer {
	0%   { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

.spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-top-color: var(--color-rose-gold, #B76E79);
	border-radius: 50%;
	animation: spinnerRotate 0.6s linear infinite;
}

@keyframes spinnerRotate {
	to { transform: rotate(360deg); }
}

/* ==================================================
   TOAST NOTIFICATIONS
   ================================================== */

.toast {
	position: fixed;
	bottom: 80px;
	right: 24px;
	z-index: 500;
	padding: 14px 20px;
	background: rgba(17, 17, 17, 0.95);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 500;
	min-width: 240px;
	max-width: 380px;
	transform: translateY(20px);
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.visible {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.toast--success { border-left: 3px solid #2ecc71; }
.toast--error   { border-left: 3px solid #e74c3c; }
.toast--info    { border-left: 3px solid var(--color-rose-gold, #B76E79); }

/* ==================================================
   BREADCRUMBS
   ================================================== */

.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 1.5rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.35);
}

.breadcrumbs a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.2s ease;
}

.breadcrumbs a:hover {
	color: var(--color-rose-gold, #B76E79);
}

.breadcrumbs__separator {
	color: rgba(255, 255, 255, 0.2);
}

/* ==================================================
   PAGINATION
   ================================================== */

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 2rem 0;
}

.pagination__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.pagination__link:hover,
.pagination__link.active {
	border-color: var(--color-rose-gold, #B76E79);
	color: #fff;
	background: rgba(183, 110, 121, 0.1);
}

/* ==================================================
   DIVIDERS
   ================================================== */

.divider {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg,
		transparent,
		rgba(255, 255, 255, 0.06) 20%,
		rgba(183, 110, 121, 0.15) 50%,
		rgba(255, 255, 255, 0.06) 80%,
		transparent
	);
	margin: 3rem 0;
}

/* ==================================================
   SECTION LABELS
   ================================================== */

.section-label {
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-rose-gold, #B76E79);
	margin-bottom: 0.75rem;
}

/* Film Grain Overlay — decorative, site-wide */
.skyyrose-film-grain {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	opacity: 0.035;
	mix-blend-mode: overlay;
}

.film-grain__inner {
	width: 100%;
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 256px 256px;
}

@media (prefers-reduced-motion: reduce) {
	.skyyrose-film-grain {
		display: none;
	}
	.skeleton {
		animation: none;
		background: rgba(255, 255, 255, 0.06);
	}
	.spinner {
		animation: none;
		border-top-color: var(--color-rose-gold, #B76E79);
	}
	.toast {
		transition: none;
	}
}
