/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL BACKGROUND */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a52 50%, #0f2847 100%);
    background-size: 300% 300%;
    animation: bgShift 30s ease-in-out infinite;
    color: #e0e8f0;
    margin: 0;
    padding: 20px;
    margin-top: 100px;
    overflow-x: hidden;
}

/* FIX: WordPress admin bar */
body.page,
body.admin-bar {
    margin-top: 68px !important;
    padding-top: 0 !important;
}

@keyframes bgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Tools Index Page */
.tools-list-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tool-item {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    transition: transform 0.15s ease, background 0.2s ease;
}

.tool-item:hover {
    transform: scale(1.02);
    background: rgba(255,255,255,0.08);
}

.tool-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.tool-description {
    font-size: 18px;
    color: #c7d4e3;
}

input, select, button {
    padding: 6px;
    font-size: 14px;
}

.tool-row:hover {
    background: #f0f4ff;
}

button {
    cursor: pointer;
}

/* FLOATING GLOWS */
.bg-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: -120px;
    right: -120px;
    animation: float 20s infinite ease-in-out;
}

.glow-2 {
    bottom: -180px;
    left: -180px;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(30px, 30px); }
}

/* MAIN CONTAINER */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: auto;
    background: rgba(10, 22, 40, 0.6);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* TOP IMAGE */
.top-image {
    width: 100%;
    margin-bottom: 25px;
}

/*NAV LINKS */
.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* SITE */
.site-header {
    width: 100%;
    background: #0f2c45;
    padding: 30px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.site-logo {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

/* Wrapper (layout only) */
.site-links {
    display: block;
    text-align: center;
}


/* Base link styling (copy of site-logo styling) */
.site-link {
    font-size: 2.4rem;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    margin: 0 2rem; /* increase horizontal spacing */
    text-shadow: none;
    transition: text-shadow 0.2s ease;
}

/* Individual glow on hover — ONLY the hovered link */
.site-link:hover {
    text-shadow:
        0 0 10px rgba(0, 217, 255, 1),
        0 0 20px rgba(0, 217, 255, 0.9),
        0 0 30px rgba(0, 217, 255, 0.6);
    text-decoration: none;
}

.site-links img {
    flex-basis: 100%;
    width: 40%;        /* restore your intended scaling */
    height: auto;
    display: block;
    margin: 0 auto 12px auto;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    display: block; /* IMPORTANT */
}

.site-header-logo {
    display: block;
    max-width: 850px;   /* adjust size here */
    width: 100%;        /* responsive shrink */
    height: auto;
    margin: 0 auto 12px auto;
}

.header-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* HEADERS */
h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #00d9ff;
    text-align: center;
}

h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #ffeb3b;
    font-size: 1.4rem;
}

/* PARAGRAPHS */
p {
    line-height: 1.6;
    margin-bottom: 18px;
    color: #c7d4e3;
}

/* BULLET LISTS */
ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* VIDEO EMBEDS */
.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 217, 255, 0.3);
    margin-bottom: 30px;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 100%;
    border: none;
}

/* PRIMARY BUTTON */
.button,
.btn-primary {
    display: inline-block;

    /* NEW dynamic gradient background */
    background: linear-gradient(135deg,
        #ff4d4d,
        #ffae42,
        #ffee55,
        #55ff88,
        #55bbff,
        #aa66ff,
        #ff4d4d
    );
    background-size: 400% 400%;

    animation: colorDrift 12s ease-in-out infinite, glowPulse 3s ease-in-out infinite;

    color: #0a1628;
    padding: 16px 34px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    transition: opacity 0.2s;
}



/* Hover stays the same */
.button:hover,
.btn-primary:hover {
    opacity: 0.9;
}

