/* ===== Directions Button ===== */
.directions-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fde68a;                        /* amber-200 */
    border-radius: 9999px;
    border: 1.5px solid rgba(253, 230, 138, 0.35);
    background: rgba(253, 230, 138, 0.05);
    backdrop-filter: blur(6px);
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s ease,
                border-color 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    /* Pulsing gold glow ring */
    animation: directionsPulse 3s ease-in-out infinite;
}

@keyframes directionsPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(253, 230, 138, 0.0); }
    50%       { box-shadow: 0 0 0 5px rgba(253, 230, 138, 0.12); }
}

.directions-btn:hover {
    color: #fff;
    border-color: rgba(253, 230, 138, 0.75);
    background: rgba(253, 230, 138, 0.14);
    box-shadow: 0 0 18px rgba(253, 230, 138, 0.25),
                0 4px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px) scale(1.03);
    animation: none; /* freeze pulse ring while hovered */
}

.directions-btn:active {
    transform: translateY(0) scale(0.97);
}

/* Shimmer sweep overlay */
.directions-btn-shimmer {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
    transition: background-position 0s;
}
.directions-btn:hover .directions-btn-shimmer {
    background-position: 200% 0;
    transition: background-position 0.55s ease;
}

/* Location pin icon — spins a quarter turn on hover */
.directions-btn-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem !important;
}
.directions-btn:hover .directions-btn-icon {
    transform: rotate(-25deg) scale(1.2);
}

/* Arrow slides in from the left on hover */
.directions-btn-arrow {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.9rem !important;
}
.directions-btn:hover .directions-btn-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Label text */
.directions-btn-label {
    position: relative;
    z-index: 1;
}

/* ===== End Directions Button ===== */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
.signature-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #775a19, transparent);
    width: 120px;
    margin: 1.5rem auto;
}

/* Custom scrollbar for wishes list */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(119, 90, 25, 0.2);
    border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(119, 90, 25, 0.5);
}

/* Entry animation for dynamically added guest messages */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-16px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}
.animate-wish-entry {
    animation: slideInFromTop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== Messages of Love — Card Entrance Animations ===== */

/* Cards start hidden and slide up */
.wish-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease,
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Revealed state triggered by JS IntersectionObserver */
.wish-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shimmer glow on hover */
.wish-card:hover {
    box-shadow: 0 0 0 1px rgba(119, 90, 25, 0.25),
                0 4px 20px rgba(119, 90, 25, 0.08);
}

/* ===== Floating / pulse avatar animation ===== */
@keyframes avatarFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-3px); }
}
.wish-avatar {
    animation: avatarFloat 3s ease-in-out infinite;
}

/* ===== Shimmer sweep on avatar ===== */
@keyframes avatarShimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}
.wish-avatar-shimmer {
    background: linear-gradient(
        110deg,
        #fef3c7 30%,
        #fde68a 50%,
        #fef3c7 70%
    );
    background-size: 200% auto;
    animation: avatarShimmer 2.5s linear infinite;
}

/* ===== Auto-scroll wishes list ===== */
#wishes-list.auto-scroll {
    overflow: hidden;
}

/* ===== "Messages of Love" heading text shimmer ===== */
@keyframes headingShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.wishes-heading-shimmer {
    background: linear-gradient(
        90deg,
        #000d22 0%,
        #775a19 40%,
        #b8942d 55%,
        #775a19 70%,
        #000d22 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: headingShimmer 4s linear infinite;
}

/* Dynamically added cards also need visibility from the start */
.animate-wish-entry {
    opacity: 1 !important;
    transform: none;
    animation: slideInFromTop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


