/* ============================================
   MEMORIAL.CSS - MEMORIAL SPECIFIC STYLES
   "I Am Everywhere" - Alicia Mae Foundation
   Cosmic Universe Theme

   Enhanced: fluid layout, nav grid promoted from
   inline styles, purple halo accents, modern
   responsive patterns.
   ============================================ */

/* ===== NAVIGATION ===== */
.memorial-nav-brand {
    font-family: 'Georgia', serif;
    font-size: clamp(18px, 3vw, 28px);
    color: var(--nebula-soft);
    font-weight: bold;
    letter-spacing: 2px;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    text-shadow: 0 0 10px rgba(139, 126, 200, 0.5);
    text-decoration: none;
}

    .memorial-nav-brand::before {
        content: '🌟';
        display: inline-block;
        font-size: 1.25em;
        animation: star-rotate 8s linear infinite;
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }

@keyframes star-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.memorial-nav-brand:hover {
    color: var(--cosmic-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transform: scale(1.02);
}

.memorial-nav-items .nav-link {
    font-family: 'Georgia', serif;
    font-size: 18px;
    color: var(--starlight);
    margin-left: 15px;
    padding: 8px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

    .memorial-nav-items .nav-link .nav-icon {
        margin-right: 8px;
        font-size: 20px;
    }

/* ===== MEMORIAL CONTAINER ===== */
.memorial-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(20px, 4vw, 40px) clamp(10px, 3vw, 20px);
    flex: 1;
    position: relative;
    z-index: 2;
}

.memorial-content > * {
    position: relative;
    z-index: 1;
}

/* ===== STARS & CELESTIAL ELEMENTS ===== */
.stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    animation: stars-twinkle 3s infinite;
}

    .stars .cosmic-icon {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
    }

@keyframes stars-twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

/* ===== SUBTITLE ===== */
.subtitle {
    font-size: var(--fs-subtitle);
    color: var(--nebula-lavender);
    margin-bottom: 30px;
    font-style: italic;
    text-shadow: 0 0 10px rgba(139, 126, 200, 0.4);
    font-weight: 400;
}

/* ===== MESSAGE BLOCKS ===== */
.message {
    font-size: var(--fs-body);
    line-height: 1.8;
    color: var(--starlight);
    margin: 30px 0;
    padding: 0 clamp(10px, 2vw, 20px);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    text-wrap: pretty;
}

/* ===== QUOTE PUNCTUATION ===== */
.quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote::after {
    content: '"';
    position: absolute;
    bottom: -50px;
    right: 20px;
    font-size: 80px;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===== COSMIC SYMBOLS (ANIMALS) ===== */
.animals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(15px, 4vw, 40px);
    margin: 30px 0;
    flex-wrap: wrap;
}

.animal {
    width: clamp(45px, 8vw, 60px);
    height: auto;
    animation: cosmic-float 4s ease-in-out infinite;
    opacity: 0.9;
    filter: drop-shadow(0 0 12px var(--holo-pink-glow));
    transition: transform 0.3s ease, filter 0.3s ease;
}

    .animal:hover {
        transform: scale(1.2);
        filter: drop-shadow(0 0 20px var(--halo-purple-bright));
    }

.elephant {
    animation-delay: 0s;
}

.bear {
    animation-delay: 2s;
}

@keyframes cosmic-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-15px) rotate(5deg);
    }

    66% {
        transform: translateY(-8px) rotate(-5deg);
    }
}

/* ===== MEMORIAL NAV GRID ===== */
.memorial-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0 clamp(0px, 2vw, 20px);
}

.nav-grid-card {
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--holo-pink-mid);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s var(--ease-holo), box-shadow 0.3s var(--ease-holo), border-color 0.3s var(--ease-holo);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 20px var(--holo-pink-glow), inset 0 0 20px rgba(255, 110, 199, 0.1);
}

    .nav-grid-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, var(--halo-purple-glow) 0%, transparent 60%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-grid-card:hover::before,
    .nav-grid-card:focus-visible::before {
        opacity: 0.3;
        animation: card-glow-pulse 2s ease-in-out infinite;
    }

@keyframes card-glow-pulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

.nav-grid-card:hover,
.nav-grid-card:focus-visible {
    transform: translateY(-5px);
    border-color: var(--halo-purple-bright);
    box-shadow: 0 0 30px var(--halo-purple-glow), 0 10px 40px rgba(199, 125, 255, 0.4), inset 0 0 30px rgba(199, 125, 255, 0.15);
}

.card-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: icon-float 3s ease-in-out infinite;
    z-index: 1;
}

    .card-icon img {
        width: auto;
        height: 100%;
        max-width: 100%;
        filter: drop-shadow(0 0 10px var(--holo-pink-glow));
    }

@keyframes icon-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.card-title {
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--holo-pink-soft);
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--holo-pink-glow);
    z-index: 1;
}

.card-description {
    font-size: 14px;
    color: var(--starlight);
    opacity: 0.85;
    line-height: 1.4;
    z-index: 1;
}

.nav-grid-card.featured {
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.18) 0%, rgba(26, 31, 58, 0.8) 100%);
    border-color: var(--halo-purple-bright);
}

