/* =================================
   Version v3
   BROWSE BY AGE SECTION
================================= */



* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    position: relative;
    color: white;

    background: linear-gradient(
        180deg,
        #07132a 0%,
        #0c2a5a 30%,
        #4b3fb3 65%,
        #ff7e5f 100%
    );
}


/* =================================
   STAR FIELD
================================= */

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background-image:
        radial-gradient(circle at 5% 10%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 15% 40%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 25% 70%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 55% 60%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 70% 30%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 85% 50%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 95% 80%, #ffffff 1px, transparent 1px);
    opacity: 0.85;
}


/* =================================
   HEADER
================================= */

header {
    text-align: center;
    padding: 90px 20px 40px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0;

    background: linear-gradient(
        90deg,
        #00c6ff,
        #5f9bff,
        #ff7eb3
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 20px;
    font-weight: 500;
    margin-top: 15px;
    opacity: 0.95;
}

.brand-statement {
    margin-top: 18px;
    font-size: 16px;
    opacity: 0.85;
}


/* =================================
   QUICK NAV
================================= */

html {
    scroll-behavior: smooth;
}

.quick-nav {
    position: fixed;
    top: 90px;
    right: 14px;
    z-index: 9999;
}

.quick-nav-toggle {
    display: none;
    background: rgba(12, 42, 90, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.quick-nav-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(12, 42, 90, 0.78);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.24);
    min-width: 150px;
}

.quick-nav-panel a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quick-nav-panel a:hover {
    background: rgba(255,255,255,0.14);
    color: #ffd6f5;
    transform: translateX(2px);
}

/* Desktop */
@media (min-width: 901px) {
    .quick-nav-panel {
        display: flex !important;
    }
}

/* Mobile/tablet */
@media (max-width: 900px) {
    .quick-nav {
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: auto;
    }

    .quick-nav-toggle {
        display: inline-block;
    }

    .quick-nav-panel {
        display: none;
        margin-top: 10px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .quick-nav.open .quick-nav-panel {
        display: flex;
    }
}


/* =================================
   ABOUT SECTION
================================= */

.about-section {
    max-width: 850px;
    margin: 0 auto 40px;
    padding: 0 20px;
    line-height: 1.7;
    font-size: 16px;
}

.about-section h2 {
    text-align: center;
    font-size: 20px; /* adjust slightly if needed */
}

.about-list {
    margin: 20px 0;
    padding-left: 20px;
}

.about-list li {
    margin-bottom: 8px;
}


.guide-main-link {
    color: rgba(255, 182, 193, 0.9);
    font-style: normal;
    font-weight: 500;
    text-decoration: underline;
}

.guide-main-link:hover {
    color: rgba(255, 182, 193, 1);
}


/* =================================
   Age Hub Disclaimer
================================= */

.age-disclaimer {
    font-size: 0.8rem;   /* smaller */
    opacity: 0.8;
    margin-top: 12px;
}


/* =================================
   DIRECTORY TITLE
================================= */

.directory-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}



/* =================================
   CATEGORY PANELS
================================= */

main {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px 80px;
    position: relative;
    z-index: 1;
}

details {
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 22px;
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

details:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-4px);
}

details[open] {
    background: rgba(255,255,255,0.18);
}

summary {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 19px;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.category-icon {
    font-size: 22px;
}

.category-intro {
    margin-top: 14px;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

details ul {
    padding-left: 20px;
}

details li {
    margin-bottom: 6px;
}

details a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

details a:hover {
    color: #ffd6f5;
    text-shadow: 0 0 6px rgba(255,255,255,0.7);
}

.subcategory-item {
    margin-bottom: 16px;
    list-style: disc;
    list-style-position: outside;
}

.subcategory-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.subcategory-examples {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.85rem;
    margin-top: 4px;
    opacity: 0.85;
}

.learn-more-link {
    margin-left: 8px;
    color: #4da6ff;          /* soft blue */
    font-style: italic;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
}

.learn-more-link:hover {
    text-decoration: underline;
    color: #66b3ff;
}


.checklist-filters .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: rgba(125, 211, 252, 0.28);
    border-color: rgba(125, 211, 252, 0.9);
    color: #ffffff;
}

.filter-btn.clear-filters {
    background: rgba(255, 255, 255, 0.08);
}

.checklist-card.hidden {
    display: none;
}

#noChecklistResults {
    color: rgba(255, 255, 255, 0.9);
    margin: 20px 0;
}

