/*
 * Custom mobile styles for PequeFUN Avada Child Theme
 *
 * These styles provide a pastel, playful aesthetic inspired by the PequeFUN mobile mockup.  They
 * define utility classes that you can apply within Avada's Fusion Builder or your own templates to
 * recreate the hero section, category grid, recent article cards and fixed bottom navigation.  The
 * styles are scoped to screens up to 768px width so they only affect the mobile experience.
 */

/* Base colours */
:root {
    --pf-bg: #FFFBF3;          /* light beige page background */
    --pf-primary: #F9A451;      /* primary accent (buttons) */
    --pf-text-dark: #5A4E3B;    /* dark text */
    --pf-text-light: #7A6E5A;   /* secondary text */
    --pf-cat-peach: #FDD5C1;    /* Desarrollo Infantil */
    --pf-cat-green: #CDEACC;    /* Juegos y Actividades */
    --pf-cat-purple: #E8D8FD;   /* Dibujos para Colorear */
    --pf-cat-blue: #D3E6F5;    /* Recursos Útiles */
    --pf-nav-bg: #FFF7E9;       /* bottom nav background */
    --pf-nav-border: #EADBC8;   /* bottom nav border */
}

/* Global typography and backgrounds */
body {
    background-color: var(--pf-bg);
    font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
    color: var(--pf-text-dark);
}

@media (max-width: 768px) {

    /* Header styling */
    .fusion-header {
        background-color: var(--pf-bg);
        border-bottom: none;
        box-shadow: none;
        padding: 10px 16px;
    }
    .fusion-header .fusion-logo {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--pf-primary);
    }

    /* Hero section utility class */
    .pf-hero {
        background-color: #F8EDEB;
        border-radius: 20px;
        padding: 24px 20px;
        text-align: center;
        margin: 16px;
        position: relative;
    }
    .pf-hero h1 {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--pf-text-dark);
        margin-bottom: 16px;
    }
    .pf-hero p {
        font-size: 1rem;
        color: var(--pf-text-light);
        margin-bottom: 20px;
    }
    .pf-hero .pf-button {
        display: inline-block;
        background-color: var(--pf-primary);
        color: #fff;
        padding: 12px 28px;
        border-radius: 16px;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
    }

    /* Category grid utility classes */
    .pf-category-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin: 24px 16px;
    }
    .pf-category {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1 1 calc(50% - 12px);
        padding: 14px;
        border-radius: 16px;
        font-weight: 700;
        color: var(--pf-text-dark);
        text-decoration: none;
    }
    .pf-category .pf-icon {
        font-size: 1.4rem;
    }
    .pf-category.development { background-color: var(--pf-cat-peach); }
    .pf-category.games      { background-color: var(--pf-cat-green); }
    .pf-category.coloring   { background-color: var(--pf-cat-purple); }
    .pf-category.resources  { background-color: var(--pf-cat-blue); }

    /* Recent articles utility classes */
    .pf-articles {
        margin: 24px 16px;
    }
    .pf-article {
        display: flex;
        align-items: center;
        background-color: #ffffff;
        border-radius: 16px;
        padding: 12px;
        margin-bottom: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        text-decoration: none;
        color: var(--pf-text-dark);
    }
    .pf-article img {
        width: 80px;
        height: 80px;
        border-radius: 12px;
        object-fit: cover;
        margin-right: 12px;
    }
    .pf-article .pf-article-content h2 {
        font-size: 1.2rem;
        margin: 0 0 6px;
        font-weight: 700;
    }
    .pf-article .pf-article-content p {
        margin: 0;
        font-size: 0.9rem;
        color: var(--pf-text-light);
    }

    /* Bottom navigation utility class */
    .pf-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--pf-nav-bg);
        border-top: 1px solid var(--pf-nav-border);
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 9999;
    }
    .pf-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--pf-text-dark);
        font-size: 0.75rem;
        text-decoration: none;
    }
    .pf-bottom-nav a .pf-nav-icon {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
}
