/* =============================================================================
   Zoomie Core — Site-wide Styles
   Loaded on every page via wp_enqueue_scripts.
   Covers: breed cards, mobile layouts, card component, footer.
   ============================================================================= */

/* --- Breed Card Grid -------------------------------------------------------- */
.zoomie-breeds-container {
    display: grid;
    padding :20px;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.zb-card-link {
    text-decoration: none;
    color: inherit;
}

.zoomie-card {
    width: 400px;
    height: 410px;
    margin-bottom: 10px;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.zoomie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.zoomie-image {
    position: relative;
    height: 70%;
    overflow: hidden;
}

.zoomie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zoomie-card:hover .zoomie-image img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.zoomie-image .title {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.zoomie-content {
    padding: 15px;
    text-align:center;
    align-items:center;
    height: 30%;
    background: #f9f9f9;
}

.zoomie-content p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* --- Breed Filter Buttons -------------------------------------------------- */
.zb-filter-bar {
    text-align: center;
    margin: 20px 0;
}

.zb-filter-btn {
    display: inline-block;
    padding: 9px 19px;
    margin: 5px;
    width: 100px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: 2.5px solid #c4b83b;
    box-shadow: 5px 5px 10px #faf1d7;
    background: #ebe1a9;
    color: #000;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.zb-filter-btn--active {
    background: #c4b83b;
    color: #fff;
}

.zb-divider {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

/* --- Card Component (used on breed detail page) ---------------------------- */
.card {
    --bg: #EDE5C5;
    position: relative;
    padding: 9px;
    background-color: var(--bg);
    border-radius: 15px;
}

.card-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
}

.card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    background-color: #EDE5C5;
    border-radius: 20px;
    padding: 20px;
}

.card-inner img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
    background-color: #0f1025 !important;
}

.site-footer h4 {
    color: #f2ebd3 !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
}

.site-footer a {
    color: #f2ebd3 !important;
    text-decoration: none !important;
}

.site-footer a:hover {
    color: #ffb347 !important;
}

.ast-builder-social-element svg {
    fill: currentColor !important;
}

/* --- Mobile: Breed grid ---------------------------------------------------- */
@media (max-width: 768px) {
    .zoomie-breeds-container {
        grid-template-columns: 1fr !important;
    }

    .zoomie-card {
        width: 100% !important;
        height: auto !important;
    }
}

/* --- Mobile: Single Zoomie flex stacks ------------------------------------- */
@media (max-width: 768px) {
    .zoomie-flex-stack {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }

    .zoomie-flex-stack div[style*="width:180px"],
    .zoomie-flex-stack div[style*="flex-shrink:0"] {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .zoomie-flex-stack iframe {
        width: 100% !important;
        max-width: 300px !important;
        height: 180px !important;
        border-radius: 12px !important;
    }

    div[style*="max-width:800px"] {
        margin: 20px auto !important;
        padding: 15px !important;
        width: 95% !important;
        box-sizing: border-box !important;
    }
}

/* --- Mobile: Footer -------------------------------------------------------- */
@media (max-width: 921px) {
    .site-footer,
    .site-footer .ast-builder-grid-row,
    .site-footer .ast-builder-grid-row-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .site-footer .footer-widget-area,
    .site-footer .ast-builder-layout-element,
    .site-footer div[style*="margin-left"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 35px !important;
        width: 100% !important;
        left: 0 !important;
    }

    .site-footer [data-section="section-fb-html-1"]           { order: 1 !important; }
    .site-footer [data-section="section-fb-html-2"]           { order: 2 !important; }
    .site-footer [data-section="section-fb-footer-widget-3"]  { order: 3 !important; }
    .site-footer [data-section="section-fb-social-icons-1"]   { order: 4 !important; }
    .site-footer [data-section="section-footer-copyright"]    { order: 5 !important; }

    .site-footer [class*="ast-footer-social-stack"] {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }

    .site-footer .ast-builder-social-element {
        display: inline-flex !important;
    }

    .site-footer [data-section="section-footer-copyright"]::before {
        content: "";
        display: block;
        width: 70%;
        height: 1px;
        background: rgba(242, 235, 211, 0.2);
        margin: 0 auto 20px auto;
    }

    .site-footer .ast-footer-copyright span {
        white-space: normal !important;
        display: block !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
}
