/**
 * Rozgar Patrika — Column Layout CSS  v3
 * File: /wp-content/themes/xila/assets/css/rozgar.css
 *
 * Classes: rz-* prefix
 * Used by: templates/rozgar.php only
 *
 * NOTE: features.css के पुराने .roz-* section को यहाँ replace किया गया है।
 *       features.css में .roz-* block को delete करके इस file को enqueue करें।
 */

/* ════════════════════════════════════════════════════
   1. LAYOUT OVERRIDES
════════════════════════════════════════════════════ */

.rz-layout {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Right sidebar hidden */
.rz-layout .xila-sidebar-right { display: none !important; }

/* Mobile: single column */
@media (max-width: 900px) {
    .rz-layout {
        grid-template-columns: 1fr !important;
    }
    .rz-layout .xila-sidebar-left { display: none !important; }
}

/* Mobile feed top */
.rz-mobile-top { display: none; }
@media (max-width: 900px) {
    .rz-mobile-top { display: block; margin-bottom: 4px; }
}

.rz-page   { padding-bottom: 60px; }

/* ════════════════════════════════════════════════════
   2. MASTHEAD — Newspaper style (same as old roz-masthead)
════════════════════════════════════════════════════ */

.rz-masthead {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c1445 0%, #1a2980 45%, #1565c0 75%, #0d47a1 100%);
    border-radius: 18px;
    margin-bottom: 14px;
    box-shadow: 0 8px 40px rgba(13,71,161,.35), 0 2px 8px rgba(0,0,0,.2);
}

.rz-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: .07;
}
.rz-orb--1 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    top: -120px; right: -80px;
}
.rz-orb--2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
    bottom: -60px; left: 30%;
    opacity: .1;
}

.rz-masthead-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 24px 28px 18px;
}

/* Date */
.rz-mh-date      { display: flex; flex-direction: column; gap: 4px; }
.rz-mh-day       { font-size: 10px; font-weight: 800; color: rgba(255,255,255,.4); letter-spacing: 2.5px; text-transform: uppercase; }
.rz-mh-fulldate  { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); white-space: nowrap; }

