/* RSVP actions with enhanced states */
.rsvp__actions { display: flex; gap: 10px; justify-content: flex-start; margin-top: 10px; flex-wrap: nowrap; }

/* Glowing border animation around button */
@keyframes glowingBorder {
	0% { 
		box-shadow: 0 0 5px rgba(245,158,11,0.4), 0 0 10px rgba(245,158,11,0.2), 0 0 15px rgba(245,158,11,0.1);
	}
	50% { 
		box-shadow: 0 0 10px rgba(245,158,11,0.6), 0 0 20px rgba(245,158,11,0.4), 0 0 30px rgba(245,158,11,0.2), 0 0 40px rgba(245,158,11,0.1);
	}
	100% { 
		box-shadow: 0 0 5px rgba(245,158,11,0.4), 0 0 10px rgba(245,158,11,0.2), 0 0 15px rgba(245,158,11,0.1);
	}
}

/* Wiggle dance animation */
@keyframes wiggleDance {
	0%, 100% { 
		transform: scale(1) rotate(0deg) translateY(0);
	}
	15% { 
		transform: scale(1.03) rotate(-1deg) translateY(-2px);
	}
	30% { 
		transform: scale(1.03) rotate(1deg) translateY(-2px);
	}
	45% { 
		transform: scale(1.03) rotate(-0.5deg) translateY(-1px);
	}
	60% { 
		transform: scale(1.02) rotate(0.5deg) translateY(-1px);
	}
	75% { 
		transform: scale(1.01) rotate(0deg) translateY(0);
	}
}

/* Combined pulse effect */
.btn--pulse {
	animation: wiggleDance 2s ease-in-out infinite, glowingBorder 1.5s ease-in-out infinite !important;
	position: relative;
}

/* Shimmer effect overlay */
.btn--pulse::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.3),
		transparent
	);
	animation: shimmerEffect 2s ease-in-out infinite;
	border-radius: inherit;
	pointer-events: none;
}

@keyframes shimmerEffect {
	0% { left: -100%; }
	50%, 100% { left: 100%; }
}

/* Pending state with yellow/orange highlight */
.btn--pending {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
	position: relative;
	overflow: hidden;
}

