/* =============================================================================
   Daily Zoomie — Global Styles
   Applies uniform Nunito font and site-wide design tokens across all pages.
   ============================================================================= */

/* --- Design Tokens --------------------------------------------------------- */
:root {
    --font-primary:  'Nunito', sans-serif;
    --color-navy:    #003366;
    --color-gold:    #c4b83b;
    --color-cream:   #EDE5C5;
    --color-orange:  #ff7a00;
    --color-text:    #222;      /* bumped from #333 — stronger contrast */
    --color-muted:   #444;      /* bumped from #555 */
    --radius-card:   12px;
}

/* --- Uniform Font ---------------------------------------------------------- */
/*
 * Astra ships Poppins on many elements via high-specificity selectors.
 * The wildcard below overrides everything; icon fonts are restored below it.
 */
*,
*::before,
*::after {
    font-family: var(--font-primary) !important;
}

/* Restore icon / symbol fonts so dashicons and FA don't render as boxes */
.dashicons,
.dashicons-before::before,
[class^="dashicons-"],
[class*=" dashicons-"],
.fa, .fas, .far, .fab, .fal,
[class^="fa-"],
[class*=" fa-"] {
    font-family: dashicons, "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* --- Base Typography ------------------------------------------------------- */
/*
 * Astra sets its own body font-size via the customizer. Override it here.
 * !important is needed only on body; component-level rules beat h1–h4
 * via specificity without it.
 */
body {
    font-size: 16px !important;
    color: var(--color-text) !important;
    line-height: 1.65 !important;
}

h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.2;
    margin: 0 0 16px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.3;
    margin: 32px 0 12px;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.3;
    margin: 24px 0 10px;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-navy);
    margin: 20px 0 8px;
}

p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 16px;
    color: var(--color-text);
}

@media (max-width: 768px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; margin-top: 24px; }
    h3 { font-size: 18px; margin-top: 20px; }
    h4 { font-size: 16px; }
}

/* --- Zoomie Post Template -------------------------------------------------- */
.zoomie-post {
    max-width: 720px;   /* tightened from 800px — ~65 char line length */
    margin: 30px auto;
    line-height: 1.65;
    padding: 28px 32px;
    text-align: left;
    background-color: var(--color-cream);
    color: var(--color-text);
    border-radius: var(--radius-card);
}

@media (max-width: 600px) {
    .zoomie-post { padding: 20px 18px; }
}

/* Overrides the global h2 margin for the article title — intentionally tighter */
.zoomie-post h2.zoomie-post__heading {
    color: var(--color-navy);
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;  /* no top margin — it's the first element */
}

.zoomie-post p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* --- Section Headings ------------------------------------------------------ */
.zoomie-section {
    margin-top: 40px;
}

.zoomie-section__title {
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Breed Image Block ------------------------------------------------------ */
.zoomie-breed-image {
    flex-shrink: 0;
    width: 180px;
    text-align: center;
}

.zoomie-breed-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.zoomie-breed-image .photo-credit {
    font-size: 10px;
    color: #666;
    font-style: italic;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

.zoomie-breed-image .photo-credit a {
    color: #0073aa;
    text-decoration: underline;
}

/* --- Video Block ----------------------------------------------------------- */
.zoomie-video-wrap {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: var(--color-cream);
    border-radius: 12px;
}

.zoomie-video-wrap iframe {
    border-radius: 8px;
    flex-shrink: 0;
}

/* --- Quiz Block ------------------------------------------------------------ */
.zoomie-quiz {
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #FDF8EE;
    margin-top: 20px;
    background-color: var(--color-cream);
}

.zoomie-quiz__options {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.zoomie-quiz__option {
    margin-bottom: 10px;
    padding: 12px;
    background: #FDF8EE;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.zoomie-quiz__option .letter {
    color: var(--color-orange);
    font-weight: bold;
}

.zoomie-quiz__answer {
    background: #e6edf3;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.zoomie-quiz__answer-body {
    margin-top: 10px;
    padding: 12px;
    background: #fff;
    border-left: 4px solid var(--color-orange);
    border-radius: 5px;
}

/* --- AI Prompt Block ------------------------------------------------------- */
.zoomie-ai-prompt {
    font-style: normal;
    color: #444;
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.zoomie-chatgpt-btn {
    background: var(--color-orange);
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.2s;
}

.zoomie-chatgpt-btn:hover {
    background: #e06600;
    color: #fff;
}

/* --- Breed Detail Page (single-zoomie_breed) ------------------------------- */
.zoomie-breed-detail {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.zoomie-breed-detail .card-inner h2 {
    margin-bottom: 15px;
    color: var(--color-text);
}

.zoomie-breed-detail .breed-image-wrap {
    width: 450px;
    height: 370px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin: 15px auto;
}

.zoomie-breed-detail .breed-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zoomie-breed-detail .breed-body {
    font-size: 16px;
    color: var(--color-text);
    text-align: left;
    line-height: 1.65;
    margin-top: 15px;
}

/* --- Links ----------------------------------------------------------------- */
.zoomie-read-more {
    color: #0056b3;
    text-decoration: underline;
    font-weight: bold;
    font-size: 15px;
}


/* --- News Snapshot Styling --- */
.news-snapshot__read-more {
    color: var(--color-navy) !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    margin-left: 5px;
}

.news-snapshot__read-more:hover {
color: #ffb347 !important;
    text-decoration: underline !important;
    opacity: 1;
}

.news-snapshot__source {
    font-size: 14px !important;
    color: var(--color-muted) !important; /* Plain gray text, no link style */
    margin-top: 8px !important;
    font-style: normal !important;
}