@keyframes colorDrift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 12px rgba(255, 77, 77, 0.5);
        filter: brightness(1);
    }
    25% {
        box-shadow: 0 0 16px rgba(255, 174, 66, 0.55);
        filter: brightness(1.07);
    }
    40% {
        box-shadow: 0 0 20px rgba(255, 238, 85, 0.6);
        filter: brightness(1.12);
    }
    60% {
        box-shadow: 0 0 20px rgba(85, 255, 136, 0.55);
        filter: brightness(1.1);
    }
    80% {
        box-shadow: 0 0 20px rgba(85, 187, 255, 0.55);
        filter: brightness(1.12);
    }
    100% {
        box-shadow: 0 0 12px rgba(255, 77, 77, 0.5);
        filter: brightness(1);
    }
}


/* NEW: Shimmer animation keyframes */
@keyframes shimmerPulse {
    0% {
        box-shadow: 0 0 8px rgba(0, 217, 255, 0.4),
                    0 0 14px rgba(255, 235, 59, 0.25);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(0, 217, 255, 0.9),
                    0 0 26px rgba(255, 235, 59, 0.6);
        filter: brightness(1.18);
    }
    100% {
        box-shadow: 0 0 8px rgba(0, 217, 255, 0.4),
                    0 0 14px rgba(255, 235, 59, 0.25);
        filter: brightness(1);
    }
}

@keyframes colorWave {
    0% {
        box-shadow:
            0 0 10px rgba(255, 0, 0, 0.5),
            0 0 20px rgba(255, 0, 0, 0.3);
        filter: brightness(1);
    }
    25% {
        box-shadow:
            0 0 12px rgba(255, 235, 59, 0.7),
            0 0 26px rgba(255, 235, 59, 0.5);
        filter: brightness(1.12);
    }
    50% {
        box-shadow:
            0 0 14px rgba(0, 255, 120, 0.7),
            0 0 28px rgba(0, 255, 120, 0.5);
        filter: brightness(1.18);
    }
    75% {
        box-shadow:
            0 0 14px rgba(0, 170, 255, 0.8),
            0 0 28px rgba(0, 170, 255, 0.55);
        filter: brightness(1.15);
    }
    100% {
        box-shadow:
            0 0 10px rgba(255, 0, 0, 0.5),
            0 0 20px rgba(255, 0, 0, 0.3);
        filter: brightness(1);
    }
}

.subtitle {
    font-size: 1.25rem;
    color: #e0f7ff; 
    text-align: center;

    /* Glow outline */
    text-shadow:
        0 0 6px rgba(0, 217, 255, 0.8),
        0 0 12px rgba(0, 217, 255, 0.6),
        0 0 20px rgba(0, 217, 255, 0.45);

    /* Optional slow glow animation */
    animation: subtitleGlow 4s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0% {
        text-shadow:
            0 0 6px rgba(0, 217, 255, 0.8),
            0 0 12px rgba(0, 217, 255, 0.6),
            0 0 20px rgba(0, 217, 255, 0.45);
    }
    50% {
        text-shadow:
            0 0 10px rgba(0, 217, 255, 1),
            0 0 18px rgba(0, 217, 255, 0.85),
            0 0 26px rgba(0, 217, 255, 0.6);
    }
    100% {
        text-shadow:
            0 0 6px rgba(0, 217, 255, 0.8),
            0 0 12px rgba(0, 217, 255, 0.6),
            0 0 20px rgba(0, 217, 255, 0.45);
    }
}


/* SECONDARY BUTTON */
.btn-secondary {
    display: inline-block;
    background: #555;
    color: #ddd;
    padding: 16px 34px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary:hover {
    opacity: 0.6;
}

/* BUTTON WRAPPER FOR SPACING */
.download-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* LINKS */
a,
.text-link {
    color: #00d9ff;
    text-decoration: none;
}

a:hover,
.text-link:hover {
    text-decoration: underline;
}

#clear-filters:hover {
    text-decoration: underline;
}

/* FOOTER LINKS */
#footer,
.footer-links {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #7a8fa3;
}

#footer a,
.footer-links a {
    color: #00d9ff;
    margin: 0 10px;
}