.btn--pending:hover:not(:disabled) {
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

/* Event status indicator */
.event-status {
	font-size: 0.85rem;
	font-weight: 500;
	padding: 4px 8px;
	border-radius: 6px;
	font-family: Inter, system-ui, sans-serif;
	min-width: fit-content;
}

.event-status.confirmed {
	background: #d1fae5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.event-status.pending {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
	animation: pendingPulse 2s ease-in-out infinite;
}

@keyframes pendingPulse {
	0%, 100% { 
		background: #fef3c7;
		border-color: #fde68a;
	}
	50% { 
		background: #fde68a;
		border-color: #f59e0b;
	}
}

/* State for first-time visitors - not yet confirmed */
.event-status.not-confirmed {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}

.event-status:empty {
	display: none;
}

/* RSVP button confirmed states */
.rsvp__action.confirmed {
	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
	color: white !important;
	box-shadow: 0 2px 8px rgba(34,197,94,0.3) !important;
	position: relative;
	animation: none !important;
}

/* Confirmed "No asistiré" button - neutral gray style */
.btn--danger.confirmed {
	background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
	color: white !important;
	box-shadow: 0 2px 8px rgba(107,114,128,0.3) !important;
}

/* Remove the automatic checkmark since it's already in the text */
.itinerario-status .danger {
	color: #c0392b;
	font-weight: bold;
}
.itinerario-status .warning {
	color: #b7950b;
	font-weight: bold;
}
.itinerario-status.warning {
	background: #fef9e7;
	color: #b7950b;
	border-color: #f4d03f;
	box-shadow: 0 2px 8px rgba(183,149,11,0.08);
}

/* Specific style for no confirmations at all */
.itinerario-status.no-confirmations {
	background: #fef9e7;
	color: #b7950b;
	border: 1px solid #f4d03f;
	box-shadow: 0 2px 8px rgba(183,149,11,0.08);
}

.itinerario-status.danger {
	background: #ffeaea;
	color: #c0392b;
	border-color: #f5c6cb;
	box-shadow: 0 2px 8px rgba(192,57,43,0.08);
}
/* Progressive loading skeleton styles */
.subevent-skeleton {
	background: linear-gradient(180deg, rgba(184,146,106,.04), rgba(255,255,255,0)) , var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 18px;
	margin-bottom: 18px;
	animation: pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-title {
	height: 22px;
	background: #e0e0e0;
	border-radius: 4px;
	margin-bottom: 12px;
	width: 60%;
	animation: shimmer 2s infinite;
}

.skeleton-content {
	height: 16px;
	background: #e0e0e0;
	border-radius: 4px;
	margin-bottom: 8px;
	width: 80%;
	animation: shimmer 2s infinite;
}

.skeleton-content:nth-child(3) {
	width: 65%;
	animation-delay: 0.2s;
}

.skeleton-content:last-child {
	width: 40%;
	animation-delay: 0.4s;
}

@keyframes pulse {
	0% { opacity: 1; }
	100% { opacity: 0.7; }
}

@keyframes shimmer {
	0% { background-position: -200px 0; }
	100% { background-position: calc(200px + 100%) 0; }
}

.skeleton-title,
.skeleton-content {
	background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
	background-size: 200px 100%;
	background-repeat: no-repeat;
}

/* Progressive fade-in animation for content */
.progressive-fade-in {
	opacity: 0;
	transform: translateY(20px);
	animation: progressiveFadeIn 0.8s ease forwards;
}

.progressive-fade-in-delay-1 {
	animation-delay: 0.2s;
}

.progressive-fade-in-delay-2 {
	animation-delay: 0.4s;
}

.progressive-fade-in-delay-3 {
	animation-delay: 0.6s;
}

.progressive-fade-in-delay-4 {
	animation-delay: 0.8s;
}

@keyframes progressiveFadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Smooth transitions for content reveal */
.section.hidden {
	display: none !important;
}

.section:not(.hidden) {
	animation: sectionReveal 0.6s ease forwards;
}

@keyframes sectionReveal {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Optimize animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.progressive-fade-in,
	.section,
	.subevent-skeleton {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

:root{
	--bg:#f7f4ef;            /* light ivory */
	--bg-soft:#fbf7f2;       /* softer section alt */
	--card:#ffffff;          /* card surface */
	--text:#2b2b2e;          /* main text */
	--muted:#6f6a63;         /* subtle text */
	/* Warm romantic accents */
	--accent:#6e5336;        /* primary accent (golden) */
	--accent-2:#e3d6be;      /* soft highlight */
	--border:#e6e0d6;        /* light border */
	--shadow: 0 10px 30px rgba(0,0,0,.08); /* softer shadow */
	--radius:16px;
	--radius-lg:22px;
}

*{box-sizing:border-box}
html{height:100%; scroll-behavior:smooth}
body{height:100%}
body{
	margin:0;
	font-family: Lora, Georgia, "Times New Roman", serif;
	color:var(--text);
	background:var(--bg);
	line-height:1.6;
}

.container{width:min(1100px, 92%); margin:0 auto}

/* Global transitions & motion preferences */
*:where(button, a, .btn, .rsvp__btn, .slider__nav){
	transition: all .25s ease;
	will-change: transform;
}

/* Optimize for smooth scrolling and performance */
.hero,
.section {
	will-change: transform;
}

.progressive-fade-in {
	will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce){
	*{animation: none !important; transition: none !important}
	.progressive-fade-in,
	.section,
	.subevent-skeleton {
		will-change: auto;
	}
	
	/* Keep hero animation even with reduced motion */
	.hero,
	.hero--with-image {
		animation: hero-zoom 18s ease-in-out infinite alternate !important;
	}
}

/* Hero */
.hero{
	position:relative;
	min-height:78vh;
	display:grid;
	place-items:center;
	background-color: var(--bg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	animation: hero-zoom 18s ease-in-out infinite alternate;
}

/* Mobile optimizations for hero background */
@media (max-width: 768px) {
	.hero {
		min-height: 85vh;
		background-size: cover;
		background-position: center center;
	}
	
	/* Ensure horizontal images cover full height on mobile */
	.hero--with-image {
		background-size: cover;
		background-position: center center;
	}
	
	/* Force cover behavior for all image orientations */
	.hero[style*="background-image"] {
		background-size: cover !important;
		background-position: center center !important;
	}
}

/* Extra small devices */
@media (max-width: 480px) {
	.hero {
		min-height: 90vh;
		background-attachment: scroll; /* Better performance on mobile */
	}
}

/* Default gray hero when no main image */
.hero--default {
	background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.hero--with-image {
	animation: hero-zoom 18s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
	0% { background-size: 100%; background-position: center; }
	50% { background-size: 105%; background-position: 52% 48%; }
	100% { background-size: 100%; background-position: center; }
}
.hero__overlay{
	position:absolute; inset:0; background:rgba(85, 60, 34, 0.7); z-index:0;
}
.hero__content{position:relative; text-align:center; padding:40px 0; z-index:2}
.hero__title{
	font-family:"Playfair Display", serif; font-weight:600; font-size:clamp(36px,6vw,64px); letter-spacing:.01em; margin:0 0 6px;
	color:#fff;
	text-shadow:0 2px 12px rgba(0,0,0,.35);
	animation: fade-up .8s ease both;
}
.hero__subtitle{color:rgba(255,255,255,.92); margin:0 0 14px; font-style:italic; animation: fade-up 1s ease .1s both}
.parents_names{margin:0 0 20px; animation: fade-up 1s ease .2s both}
.parents_names p{margin:0 0 4px; color:rgba(255,255,255,.88); font-size:.95rem; font-weight:400}
.hero__countdown{display:inline-flex; align-items:baseline; gap:8px; background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.08); padding:12px 16px; border-radius:999px; box-shadow:0 6px 18px rgba(0,0,0,.25); animation: fade-up 1s ease .5s both}
.countdown__label{color:rgba(255,255,255,.78); font-size:.95rem}
.countdown__value{font-variant-numeric:tabular-nums; font-weight:700; font-size:1.05rem; color:#fff}
.hero__date{margin-top:8px; color:rgba(255,255,255,.9); font-style:italic; font-weight:bold; animation: fade-up 1s ease .4s both}
.hero__rsvp{margin-top:20px; animation: fade-up 1s ease .6s both}
.hero__rsvp .btn{text-decoration:none; display:inline-block}

/* Specific styles for hero RSVP button */
.hero__rsvp .btn--primary {
	background: white !important;
	color: #553c22 !important;
	border: 1px solid #553c22 !important;
	padding: 12px 24px;
	border-radius: 12px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transition: all 0.3s ease;
}

.hero__rsvp .btn--primary:hover {
	background: #553c22 !important;
	color: white !important;
	border: 1px solid #553c22 !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.btn--large{padding:10px 20px; font-size:1rem; font-weight:500}

/* Hero decorative layers */
.hero::before{content:""; position:absolute; inset:0; pointer-events:none; background:
	radial-gradient(1200px 60% at 50% 0%, rgba(227,214,190,.10), transparent 60%),
	radial-gradient(800px 40% at 80% 0%, rgba(184,146,106,.08), transparent 55%);
}
.hero::after{content:""; position:absolute; inset:0; pointer-events:none; background-image:
	radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,.25), transparent 60%),
	radial-gradient(1.5px 1.5px at 30% 15%, rgba(255,255,255,.18), transparent 60%),
	radial-gradient(1.8px 1.8px at 80% 25%, rgba(255,255,255,.22), transparent 60%),
	radial-gradient(1.2px 1.2px at 60% 10%, rgba(255,255,255,.16), transparent 60%);
	opacity:.35;
}

@keyframes fade-up{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none}}

/* Sections */
.section{padding:32px 0; background:var(--bg); background-image:
	radial-gradient(700px 40% at 15% 0%, rgba(184,146,106,.06), transparent 60%),
	radial-gradient(800px 35% at 85% 0%, rgba(227,214,190,.06), transparent 65%);
}
.section--soft{background:var(--bg-soft); background-image:
	radial-gradient(620px 35% at 20% 0%, rgba(184,146,106,.05), transparent 60%),
	radial-gradient(700px 30% at 80% 0%, rgba(227,214,190,.05), transparent 65%);
}

/* Special decoration for suggestions section */
.section--soft#sugerencias {
	position: relative;
	overflow: hidden; /* Ensure decoration stays within bounds */
}

	.section--soft#sugerencias::before {
		content: "";
		position: absolute;
		top: 20px;
		left: 66%; /* Positioned at 2/3 from left to right */
		width: 350px; /* Much larger size */
		height: 350px; /* Much larger size */
		/* Production absolute image URL only */
		background-image: url('https://invt.date/assets/img/celestia/fondo1.webp');
		background-repeat: no-repeat;
		background-position: center;
		background-size: contain; /* Show complete image without cutting */
		opacity: 0.20; /* Slightly increased to ensure visibility */
		filter: grayscale(70%) brightness(0.3); /* Dark gray filter */
		pointer-events: none;
		z-index: 0; /* Behind content */
	}

/* Mobile adjustments for flower decoration */
@media (max-width: 768px) {
	.section--soft#sugerencias::before {
		width: 400px; /* Much larger size for mobile */
		height: 400px; /* Much larger size for mobile */
		top: 10px;
		left: 50%; /* Centered */
		transform: translateX(-50%); /* Centered */
		background-size: contain; /* Show complete image */
		opacity: 0.12;
	}
}

/* Ensure content is above decoration */
.section--soft#sugerencias .container {
	position: relative;
	z-index: 10; /* Higher z-index to ensure visibility */
}

