/*
Theme Name:   Fiona Blog Child
Template:     fiona-blog
Version:      1.0
Text Domain:  fiona-blog-child
Description:  Child theme for Fiona Blog — yoo-news.online (الأعداد feature)
*/

/* ================================================================
   YOO HOMEPAGE COVER — Full-width dynamic hero
   ================================================================ */
.yoo-homepage-cover {
    display: block;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    position: relative;
}
.yoo-homepage-cover a {
    display: block;
    width: 100%;
    line-height: 0;
}
.yoo-homepage-cover img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    object-fit: cover;
}
.yoo-homepage-cover .yoo-cover-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.52) 0%, transparent 100%);
    direction: rtl;
    pointer-events: none;
}
.yoo-homepage-cover .yoo-cover-overlay-badge {
    display: inline-block;
    background: #8B2A2A;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 4px;
    font-family: 'Cairo', Arial, sans-serif;
}
.yoo-homepage-cover .yoo-cover-overlay-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Cairo', Arial, sans-serif;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
/* Hide old customizer header image on homepage only */
body.home #custom-header,
body.blog #custom-header {
    display: none !important;
}
/* Fallback cover (SVG placeholder) */
.yoo-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #8B2A2A 0%, #C8932B 100%);
    color: #fff;
    font-size: 1.4rem;
    font-family: 'Cairo', Arial, sans-serif;
    direction: rtl;
}

/* ================================================================
   YOO ISSUES LISTING PAGE (template-issues-listing.php)
   ================================================================ */
.yoo-issues-page {
    padding: 50px 0 70px;
    direction: rtl;
}
.yoo-issues-page-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #8B2A2A;
    margin-bottom: 8px;
    font-family: 'Cairo', Arial, sans-serif;
}
.yoo-issues-page-subtitle {
    text-align: center;
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 40px;
    font-family: 'Cairo', Arial, sans-serif;
}
.yoo-issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
}
.yoo-issue-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.09);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.yoo-issue-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(139,42,42,0.18);
    text-decoration: none;
    color: inherit;
}
.yoo-issue-card-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f0eb;
    flex-shrink: 0;
}
.yoo-issue-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}
.yoo-issue-card:hover .yoo-issue-card-cover img {
    transform: scale(1.04);
}
.yoo-issue-card-cover .yoo-no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B2A2A 0%, #C8932B 100%);
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Cairo', Arial, sans-serif;
    text-align: center;
    padding: 20px;
}
.yoo-issue-card-body {
    padding: 18px 16px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.yoo-issue-number-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #8B2A2A;
    padding: 3px 14px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    font-family: 'Cairo', Arial, sans-serif;
}
.yoo-issue-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    margin: 0;
    font-family: 'Cairo', Arial, sans-serif;
    line-height: 1.4;
}
.yoo-issue-card-link-btn {
    margin-top: auto;
    display: inline-block;
    font-size: 0.82rem;
    color: #8B2A2A;
    font-weight: 700;
    border: 1.5px solid #8B2A2A;
    padding: 5px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.yoo-issue-card-link-btn:hover {
    background: #8B2A2A;
    color: #fff;
    text-decoration: none;
}
.yoo-issues-empty {
    text-align: center;
    color: #999;
    font-family: 'Cairo', Arial, sans-serif;
    font-size: 1rem;
    padding: 60px 0;
}

/* ================================================================
   YOO ISSUE ARCHIVE (taxonomy-issue.php) — individual issue page
   ================================================================ */
.yoo-issue-hero {
    width: 100%;
    background: #faf6f2;
    padding: 40px 20px 30px;
    margin-bottom: 10px;
    direction: rtl;
}
.yoo-issue-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.yoo-issue-cover-large {
    width: 190px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    flex-shrink: 0;
}
.yoo-issue-hero-info {
    text-align: center;
}
.yoo-issue-hero-info .yoo-issue-badge {
    display: inline-block;
    background: #8B2A2A;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-family: 'Cairo', Arial, sans-serif;
}
.yoo-issue-hero-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
    font-family: 'Cairo', Arial, sans-serif;
    line-height: 1.3;
}
.yoo-issue-hero-info .yoo-issue-post-count {
    color: #888;
    font-size: 0.88rem;
    font-family: 'Cairo', Arial, sans-serif;
}
.yoo-issue-posts-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8B2A2A;
    margin: 24px 0 16px;
    padding-right: 14px;
    border-right: 4px solid #C8932B;
    direction: rtl;
    font-family: 'Cairo', Arial, sans-serif;
}
@media (min-width: 768px) {
    .yoo-issue-hero-inner {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
    .yoo-issue-hero-info {
        text-align: right;
    }
}