/* ===== SITE FOOTER ===== */
.nav-footer {
    background: rgba(26, 31, 58, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(139, 126, 200, 0.2);
    padding: clamp(40px, 8vw, 60px) 20px calc(clamp(30px, 6vw, 50px) + env(safe-area-inset-bottom, 0px));
    margin-top: clamp(60px, 10vw, 100px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .nav-footer::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient( circle, rgba(199, 125, 255, 0.06) 0%, transparent 70% );
        animation: footer-cosmic-drift 20s infinite ease-in-out;
        z-index: 0;
    }

@keyframes footer-cosmic-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(15px, 15px) rotate(180deg);
    }
}

.nav-footer-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-message-container {
    margin-bottom: 40px;
}

.footer-message {
    font-size: clamp(17px, 2.6vw, 22px);
    color: var(--nebula-soft);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    text-wrap: balance;
}

.footer-tagline {
    font-size: clamp(15px, 2.2vw, 18px);
    color: var(--cosmic-pink);
    font-style: italic;
}

.footer-heart-icon {
    width: 20px;
    vertical-align: middle;
    filter: drop-shadow(0 0 6px rgba(255, 158, 201, 0.6));
    animation: heart-pulse 2s infinite;
}

.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.divider-star-img {
    width: 24px;
    height: auto;
    filter: drop-shadow(0 0 8px var(--holo-pink-glow));
    animation: stars-twinkle 3s infinite;
}

    .divider-star-img:last-child {
        animation-delay: 1.5s;
    }

.divider-line {
    flex: 1;
    max-width: 400px;
    height: 1px;
    background: linear-gradient( to right, transparent, var(--halo-purple-glow), transparent );
}

.footer-cosmos {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin: 40px 0;
    opacity: 0.7;
}

    .footer-cosmos img {
        filter: drop-shadow(0 0 8px var(--halo-purple-glow));
    }

.footer-foundation-info {
    margin: 40px 0;
}

.foundation-name {
    font-size: 20px;
    color: var(--nebula-lavender);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.foundation-tagline {
    font-size: 16px;
    color: var(--starlight);
    font-style: italic;
    margin-bottom: 12px;
    opacity: 0.9;
}

.foundation-dates {
    font-size: 17px;
    color: var(--cosmic-gold);
    font-weight: 500;
}

.footer-divider-small {
    margin: 30px auto;
    width: 200px;
}

.divider-line-small {
    display: block;
    height: 1px;
    background: linear-gradient( to right, transparent, rgba(139, 126, 200, 0.4), transparent );
}

.footer-copyright {
    margin-top: 30px;
}

    .footer-copyright p {
        font-size: 14px;
        color: var(--nebula-purple);
        margin: 10px 0;
        opacity: 0.85;
    }

.footer-memorial-note {
    font-style: italic;
    color: var(--nebula-lavender);
    margin-top: 15px;
}

.footer-mini-icon {
    width: 28px;
    height: auto;
    vertical-align: middle;
    margin: 0 8px;
    filter: drop-shadow(0 0 5px var(--holo-pink-glow));
}

/* ===== FOOTER MESSAGE ===== */
.footer {
    margin-top: 40px;
    font-size: 16px;
    color: var(--nebula-lavender);
    font-style: italic;
    font-weight: 400;
}

.footer-foundation-line {
    margin-top: 15px;
    display: block;
    color: var(--nebula-lavender);
}

.heart {
    color: var(--cosmic-pink);
    font-size: 24px;
    margin: 0 5px;
    display: inline-block;
    animation: heart-pulse 2s infinite;
    filter: drop-shadow(0 0 8px rgba(255, 158, 201, 0.6));
    vertical-align: middle;
}

@keyframes heart-pulse {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }
}

/* ===== FLOATING ACTION BUTTON EXTRAS ===== */
.donation-fab:active {
    transform: scale(1.05) translateY(-1px);
}

.donation-fab-icon {
    font-size: 32px;
    width: 38px;
    height: auto;
    animation: heart-pulse 2s infinite;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.donation-fab-tooltip-icon {
    width: 30px;
    height: 40px;
    vertical-align: middle;
    margin-left: 8px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

.donation-fab-tooltip {
    position: absolute;
    right: 85px;
    background: rgba(26, 31, 58, 0.95);
    color: var(--starlight);
    padding: 10px 16px;
    border-radius: 20px;
    font-family: 'Georgia', serif;
    font-size: 15px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(199, 125, 255, 0.4);
}

.donation-fab:hover .donation-fab-tooltip,
.donation-fab:focus-visible .donation-fab-tooltip {
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .quote::before {
        top: -12px;
        left: 12px;
        font-size: 60px;
    }

    .quote::after {
        bottom: -38px;
        right: 12px;
        font-size: 60px;
    }

    .donation-fab-tooltip {
        display: none;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .memorial-nav-brand::before,
    .stars,
    .animal,
    .card-icon,
    .heart,
    .donation-fab-icon,
    .nav-grid-card::before {
        animation: none !important;
    }
}