.section--soft#sugerencias .section__header,
.section--soft#sugerencias .suggestions {
	position: relative;
	z-index: 10;
}

.section__header{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px}

.section__title{
	font-family:"Playfair Display", serif; font-size:clamp(22px,3.4vw,30px); margin:0 0 16px; letter-spacing:.01em
}

.itinerario-status {
	background: #e6f7e6;
	color: #217a36;
	border-radius: 12px;
	padding: 12px 18px;
	margin-bottom: 18px;
	font-weight: 500;
	font-family: Inter, system-ui, sans-serif;
	box-shadow: 0 2px 8px rgba(33,122,54,0.08);
	border: 1px solid #b6e6b6;
	display: block;
}

/* Status line styling */
.status-line {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.status-line:last-child {
	margin-bottom: 0;
}

.status-icon {
	flex-shrink: 0;
}

.status-confirmed {
	color: #047857;
	font-weight: 600;
}

.status-not-attending {
	color: #9ca3af;
	font-style: italic;
}

.status-pending-item {
	color: #92400e;
	font-weight: 600;
	background: #fef3c7;
	padding: 2px 6px;
	border-radius: 4px;
}

.status-line.status-pending {
	color: #92400e;
}

.status-line.status-pending em {
	color: #b45309;
	font-size: 0.9em;
}

/* All confirmed state */
.itinerario-status.all-confirmed {
	background: #d1fae5;
	border-color: #6ee7b7;
	color: #047857;
}

/* Has pending items */
.itinerario-status.has-pending {
	background: #fffbeb;
	border-color: #fde68a;
	color: #78350f;
}

.itinerario-status.loading {
	background: #f5f5f5;
	color: #666;
	border: 1px solid #ddd;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	display: flex;
	align-items: center;
	gap: 12px;
}

.itinerario-status .loading-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #ddd;
	border-top: 2px solid #666;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.btn--secondary {
	background: #f3f3f3;
	color: #888;
	border: 1px solid #ddd;
	margin-top: 8px;
	margin-bottom: 2px;
}
.btn--secondary:hover {
	background: #eaeaea;
	color: #666;
}
.icon-envelope{color:var(--accent); opacity:.9}