#footer a:hover,
.footer-links a:hover {
    text-decoration: underline;
}

/* Tools filters */
.filters-container {
    max-width: 900px;
    margin: 0 auto 20px auto;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-input {
    padding: 10px;
    width: 180px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.filter-input::placeholder {
    color: #ccc;
}

/* Dropdown fix */
select.filter-input {
    background: rgba(20, 30, 45, 0.9);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    appearance: none;
}

select.filter-input option {
    background: rgba(20, 30, 45, 0.95);
    color: #fff;
}

/* LOGO Image */
.ggf-logo {
    width: 40vw;        /* logo is 40 percent of screen width */
    max-width: 60vw;    /* optional safety cap, still relative to screen */
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

/* Center the hero CTA button */
.cta-hero {
    display: block;
    margin: 0 auto;
    text-align: center;
}
/* --- GLOBAL SAFETY --- */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .ggf-logo {
        width: 60vw;
        height: auto;
        display: block;
        margin: 0 auto 10px auto;
    }

    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
    h2.section-heading {
        font-size: 2rem;
    }
    .alert-container {
        flex-direction: column;
        align-items: center;
    }
    .alert-card {
        max-width: 100%;
    }
}   /* <-- THIS closing brace was missing */


@media (max-width: 768px) {
    .ggf-logo {
        width: 40vw;
        height: auto;
        display: block;
        margin: 0 auto 10px auto;
    }

    section {
        padding: 2rem 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .cta-hero {
        font-size: 1.2rem;
        padding: 0.75rem 2rem;
    }
    h2.section-heading {
        font-size: 1.75rem;
    }
    .tiers-grid {
        grid-template-columns: 1fr;
    }
    .tier-card.featured {
        transform: scale(1.02);
    }
    .resource-item {
        flex-direction: column;
        text-align: center;
    }
    .resource-icon {
        margin: 0 0 0.5rem 0;
    }
    .download-btn {
        margin-top: 1rem;
    }
}


/* --- MOBILE SPACING FIXES --- */
@media (max-width: 480px) {
    .ggf-logo {
        width: 145vw;  /* visually matches what 400px looked like */
        height: auto;
        display: block;
        margin: 0 auto 10px auto;
    }

    section {
        padding-top: 1.0rem !important;
        padding-bottom: 0.15rem !important;
    }

    /* Make the specific section closer to hero */
    .critical-info-section {
        margin-top: -1rem;  /* tighten gap under hero */
    }
    
    /* Ensure header doesn't overlap hero */
    .header-spacer {
        height: auto !important;
        min-height: 70px; /* safe minimum */
    }

    /* Push hero content downward only on phones */
    .hero-content-wrapper {
        margin-top: 2.5rem; /* adjust higher/lower if needed */
    }

    /* Slight hero typography adjustments to reduce crowding */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* --- MOBILE ONLY RULES (max-width: 480px) --- */
@media (max-width: 480px) {

    /* Safe logo size (prevents overflow but still looks big) */
    .ggf-logo {
        width: 85vw;
        max-width: 85vw;
        height: auto;
        display: block;
        margin: 0 auto 10px auto;
    }

    /* Fix oversized header links ONLY on phones */
    .site-link {
        font-size: 1.2rem;
        margin: 0 0.5rem;
    }

    /* Section spacing adjustments */
    section {
        padding-top: 1rem !important;
        padding-bottom: 0.15rem !important;
    }

    /* Pull the critical info section up */
    .critical-info-section {
        margin-top: -1rem;
    }
    
    /* Ensure the header does not overlap content */
    .header-spacer {
        height: auto !important;
        min-height: 70px;
    }

    /* Hero content push spacing */
    .hero-content-wrapper {
        margin-top: 2.5rem;
    }

    /* Slight hero typography tweaks */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Mobile H1 optimization */
    h1 {
        font-size: 1.7rem;
        line-height: 1.2;
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0 1rem;
        word-break: break-word;
        text-align: center;
    }
}