/* ===== GeneratePress Coloring - child theme CSS ===== */
/* Colors come from CSS variables set in :root via the Customizer. */

:root {
    --gpc-radius: 18px;
    --gpc-radius-lg: 28px;
    --gpc-shadow: 0 6px 20px rgba(43, 37, 64, .08);
    --gpc-shadow-hover: 0 10px 28px rgba(43, 37, 64, .14);
    --gpc-space: clamp(1rem, 2vw, 2rem);
    --gpc-max: 1180px;
}

body {
    background: var(--gpc-bg, #fffaf3);
    color: var(--gpc-text, #2b2540);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

.gpc-container {
    max-width: var(--gpc-max);
    margin: 0 auto;
    padding: 0 var(--gpc-space);
}

.gpc-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--gpc-text);
}

/* ----- Buttons ----- */
.gpc-btn {
    display: inline-block;
    padding: .8em 1.6em;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    border: 0;
    cursor: pointer;
    min-height: 44px;
    line-height: 1.2;
}
.gpc-btn--primary {
    background: var(--gpc-primary);
    color: #fff;
    box-shadow: var(--gpc-shadow);
}
.gpc-btn--primary:hover,
.gpc-btn--primary:focus {
    transform: translateY(-2px);
    box-shadow: var(--gpc-shadow-hover);
}
.gpc-btn--download {
    background: var(--gpc-accent);
    color: var(--gpc-text);
    box-shadow: var(--gpc-shadow);
    font-size: 1.1rem;
}

/* ----- Hero ----- */
.gpc-hero {
    background:
        radial-gradient(circle at 20% 20%, var(--gpc-secondary) 0, transparent 40%),
        radial-gradient(circle at 80% 30%, var(--gpc-accent) 0, transparent 40%),
        radial-gradient(circle at 50% 90%, var(--gpc-primary) 0, transparent 45%),
        var(--gpc-bg);
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    text-align: center;
}
.gpc-hero__inner { max-width: 760px; margin: 0 auto; }
.gpc-hero__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    margin: 0 0 .5em;
    color: var(--gpc-text);
}
.gpc-hero__subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    margin: 0 0 1.5em;
}

/* ----- Category cards ----- */
.gpc-categories { padding: clamp(2rem, 5vw, 4rem) 0; }
.gpc-cat-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.gpc-cat-card {
    background: #fff;
    border-radius: var(--gpc-radius-lg);
    box-shadow: var(--gpc-shadow);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.gpc-cat-card:hover { transform: translateY(-3px); box-shadow: var(--gpc-shadow-hover); }
.gpc-cat-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    color: var(--gpc-text);
    min-height: 100%;
}
.gpc-cat-card__img {
    border-radius: var(--gpc-radius);
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: .75rem;
}
.gpc-cat-card__placeholder { font-size: 2.4rem; margin-bottom: .5rem; }
.gpc-cat-card__name { font-weight: 700; }
.gpc-cat-card__count { font-size: .85rem; opacity: .7; }

/* ----- Featured / archive grid ----- */
.gpc-featured, .gpc-archive__header { padding: clamp(2rem, 5vw, 4rem) 0 1rem; }
.gpc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    padding-bottom: 2rem;
}
.gpc-grid--compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gpc-card {
    background: #fff;
    border-radius: var(--gpc-radius-lg);
    overflow: hidden;
    box-shadow: var(--gpc-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.gpc-card:hover { transform: translateY(-3px); box-shadow: var(--gpc-shadow-hover); }
.gpc-card__link { display: block; color: var(--gpc-text); text-decoration: none; }
.gpc-card__img { display: block; aspect-ratio: 1; object-fit: cover; width: 100%; }
.gpc-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: .8rem 1rem 1rem;
    text-align: center;
}

/* ----- Single ----- */
.gpc-single { padding: clamp(1rem, 3vw, 2rem) 0; }
.gpc-single__article { max-width: 820px; margin: 0 auto; padding: 0 var(--gpc-space); }
.gpc-single__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    text-align: center;
    margin: 1rem 0 1.25rem;
}
.gpc-single__image {
    margin: 0 auto 1.5rem;
    border-radius: var(--gpc-radius-lg);
    overflow: hidden;
    box-shadow: var(--gpc-shadow);
    background: #fff;
}
.gpc-single__img { display: block; width: 100%; height: auto; }
.gpc-download-cta {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: #fff;
    border-radius: var(--gpc-radius-lg);
    box-shadow: var(--gpc-shadow);
    margin: 2rem 0;
}
.gpc-download-cta h2 { margin: 0 0 .3em; font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
.gpc-download-cta p { margin: 0 0 1em; }

/* ----- Breadcrumb ----- */
.gpc-breadcrumb {
    max-width: var(--gpc-max);
    margin: 1rem auto 0;
    padding: 0 var(--gpc-space);
    font-size: .9rem;
    opacity: .85;
}
.gpc-breadcrumb a { color: var(--gpc-text); text-decoration: none; }
.gpc-breadcrumb a:hover { text-decoration: underline; }

/* ----- Related ----- */
.gpc-related {
    max-width: 820px;
    margin: 2.5rem auto;
    padding: 0 var(--gpc-space);
}

/* ----- Newsletter ----- */
.gpc-newsletter {
    background: linear-gradient(135deg, var(--gpc-secondary), var(--gpc-primary));
    color: #fff;
    padding: clamp(2rem, 5vw, 4rem) 0;
    margin-top: 2rem;
    text-align: center;
}
.gpc-newsletter .gpc-section-title { color: #fff; }
.gpc-newsletter__form { max-width: 480px; margin: 1rem auto 0; }

/* ----- Ads ----- */
.gpc-ad {
    margin: 1.5rem 0;
    padding: .5rem 0;
    font-size: .85rem;
    opacity: .85;
    text-align: center;
}
.gpc-ad::before {
    content: "Advertisement";
    display: block;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .6;
    margin-bottom: .4rem;
}

/* ----- SEO intro block ----- */
.gpc-seo-intro {
    padding: clamp(2rem, 4vw, 3rem) 0;
    max-width: 820px;
    margin: 0 auto;
}

/* ----- Pagination ----- */
.gpc-pagination { padding: 1rem 0 3rem; }
.gpc-pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.gpc-pagination a,
.gpc-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--gpc-text);
    text-decoration: none;
    box-shadow: var(--gpc-shadow);
}
.gpc-pagination .current { background: var(--gpc-primary); color: #fff; }

/* ----- Mobile niceties ----- */
@media (max-width: 600px) {
    .gpc-hero { padding: 2.5rem 0; }
    .gpc-card__title { font-size: .95rem; }
    .gpc-btn { width: 100%; max-width: 320px; }
}

/* ----- Focus visibility (a11y) ----- */
a:focus-visible, button:focus-visible, .gpc-btn:focus-visible {
    outline: 3px solid var(--gpc-secondary);
    outline-offset: 3px;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
