/* ── OriyaEvents Global Transitions & SaaS UX ────────────────────────────── */

/* Page fade-in / fade-out */
body {
    opacity: 0;
    transition: opacity 0.24s ease;
}
body.page-ready {
    opacity: 1;
}
body.page-leaving {
    opacity: 0;
    pointer-events: none;
}

/* ── Ripple on buttons ──────────────────────────────────────────────────── */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(2.5); opacity: 0; }
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Smooth focus rings (all inputs) ────────────────────────────────────── */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(216,27,96,0.2) !important;
    border-color: #d81b60 !important;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

/* ── Skeleton loading pulse ─────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #fce4ec 25%, #f8bbd0 50%, #fce4ec 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.4s infinite;
    border-radius: 8px;
}
@keyframes skeletonPulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Tooltip ─────────────────────────────────────────────────────────────── */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1a1210;
    color: white;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 999;
}
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Smooth card hover ──────────────────────────────────────────────────── */
.feature-card,
.action-card,
.package-card,
.stat-card,
.invitation-card,
.history-item,
.gallery-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

/* ── Toast notification ─────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1210;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    white-space: nowrap;
    font-family: 'Heebo', sans-serif;
}
.toast.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.toast-success { background: linear-gradient(135deg, #2e7d32, #43a047); }
.toast.toast-error   { background: linear-gradient(135deg, #c62828, #e53935); }
.toast.toast-rose    { background: linear-gradient(135deg, #d81b60, #880e4f); }
