﻿/* ============================================
   SITE.CSS - UNIVERSAL THEME CORE STYLES
   "I Am Everywhere" - Alicia Mae Foundation
   ============================================ */

/* ===== COLOR PALETTE ===== */
:root {
    /* Deep Space Blues & Purples */
    --cosmos-deep: #0a0e27;
    --cosmos-mid: #1a1f3a;
    --cosmos-light: #2d3561;
    /* Celestial Purples */
    --nebula-purple: #8b7ec8;
    --nebula-lavender: #b8a9d9;
    --nebula-soft: #d4c5f9;
    /* Starlight & Ethereal */
    --starlight: #e8e0ff;
    --moonlight: #f5f0ff;
    --cosmic-white: #ffffff;
    /* Cosmic Accents */
    --cosmic-pink: #ff9ec9;
    --cosmic-gold: #ffd700;
    --cosmic-cyan: #7dd3fc;
    /* Gradients */
    --gradient-cosmos: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d3561 100%);
    --gradient-nebula: linear-gradient(135deg, #8b7ec8 0%, #b8a9d9 50%, #d4c5f9 100%);
    --gradient-aurora: linear-gradient(135deg, #7dd3fc 0%, #8b7ec8 50%, #ff9ec9 100%);
}

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;400;700&family=Fredoka:wght@300;400;500;600;700&display=swap');

/* ===== GLOBAL RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    background: var(--cosmos-deep);
    color: var(--starlight);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

    /* Cosmic background with stars */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(2px 2px at 20% 30%, white, transparent), radial-gradient(2px 2px at 60% 70%, white, transparent), radial-gradient(1px 1px at 50% 50%, white, transparent), radial-gradient(1px 1px at 80% 10%, white, transparent), radial-gradient(2px 2px at 90% 60%, white, transparent), radial-gradient(1px 1px at 33% 80%, white, transparent), radial-gradient(1px 1px at 15% 90%, white, transparent);
        background-size: 200% 200%;
        background-position: 0% 0%;
        animation: twinkle-stars 60s linear infinite;
        opacity: 0.6;
        pointer-events: none;
        z-index: 0;
    }

@keyframes twinkle-stars {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }

    25% {
        opacity: 0.8;
        transform: scale(1.02);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.98);
    }

    75% {
        opacity: 0.7;
        transform: scale(1.01);
    }
}

/* Nebula overlay effect */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient( ellipse at center, rgba(139, 126, 200, 0.15) 0%, rgba(139, 126, 200, 0.08) 30%, transparent 70% );
    animation: nebula-drift 40s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes nebula-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }

    33% {
        transform: translate(10%, 10%) rotate(120deg);
        opacity: 0.5;
    }

    66% {
        transform: translate(-10%, 5%) rotate(240deg);
        opacity: 0.4;
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: normal;
    letter-spacing: 2px;
    color: var(--nebula-soft);
}

h1 {
    font-size: 3.5rem;
    text-shadow: 0 0 20px rgba(139, 126, 200, 0.5);
}

h2 {
    font-size: 2.5rem;
    text-shadow: 0 0 15px rgba(139, 126, 200, 0.4);
}

h3 {
    font-size: 2rem;
}

p {
    line-height: 1.8;
    color: var(--starlight);
}

a {
    color: var(--nebula-lavender);
    text-decoration: none;
    transition: all 0.3s ease;
}

    a:hover {
        color: var(--nebula-soft);
        text-shadow: 0 0 10px rgba(139, 126, 200, 0.6);
    }

/* ===== LAYOUT CONTAINERS ===== */
main {
    position: relative;
    z-index: 2;
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cosmic overlay */
.cosmic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--cosmic-gold);
    color: var(--cosmos-deep);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

    .skip-to-content:focus {
        top: 0;
        outline: 3px solid var(--nebula-lavender);
        outline-offset: 2px;
    }