/* Brand */
.rz-mh-brand     { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rz-mh-logo-wrap {
    width: 48px; height: 48px;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(6px);
    margin-bottom: 2px;
}
.rz-mh-title     { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.rz-mh-word1 {
    font-size: 30px; font-weight: 900; color: #fbbf24;
    letter-spacing: -.5px;
    font-family: Georgia, 'Times New Roman', serif;
    text-shadow: 0 2px 12px rgba(251,191,36,.3);
}
.rz-mh-word2 {
    font-size: 30px; font-weight: 900; color: #fff;
    letter-spacing: -.5px;
    font-family: Georgia, 'Times New Roman', serif;
}
.rz-mh-tagline { font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: .5px; }
.rz-mh-line    { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 280px; margin-top: 2px; }
.rz-mh-line span:not(.rz-mh-line-dot) { flex: 1; height: 1px; background: rgba(255,255,255,.15); }
.rz-mh-line-dot { font-size: 8px; color: rgba(251,191,36,.6); }

/* Stats */
.rz-mh-stats         { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.rz-mh-stat          { text-align: right; }
.rz-mh-stat-num      { font-size: 30px; font-weight: 900; color: #34d399; line-height: 1; }
.rz-mh-stat--accent .rz-mh-stat-num { color: #fb923c; }
.rz-mh-stat-lbl {
    font-size: 10px; color: rgba(255,255,255,.4);
    text-transform: uppercase; letter-spacing: 1px;
    margin-top: 2px; white-space: nowrap;
}

/* Ticker bar */
.rz-ticker-bar {
    position: relative;
    display: flex; align-items: center;
    height: 38px;
    background: rgba(0,0,0,.25);
    border-top: 1px solid rgba(255,255,255,.07);
    overflow: hidden;
}
.rz-ticker-badge {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 6px;
    padding: 0 14px; height: 100%;
    font-size: 10px; font-weight: 900;
    color: #fca5a5; letter-spacing: 2px; text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,.08);
    background: rgba(239,68,68,.12);
}
.rz-ticker-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #ef4444; flex-shrink: 0;
    animation: rzDotPulse 1.1s ease-in-out infinite;
}
@keyframes rzDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .3; transform: scale(.7); }
}
.rz-ticker-scroll  { flex: 1; overflow: hidden; }
.rz-ticker-inner {
    display: flex; align-items: center;
    white-space: nowrap;
    animation: rzTickerScroll 50s linear infinite;
    will-change: transform;
}
.rz-ticker-inner:hover { animation-play-state: paused; }
@keyframes rzTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.rz-ticker-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 36px 0 0;
    font-size: 12.5px; color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: color .1s;
}
.rz-ticker-item:hover { color: #fff; }
.rz-tb {
    font-size: 9.5px; font-weight: 800;
    padding: 1px 7px; border-radius: 4px; letter-spacing: .6px; white-space: nowrap;
}
.rz-tb--today  { background: rgba(239,68,68,.3);  color: #fca5a5; border: 1px solid rgba(239,68,68,.4); }
.rz-tb--urgent { background: rgba(245,158,11,.25); color: #fde68a; border: 1px solid rgba(245,158,11,.4); }
.rz-tb--open   { background: rgba(34,197,94,.2);  color: #86efac; border: 1px solid rgba(34,197,94,.35); }

/* Masthead responsive */
@media (max-width: 640px) {
    .rz-masthead-inner {
        grid-template-columns: 1fr;
        padding: 18px 18px 14px;
        text-align: center;
    }
    .rz-mh-date, .rz-mh-stats  { align-items: center; }
    .rz-mh-stat                 { text-align: center; }
    .rz-mh-stats                { flex-direction: row; justify-content: center; gap: 24px; }
    .rz-mh-word1, .rz-mh-word2 { font-size: 22px; }
    .rz-mh-stat-num             { font-size: 24px; }
    .rz-mh-logo-wrap            { margin: 0 auto; }
}

/* ════════════════════════════════════════════════════
   3. FILTER BAR
════════════════════════════════════════════════════ */

.rz-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    border: 1.5px solid #e8edf2;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.rz-filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rz-filter-btn {
    padding: 6px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    font-size: 12px; font-weight: 600;
    color: #64748b; cursor: pointer;
    transition: all .12s;
    white-space: nowrap;
}
.rz-filter-btn:hover { border-color: #94a3b8; color: #1e293b; }
.rz-filter-btn.is-active {
    background: #1e293b; border-color: #1e293b; color: #fff;
}

.rz-filter-count {
    font-size: 12px; color: #94a3b8;
    white-space: nowrap;
}
.rz-filter-count strong { color: #1e293b; }

/* ════════════════════════════════════════════════════
   4. COLUMNS GRID
════════════════════════════════════════════════════ */

.rz-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 1100px) {
    .rz-columns-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .rz-columns-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ════════════════════════════════════════════════════
   5. COLUMN CARD
════════════════════════════════════════════════════ */

.rz-col {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    /* fade-in animation */
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .4s ease, transform .4s ease, box-shadow .2s;
}
.rz-col--visible {
    opacity: 1;
    transform: translateY(0);
}
.rz-col:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
}

/* Column Header — gradient from CSS vars */
.rz-col-header {
    background: linear-gradient(135deg, var(--rz-h1), var(--rz-h2));
    padding: 10px 14px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.rz-col-header-left {
    display: flex;
    align-items: center;
    gap: 7px;
}
.rz-col-title {
    font-size: 13px; font-weight: 800; color: #fff;
    margin: 0;
    letter-spacing: .03em; text-transform: uppercase; line-height: 1;
}
.rz-col-count {
    background: rgba(255,255,255,.22); color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 10px;
    white-space: nowrap; flex-shrink: 0;
}

/* Urgency badge in column header */
.rz-col-urgency-badge {
    font-size: 9px; font-weight: 900;
    padding: 2px 8px; border-radius: 4px;
    letter-spacing: .7px; text-transform: uppercase;
    white-space: nowrap; flex-shrink: 0;
}
.rz-ub--today  { background: rgba(239,68,68,.35);  color: #fca5a5; }
.rz-ub--urgent { background: rgba(245,158,11,.3);  color: #fde68a; }

/* ════════════════════════════════════════════════════
   6. COLUMN LIST — items
════════════════════════════════════════════════════ */

.rz-col-list {
    list-style: none;
    margin: 0; padding: 4px 0 0;
}

/* Item entry animation (triggered when column visible) */
.rz-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .35s ease both, transform .35s ease both;
    border-bottom: 1px solid #f3f4f6;
}
.rz-item:last-child { border-bottom: none; }

.rz-col--visible .rz-item {
    opacity: 1;
    transform: translateX(0);
}

/* Item state variants */
.rz-item--update { }
.rz-item--update .rz-item-link       { background: #fffbf0; }
.rz-item--update .rz-item-link:hover { background: #fef3c7; }
.rz-item--update .rz-item-dot        { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.2); }

.rz-item--today  { }
.rz-item--today .rz-item-link        { background: #fff5f5; }
.rz-item--today .rz-item-dot         { background: #ef4444; animation: rzItemDotPulse 1s infinite; }

@keyframes rzItemDotPulse {
    0%,100% { opacity: 1; }
    50%     { opacity: .3; }
}

.rz-item--urgent .rz-item-dot  { background: #f59e0b; }
.rz-item--soon   .rz-item-dot  { background: #8b5cf6; }

/* Item link */
.rz-item-link {
    display: flex; align-items: flex-start; gap: 0;
    padding: 7px 12px 7px 10px;
    text-decoration: none; color: inherit;
    transition: background .12s;
    position: relative;
}
.rz-item-link:hover { background: var(--rz-acc, #eff6ff); }

/* Left colored dot */
.rz-item-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--rz-dot, #3b82f6);
    flex-shrink: 0;
    margin-top: 5px; margin-right: 8px;
}

/* Item body */
.rz-item-body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 3px;
}

.rz-item-title {
    font-size: 12.5px; font-weight: 500; color: #1e293b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .12s;
}
.rz-item-link:hover .rz-item-title { color: var(--rz-h1, #1a56db); }

/* Meta row */
.rz-item-meta {
    display: flex; align-items: center;
    gap: 4px; flex-wrap: wrap;
}

/* Date string */
.rz-item-date {
    font-size: 10px; color: #9ca3af;
    margin-left: auto; white-space: nowrap; padding-left: 4px;
}
.rz-date--today  { color: #dc2626 !important; font-weight: 700; }
.rz-date--urgent { color: #d97706 !important; font-weight: 700; }
.rz-date--expired { color: #94a3b8; text-decoration: line-through; text-decoration-color: #cbd5e1; }

/* Badges */
.rz-badge {
    font-size: 9.5px; font-weight: 700;
    padding: 1px 5px; border-radius: 4px;
    white-space: nowrap; line-height: 1.5;
}
.rz-badge--update { background: #fef3c7; color: #92400e; }
.rz-s-active      { background: #dcfce7; color: #166534; }
.rz-s-upcoming    { background: #dbeafe; color: #1e40af; }
.rz-s-closed      { background: #fee2e2; color: #991b1b; }
.rz-s-archived    { background: #f3f4f6; color: #6b7280; }

/* ════════════════════════════════════════════════════
   7. COLUMN FOOTER — View All link
════════════════════════════════════════════════════ */

.rz-col-footer {
    padding: 8px 12px 10px;
    background: linear-gradient(to bottom, #fafbfc, #f5f7fa);
    border-top: 1px solid #f1f5f9;
}

.rz-viewmore {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; width: 100%;
    padding: 7px 12px;
    background: var(--rz-acc, #eff6ff);
    color: var(--rz-h1, #1a56db);
    border: 1px solid currentColor;
    border-radius: 6px;
    font-size: 11.5px; font-weight: 700;
    text-decoration: none;
    transition: all .15s;
    opacity: .85;
}
.rz-viewmore:hover {
    opacity: 1;
    background: var(--rz-h1, #1a56db);
    color: #fff;
    border-color: var(--rz-h1, #1a56db);
    transform: translateY(-1px);
}
.rz-viewmore svg          { transition: transform .15s; flex-shrink: 0; }
.rz-viewmore:hover svg    { transform: translateX(3px); }

/* ════════════════════════════════════════════════════
   8. EMPTY STATE
════════════════════════════════════════════════════ */

.rz-empty-state {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    border: 1.5px dashed #e2e8f0;
    margin-top: 10px;
}
.rz-empty-icon { font-size: 42px; opacity: .4; margin-bottom: 12px; }
.rz-empty-state p { color: #94a3b8; font-size: 14px; line-height: 1.6; margin: 0; }

/* ════════════════════════════════════════════════════
   9. MOBILE ADJUSTMENTS
════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .rz-col-title   { font-size: 12px; }
    .rz-item-title  { font-size: 12px; }
    .rz-filter-btn  { font-size: 11px; padding: 5px 10px; }
    .rz-mh-word1,
    .rz-mh-word2    { font-size: 20px; }
}