/* Topics Plugin V7 - Media Pro Premium Theme
   Removes Iranian flag background and uses the same light premium style as Media Pro.
*/

.hz-topics-widget{
    width:100% !important;
    box-sizing:border-box !important;
    border-radius:24px !important;
    padding:22px !important;
    background:
        radial-gradient(circle at top left,
            rgba(37,99,235,0.10),
            transparent 32%),
        radial-gradient(circle at bottom right,
            rgba(17,24,39,0.08),
            transparent 30%),
        linear-gradient(135deg,
            #ffffff,
            #f8fafc) !important;
    box-shadow:0 22px 60px rgba(17,24,39,0.12) !important;
    border:1px solid rgba(17,24,39,0.10) !important;
    color:#101828 !important;
    margin:24px 0 !important;
    overflow:hidden !important;
    position:relative !important;
}

.hz-topics-widget:before{
    content:"";
    position:absolute;
    right:-80px;
    top:-80px;
    width:240px;
    height:240px;
    border-radius:50%;
    background:rgba(37,99,235,.08);
    pointer-events:none;
}

.hz-topics-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
    position:relative;
    z-index:1;
}

.hz-topics-head h2{
    margin:0;
    color:#111827;
    font-size:26px;
    text-shadow:0 1px 1px rgba(255,255,255,.65);
}

.hz-topics-head span{
    background:rgba(255,255,255,.88);
    color:#1e3a8a;
    padding:7px 13px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    border:1px solid rgba(37,99,235,.12);
}

/* Topic cards stay white */
.hz-topics-widget .hz-topic-row,
.hz-topics-widget article.hz-topic-row{
    display:flex;
    gap:16px;
    align-items:center;
    color:#182230;
    border-radius:18px;
    padding:13px;
    margin:12px 0;
    box-shadow:0 10px 24px rgba(17,24,39,.10);
    border:1px solid rgba(234,236,240,.95);
    position:relative;
    z-index:1;
    transition:.25s;
    background:#ffffff !important;
    background-image:none !important;
}

.hz-topics-widget .hz-topic-row:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(17,24,39,.14);
}

.hz-topics-widget .hz-topic-media{
    flex:0 0 120px;
    border-radius:14px;
    background:#ffffff !important;
    background-image:none !important;
}

.hz-topics-widget .hz-media.hz-thumb{
    width:120px;
    height:86px;
    object-fit:cover;
    border-radius:14px;
    background:#eef2ff;
}

.hz-topics-widget .hz-topic-content{
    flex:1;
    min-width:0;
    color:#182230;
    background:#ffffff !important;
    background-image:none !important;
}

.hz-topics-widget .hz-topic-content h3{
    margin:0 0 6px;
    font-size:18px;
    line-height:1.25;
    color:#101828;
}

.hz-topics-widget .hz-topic-content p{
    margin:0 0 10px;
    color:#475467;
    font-size:14px;
}

.hz-topics-widget .hz-topic-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    font-size:13px;
    color:#667085;
}

.hz-topics-widget .hz-topic-meta a,
.hz-topics-archive .hz-topic-meta a{
    background:#2563eb;
    color:#fff!important;
    text-decoration:none!important;
    border-radius:999px;
    padding:7px 13px;
    font-weight:700;
    white-space:nowrap;
    box-shadow:0 5px 12px rgba(37,99,235,.22);
}

.hz-topics-widget .hz-topic-meta a:hover,
.hz-topics-archive .hz-topic-meta a:hover{
    background:#111827;
}

.hz-topics-widget .hz-topics-page-link{
    display:block;
    text-align:center;
    background:rgba(255,255,255,.94);
    color:#111827!important;
    text-decoration:none!important;
    font-weight:800;
    padding:12px;
    border-radius:15px;
    margin-top:16px;
    position:relative;
    z-index:1;
    border:1px solid rgba(17,24,39,.10);
    box-shadow:0 8px 22px rgba(17,24,39,.10);
}

.hz-topics-widget .hz-empty{
    background:#fff!important;
    color:#344054;
    border-radius:14px;
    padding:16px;
    position:relative;
    z-index:1;
}

/* Topics archive page - scoped only */
.hz-topics-archive{
    max-width:1180px;
    margin:30px auto;
    padding:10px;
    background:transparent!important;
}

.hz-topics-archive h1{
    text-align:center;
    font-size:38px;
    margin-bottom:25px;
}

.hz-topic-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:22px;
}

.hz-topic-card{
    background:#fff!important;
    background-image:none!important;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 16px 42px rgba(16,24,40,.13);
    border:1px solid #eaecf0;
}

.hz-media.hz-card{
    width:100%;
    height:210px;
    object-fit:cover;
    background:#eef2ff;
}

.hz-card-body{
    padding:20px;
    background:#fff!important;
    background-image:none!important;
}

.hz-card-body h2{
    font-size:22px;
    margin:0 0 10px;
}

.hz-card-body p{
    color:#475467;
}

/* Single topic page */
.hz-single-topic-wrap{
    max-width:1050px;
    margin:40px auto;
    padding:10px;
    background:transparent!important;
}

.hz-single-topic{
    background:#fff!important;
    background-image:none!important;
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 24px 60px rgba(16,24,40,.18);
    border:1px solid #eaecf0;
}

.hz-media.hz-single{
    width:100%;
    max-height:520px;
    object-fit:cover;
    background:#eef2ff;
}

.hz-single-body{
    padding:30px;
    background:#fff!important;
    background-image:none!important;
}

.hz-single-body h1{
    font-size:42px;
    margin:0 0 10px;
}

.hz-single-meta{
    color:#667085;
    margin-bottom:24px;
    font-weight:600;
}

.hz-single-desc{
    font-size:18px;
    line-height:1.8;
    color:#344054;
}

@media(max-width:600px){
    .hz-topics-widget .hz-topic-row{align-items:flex-start}
    .hz-topics-widget .hz-topic-media{flex-basis:92px}
    .hz-topics-widget .hz-media.hz-thumb{width:92px;height:76px}
    .hz-topics-widget .hz-topic-meta{display:block}
    .hz-topics-widget .hz-topic-meta a{display:inline-block;margin-top:8px}
    .hz-single-body h1{font-size:30px}
}