.suggestions{display:grid; gap:10px}
.suggestion{color:var(--muted)}
.suggestion a{color:var(--accent); text-decoration:none; border-bottom:1px dashed rgba(184,146,106,.35)}
.suggestion a:hover{opacity:.9}
.separator{opacity:.35; margin:0 8px}
.suggestion__icons{display:inline-flex; gap:6px; vertical-align:middle; margin:0 8px 0 6px; color:var(--accent)}

/* Sub events */
.subevents{display:grid; gap:18px}

/* Responsive grid for sub events */
@media (min-width: 821px) {
	/* Default: auto-fit with minimum 400px per column */
	.subevents{grid-template-columns:repeat(auto-fit,minmax(400px,1fr))}
	
	/* Single event: fixed 2-column layout, event takes only first column */
	.subevents--single {
		grid-template-columns: 1fr 1fr;
	}
	
	.subevents--single .subevent:only-child {
		grid-column: 1;
	}
}

@media (max-width: 820px){
	.subevents{grid-template-columns:1fr}
	/* On mobile, override single event to take full width */
	.subevents--single {
		grid-template-columns: 1fr;
	}
}

.subevent{background:linear-gradient(180deg, rgba(184,146,106,.04), rgba(255,255,255,0)) , var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px; box-shadow:var(--shadow)}
.subevent__header{display:flex; justify-content:space-between; align-items:end; gap:8px}
.subevent__title{margin:0; font-weight:600; font-size:1.15rem}
.subevent__time{color:var(--muted)}
.subevent__place{margin:.35rem 0; color:var(--text)}
.subevent__map a{color:var(--accent); text-decoration:none}