/* ===== COSMIC CARDS ===== */
.cosmic-card {
    background: rgba(26, 31, 58, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 126, 200, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .cosmic-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient( circle, rgba(139, 126, 200, 0.1) 0%, transparent 70% );
        animation: card-glow 15s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes card-glow {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    50% {
        transform: translate(10%, 10%);
        opacity: 0.6;
    }
}

.cosmic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(139, 126, 200, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 126, 200, 0.5);
}

/* ===== BUTTONS ===== */
.btn-cosmic {
    background: var(--gradient-nebula);
    color: var(--cosmic-white);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(139, 126, 200, 0.3);
    position: relative;
    overflow: hidden;
}

    .btn-cosmic::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-cosmic:hover::before {
        width: 300px;
        height: 300px;
    }

    .btn-cosmic:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(139, 126, 200, 0.5);
    }

    .btn-cosmic:active {
        transform: translateY(0);
    }

.btn-outline-cosmic {
    background: transparent;
    color: var(--nebula-lavender);
    border: 2px solid var(--nebula-purple);
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    .btn-outline-cosmic:hover {
        background: rgba(139, 126, 200, 0.2);
        border-color: var(--nebula-lavender);
        color: var(--nebula-soft);
        transform: translateY(-2px);
    }

/* ===== DIVIDERS ===== */
.cosmic-divider {
    margin: 40px auto;
    width: 60%;
    height: 2px;
    background: linear-gradient( to right, transparent, var(--nebula-purple), var(--cosmic-cyan), var(--nebula-purple), transparent );
    opacity: 0.5;
    position: relative;
}

    .cosmic-divider::before,
    .cosmic-divider::after {
        content: '✨';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: var(--nebula-lavender);
    }

    .cosmic-divider::before {
        left: -30px;
    }

    .cosmic-divider::after {
        right: -30px;
    }

/* ===== ICONS & SYMBOLS ===== */
.cosmic-icon {
    display: inline-block;
    animation: gentle-float 3s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.star-cluster {
    font-size: 40px;
    text-shadow: 0 0 10px rgba(139, 126, 200, 0.8);
    animation: cosmic-pulse 4s ease-in-out infinite;
}

@keyframes cosmic-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--cosmos-mid);
}

::-webkit-scrollbar-thumb {
    background: var(--nebula-purple);
    border-radius: 6px;
    border: 2px solid var(--cosmos-mid);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--nebula-lavender);
    }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .cosmic-card {
        padding: 20px;
    }

    .btn-cosmic,
    .btn-outline-cosmic {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .cosmic-card {
        padding: 15px;
        border-radius: 15px;
    }

    .btn-cosmic,
    .btn-outline-cosmic {
        padding: 10px 25px;
        font-size: 15px;
    }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--nebula-lavender);
    outline-offset: 2px;
}

/* ===== FLOATING ACTION BUTTON (Support) ===== */
.donation-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8b7ec8 0%, #b8a9d9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 30px rgba(139, 126, 200, 0.6), 0 0 40px rgba(139, 126, 200, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: fab-glow 3s ease-in-out infinite;
}

@keyframes fab-glow {
    0%, 100% {
        box-shadow: 0 6px 30px rgba(139, 126, 200, 0.6), 0 0 40px rgba(139, 126, 200, 0.3);
    }

    50% {
        box-shadow: 0 8px 40px rgba(139, 126, 200, 0.8), 0 0 60px rgba(139, 126, 200, 0.5);
    }
}

.donation-fab:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 10px 40px rgba(139, 126, 200, 0.8), 0 0 60px rgba(139, 126, 200, 0.6);
}

.donation-fab-icon {
    width: 40px; /* Replaces font-size */
    height: 40px; /* Replaces font-size */
    object-fit: contain; /* Ensures the icon doesn't stretch */
    animation: heart-pulse-fab 2s infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6)); /* Adds a little "holy" glow to the star */
}

@keyframes heart-pulse-fab {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }
}

.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(139, 126, 200, 0.3);
}

.donation-fab:hover .donation-fab-tooltip {
    opacity: 1;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-cosmic {
    color: var(--nebula-lavender);
}

.text-starlight {
    color: var(--starlight);
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mt-5 {
    margin-top: 50px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.mb-5 {
    margin-bottom: 50px;
}

.p-1 {
    padding: 10px;
}

.p-2 {
    padding: 20px;
}

.p-3 {
    padding: 30px;
}

.p-4 {
    padding: 40px;
}

.p-5 {
    padding: 50px;
}