.checklist-filters {
    margin-bottom: 36px;
}

/* =================================
   CHECKLISTS
================================= */

.page-title {
    animation: softGlowPulse 3.5s ease-in-out infinite;
}

@keyframes softGlowPulse {
    0% {
        text-shadow: 0 0 0px rgba(255, 255, 255, 0.0);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
    }
    100% {
        text-shadow: 0 0 0px rgba(255, 255, 255, 0.0);
    }
}


.related-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-links a:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.checklist-filters .related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

.checklist-filters .related-links li {
    margin: 0;
}

.checklist-filters .related-links a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.checklist-filters .related-links a:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}


.item-card h3 {
    color: rgba(173, 216, 230, 0.9);
}

.item-card p:first-of-type {
    color: rgba(255, 182, 193, 0.9) !important;
    text-shadow: none;
}

.item-card a {
    color: rgba(29, 78, 216, 0.9);
    font-weight: 500;
}



.free-printables-preview {
    margin-bottom: 60px;
}

.free-printables-coming-soon {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}




/* =================================
   FOOTER
================================= */

footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    opacity: 0.8;
}


/* =================================
   SHOOTING STARS
================================= */

.shooting-star {
    position: fixed;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 0 8px 2px rgba(255,255,255,0.8);
}

.star1 {
    top: 20%;
    left: -20%;
    transform: rotate(25deg);
    animation: shoot1 35s linear infinite;
}

.star1::after {
    content: "";
    position: absolute;
    top: 1px;
    left: -120px;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,0.8)
    );
}

@keyframes shoot1 {
    0% { transform: rotate(25deg) translateX(0); opacity: 0; }
    4% { opacity: 1; }
    10% { transform: rotate(25deg) translateX(110vw); opacity: 0; }
    100% { opacity: 0; }
}

.star2 {
    top: 35%;
    right: -20%;
    transform: rotate(-25deg);
    animation: shoot2 42s linear infinite;
    animation-delay: 18s;
}

.star2::after {
    content: "";
    position: absolute;
    top: 1px;
    right: -120px;
    width: 120px;
    height: 2px;
    background: linear-gradient(270deg,
        rgba(255,255,255,0),
        rgba(255,255,255,0.8)
    );
}

@keyframes shoot2 {
    0% { transform: rotate(-25deg) translateX(0); opacity: 0; }
    4% { opacity: 1; }
    10% { transform: rotate(-25deg) translateX(-110vw); opacity: 0; }
    100% { opacity: 0; }
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 60px;
}

.age-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 22px 10px;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.age-card:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-4px);
    color: #ffd6f5;
}

header a {
    color: #ffd6f5;
    text-decoration: none;
    font-weight: 500;
}

header a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255,255,255,0.7);
}

/* =================================
   SHARE BUTTONS
================================= */

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
}

.share-label {
    font-weight: 600;
    color: #ffffff;
    margin-right: 4px;
}

.share-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease, opacity 0.2s ease;
    color: white;
}

.share-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.facebook { background: #1877f2; }
.x { background: #111111; }
.linkedin { background: #0a66c2; }
.whatsapp { background: #25d366; }
.pinterest { background: #bd081c; }
.email { background: #6b7280; }
.instagram { background: #c13584; }


/* =================================
   You May Also Like section
================================= */

.soft-links-box {
    margin: 18px 0 28px;
    padding: 12px 14px;
    background: rgba(120, 190, 255, 0.10);
    border: 1

.soft-links-title {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.soft-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.soft-links-list li {
    margin: 0;
}

.soft-links-list a {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.8rem;
    line-height: 1.2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.soft-links-list a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}







/* =================================
   Age cards on Checklists file
================================= */








.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.age-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 18px 10px;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.age-card:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-4px);
    color: #ffd6f5;
}



/* =================================
   Checklist example on Checklists file
================================= */

.checklist-example-outer {
    width: 100%;
    margin: 0 0 40px;
}

.checklist-example-inner {
    max-width: 560px;
    margin: 0 auto;
}

.checklist-example-inner .item-card {
    width: auto !important;
    max-width: none !important;
}