.rsvp{display:grid; grid-template-columns:auto 1fr; gap:10px 12px; align-items:center; margin-top:10px}
.rsvp__label{color:var(--muted)}
.rsvp__control{display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--border); padding:8px; border-radius:12px; width:fit-content; box-shadow:inset 0 0 0 1px rgba(0,0,0,.02)}
.rsvp__btn{appearance:none; border:0; background:linear-gradient(180deg, #faf7f2, #f1ece3); color:#2b2b2e; width:34px; height:34px; border-radius:10px; cursor:pointer; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial}
.rsvp__btn:hover{background:linear-gradient(180deg, #fff, #f3eee6)}
.rsvp__btn:active{transform:scale(.98)}
.rsvp__input{width:64px; text-align:center; color:var(--text); background:transparent; border:0; font-weight:700; font-variant-numeric:tabular-nums; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial}
.rsvp__input:focus{outline:none}
.rsvp__hint{grid-column:1 / -1; color:var(--muted); font-size:.9rem}
.rsvp__action{margin-top:10px; width:100%}

.btn {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 12px;
	border: none;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-size: 0.95rem;
	line-height: 1.2;
}

.btn:hover:not(:disabled):not([disabled]) {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active:not(:disabled):not([disabled]) {
	transform: none;
}

.btn--primary {
	background: linear-gradient(135deg, #6e5336 0%, #8b6c42 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(110,83,54,0.3);
}

.btn--success {
	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}

.btn--danger {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}

.btn:disabled,
.btn[disabled],
.btn--disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
	pointer-events: none;
}

/* Message box styles */
.message-box {
	margin-top: 24px;
	padding: 20px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.message-box__label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--text);
}

.message-box__input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 1.5;
	resize: vertical;
	min-height: 80px;
}

.message-box__input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(110,83,54,0.1);
}

.message-box__hint {
	font-size: 0.85rem;
	color: var(--muted);
	margin-top: 6px;
	margin-bottom: 12px;
}

/* Guest messages styles */
.guest-messages {
	display: grid;
	gap: 12px;
}

.guest-message {
	background: var(--card);
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	font-style: italic;
	color: var(--text);
	position: relative;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.guest-message::before {
	content: '"';
	font-size: 2rem;
	color: var(--accent);
	position: absolute;
	top: -8px;
	left: 12px;
	font-family: serif;
}

/* Gallery/Slider styles */
.slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	background: var(--card);
}

.slider__track {
	display: flex;
	transition: transform 0.5s ease;
}

.slide {
	min-width: 300px;
	max-width: 300px;
	margin-right: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Single image mode - center the image */
.slider--single-image .slider__track {
	justify-content: center;
}

.slider--single-image .slide {
	min-width: 100%;
	max-width: 100%;
	margin-right: 0;
}

/* Two images mode */
.slider--two-images .slider__track {
	justify-content: center;
	gap: 20px;
}

.slider--two-images .slide {
	min-width: calc(50% - 10px);
	max-width: calc(50% - 10px);
	margin-right: 0;
}

.slide img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	display: block;
}

.slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.7);
	color: white;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.slider__nav:hover {
	background: rgba(0,0,0,0.9);
}

.slider__nav--prev {
	left: 20px;
}

.slider__nav--next {
	right: 20px;
}

@keyframes infiniteScroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* Spotify styles */
.spotify iframe {
	width: 100%;
	border-radius: 12px;
	box-shadow: var(--shadow);
}

/* Notification styles */
#notification-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
	pointer-events: none;
}

.notification {
	background: white;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
	border: 1px solid #e5e5e5;
	transform: translateX(400px);
	opacity: 0;
	animation: slideIn 0.3s ease forwards;
	pointer-events: all;
	min-width: 280px;
}

.notification.removing {
	animation: slideOut 0.3s ease forwards;
}

.notification-content {
	display: flex;
	align-items: center;
	gap: 12px;
}

.notification-icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 14px;
	flex-shrink: 0;
}

.notification.success .notification-icon {
	background: #22c55e;
	color: white;
}

.notification.error .notification-icon {
	background: #ef4444;
	color: white;
}

.notification.info .notification-icon {
	background: #3b82f6;
	color: white;
}

@keyframes slideIn {
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes slideOut {
	to {
		transform: translateX(400px);
		opacity: 0;
	}
}

/* Auto-confirm countdown indicator - discrete badge style */
.auto-confirm-countdown {
	position: absolute;
	top: -10px;
	right: -10px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
	border: 2px solid white;
	border-radius: 13px;
	font-size: 0.85rem;
	font-weight: bold;
	color: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	animation: countdownBadgePulse 1s ease-in-out infinite;
	z-index: 100;
	pointer-events: none;
}

.auto-confirm-countdown .countdown-text {
	display: none; /* Hide text, only show number */
}

.auto-confirm-countdown strong {
	display: inline;
	font-weight: bold;
	animation: none;
}

/* Make button container relative for absolute positioning */
.rsvp__actions {
	position: relative;
}

.rsvp__actions .btn {
	position: relative;
	overflow: visible; /* Allow badge to overflow */
}

@keyframes countdownBadgePulse {
	0%, 100% { 
		transform: scale(1);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	}
	50% { 
		transform: scale(1.15);
		box-shadow: 0 3px 12px rgba(34, 197, 94, 0.5);
	}
}

/* Turnstile container - hidden by default, shown when needed */
.turnstile-container {
	display: none;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	min-height: 0;
	height: 0;
	overflow: hidden;
}

/* Show container when turnstile needs interaction */
.turnstile-container.turnstile-visible {
	display: flex !important;
	margin: 16px 0 !important;
	min-height: 65px !important;
	height: auto !important;
}

.turnstile-loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 20px;
	color: var(--muted);
	font-size: 0.9rem;
}

.turnstile-loading::before {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid var(--border);
	border-top: 2px solid var(--accent);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Disabled state for RSVP actions */
.rsvp__action:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.rsvp__action.loading {
	position: relative;
	color: transparent;
}

.rsvp__action.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.slider__nav {
		width: 40px;
		height: 40px;
		font-size: 14px;
	}
	
	.slider__nav--prev {
		left: 10px;
	}
	
	.slider__nav--next {
		right: 10px;
	}
	
	.slide img {
		height: 300px;
	}
	
	/* Two images mode on mobile - stack vertically */
	.slider--two-images .slider__track {
		flex-direction: column;
		gap: 15px;
	}
	
	.slider--two-images .slide {
		min-width: 100%;
		max-width: 100%;
	}
	
	/* Regular slider on mobile */
	.slider:not(.slider--single-image):not(.slider--two-images) .slide {
		min-width: 280px;
		max-width: 280px;
		margin-right: 15px;
	}
	
	#notification-container {
		left: 20px;
		right: 20px;
		bottom: 20px;
	}
	
	.notification {
		min-width: auto;
		width: 100%;
	}
}
