/*
 * Xila Features CSS — Rozgar / My Dashboard / Result Check
 * File: /wp-content/themes/xila/assets/css/features.css
 *
 * World-class, modern newspaper-inspired design
 */

/* Grid responsive */
@media (max-width: 640px) {
    .roz-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ───────────── IS RESULT OUT? — Page ───────────── */

.rc-page { padding-bottom: 40px; }

/* Hero */
.rc-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #7c3aed 100%);
    border-radius: 20px;
    padding: 36px 28px 28px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    /* overflow: hidden; */
}
.rc-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 60%);
    pointer-events: none;
}

.rc-hero-visual { margin-bottom: 16px; }
.rc-hero-icon-wrap { display: inline-block; position: relative; }
.rc-hero-icon { font-size: 48px; position: relative; z-index: 2; }
.rc-hero-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    animation: rcPulse 2s ease-in-out infinite;
}
@keyframes rcPulse { 0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: .5; } 50% { transform: translate(-50%,-50%) scale(1.3); opacity: .1; } }

.rc-hero-title { font-size: 28px; font-weight: 900; color: #fff; margin: 0 0 6px; }
.rc-hero-sub   { font-size: 13px; color: rgba(255,255,255,.7); margin: 0 0 24px; }

/* Search */
.rc-search-wrap { position: relative; max-width: 500px; margin: 0 auto 16px; }
.rc-search-box {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 50px;
    padding: 12px 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.rc-search-icon { color: #94a3b8; flex-shrink: 0; }
.rc-input {
    flex: 1; border: none; outline: none;
    font-size: 14px; color: #1e293b; background: transparent;
}
.rc-input::placeholder { color: #94a3b8; }
.rc-clear-btn {
    background: none; border: none; color: #94a3b8;
    cursor: pointer; font-size: 14px; padding: 0 4px;
}
.rc-clear-btn:hover { color: #1e293b; }

.rc-suggestions {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    overflow: hidden; z-index: 100; max-height: 300px; overflow-y: auto;
}
.rc-suggestion {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; cursor: pointer;
    border-bottom: 1px solid #f8fafc; transition: background .1s;
}
.rc-suggestion:hover { background: #f8fafc; }
.rc-sug-icon  { color: #94a3b8; font-size: 14px; flex-shrink: 0; }
.rc-sug-title { flex: 1; font-size: 13px; font-weight: 600; color: #1e293b; }
.rc-sug-org   { font-size: 11px; color: #94a3b8; }

/* Quick chips */
.rc-quick-chips {
    display: flex; align-items: center; gap: 6px;
    justify-content: center; flex-wrap: wrap;
}
.rc-chips-label { font-size: 11px; color: rgba(255,255,255,.6); }
.rc-chip {
    padding: 4px 12px; border-radius: 20px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all .12s;
}
.rc-chip:hover { background: rgba(255,255,255,.2); }

/* Results */
.rc-result-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.rc-result-item {
    background: #fff; border: 1px solid #e8edf2; border-radius: 12px;
    padding: 14px; transition: box-shadow .15s;
    border-left: 4px solid #e2e8f0;
}
.rc-result-item:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.rc-result--yes { border-left-color: #22c55e; }
.rc-result--no  { border-left-color: #f59e0b; }

.rc-result-head {
    display: flex; align-items: flex-start; gap: 10px;
}
.rc-result-status-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.rc-result-info { flex: 1; min-width: 0; }
.rc-result-title {
    font-size: 14px; font-weight: 700; color: #1e293b;
    text-decoration: none; display: block; line-height: 1.4; cursor: pointer;
}
.rc-result-title:hover { color: #2563eb; }
.rc-result-org { font-size: 11.5px; color: #94a3b8; margin-top: 3px; }

.rc-result-badge {
    font-size: 11px; font-weight: 700; padding: 4px 12px;
    border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.rc-badge--yes { background: #dcfce7; color: #16a34a; }
.rc-badge--no  { background: #fef3c7; color: #d97706; }

.rc-result-date {
    font-size: 12px; color: #64748b; margin-top: 8px;
    padding-top: 8px; border-top: 1px solid #f8fafc;
}
.rc-result-link {
    display: inline-block; margin-top: 8px;
    font-size: 12px; font-weight: 700; color: #2563eb;
    text-decoration: none;
}

.rc-no-result { text-align: center; padding: 30px; color: #64748b; }
.rc-no-result-icon { font-size: 32px; margin-bottom: 10px; opacity: .5; }
.rc-no-result h3 { font-size: 15px; font-weight: 700; color: #1e293b; margin: 0 0 6px; }

/* Recent */
.rc-recent {
    background: #fff; border: 1px solid #e8edf2; border-radius: 14px; overflow: hidden;
}
.rc-recent-head {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: #f8fafc;
    border-bottom: 1px solid #e8edf2;
}
.rc-recent-icon { font-size: 15px; }
.rc-recent-title { font-size: 13px; font-weight: 800; color: #1e293b; }

.rc-recent-items { list-style: none; margin: 0; padding: 0; }
.rc-recent-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-bottom: 1px solid #f8fafc; gap: 10px;
}
.rc-recent-item:last-child { border-bottom: none; }
.rc-recent-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.rc-recent-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; flex-shrink: 0;
}
.rc-recent-title {
    font-size: 12.5px; font-weight: 600; color: #1e293b;
    text-decoration: none; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-recent-title:hover { color: #2563eb; }
.rc-recent-date { font-size: 11px; color: #94a3b8; white-space: nowrap; flex-shrink: 0; }

.rc-loading { text-align: center; padding: 20px; }

/* ── Result Check Widget (Mini) ─────────────────────────────── */
.rcw-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    transition: all .2s;
}
.rcw-inner { display: flex; align-items: center; gap: 10px; }
.rcw-icon { font-size: 20px; flex-shrink: 0; }
.rcw-form { flex: 1; min-width: 0; }
.rcw-label { font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.7); margin-bottom: 5px; letter-spacing: .5px; }
.rcw-search-row { display: flex; gap: 6px; }
.rcw-input-wrap { flex: 1; position: relative; }
.rcw-input {
    width: 100%; border: none; border-radius: 20px;
    padding: 7px 14px; font-size: 12.5px;
    background: rgba(255,255,255,.15); color: #fff;
    outline: none;
}
.rcw-input::placeholder { color: rgba(255,255,255,.5); }
.rcw-input:focus { background: rgba(255,255,255,.2); }

.rcw-full-btn {
    flex-shrink: 0; padding: 7px 14px;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
    color: #fff; border-radius: 20px; font-size: 11.5px; font-weight: 700;
    text-decoration: none; white-space: nowrap; transition: all .12s;
}
.rcw-full-btn:hover { background: rgba(255,255,255,.25); }

.rcw-live-results {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: #fff; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    overflow: hidden; z-index: 200;
}
.rcw-result {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #f8fafc;
    transition: background .1s;
}
.rcw-result:hover { background: #f8fafc; }
.rcw-result-icon { font-size: 14px; flex-shrink: 0; }
.rcw-result-title { flex: 1; font-size: 12.5px; font-weight: 600; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcw-badge {
    font-size: 10px; font-weight: 700; padding: 2px 7px;
    border-radius: 10px; flex-shrink: 0;
}
.rcw-badge--yes { background: #dcfce7; color: #16a34a; }
.rcw-badge--no  { background: #fef3c7; color: #d97706; }
.rcw-no-result { padding: 12px; font-size: 12px; color: #94a3b8; text-align: center; }

/* ── Responsive ────────────────── */
@media (max-width: 640px) {
    .rozgar-grid { grid-template-columns: 1fr 1fr; }
    .rozgar-masthead-top { flex-wrap: wrap; gap: 10px; }
    .rozgar-masthead-roz, .rozgar-masthead-pat { font-size: 22px; }
    .mxd-stats { grid-template-columns: repeat(2, 1fr); }
    .mxd-locked-features { grid-template-columns: 1fr; }
    .rc-hero { padding: 24px 16px 20px; }
    .rc-hero-title { font-size: 22px; }
    .rc-result-head { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .rozgar-grid { grid-template-columns: 1fr; }
}


/* ========================== New Version Code
Dinesh for Upcoming Section after Merge in Home
======================== */

/* ═══════════════════════════════════════
   UPCOMING CALENDAR — xtd-* prefix
═══════════════════════════════════════ */

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

/* ── Header ── */
.xtd-header {
    background: linear-gradient(135deg,#0c1445 0%,#1e3a8a 50%,#1d4ed8 100%);
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 24px rgba(29,78,216,.22);
}
.xtd-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
}
.xtd-header-icon { font-size: 34px; flex-shrink: 0; }
.xtd-header-title {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 3px;
    line-height: 1.2;
}
.xtd-header-date { font-size: 12px; color: rgba(255,255,255,.6); }

/* ── Hint bar ── */
.xtd-cal-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 12.5px;
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 14px;
}
.xtd-cal-hint-icon { font-size: 15px; flex-shrink: 0; }

/* ── Calendar wrapper ── */
.xtd-calendar-wrap {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.xtd-calendar { padding: 16px; }

/* ── Month block ── */
.xtd-cal-month { margin-bottom: 10px; }
.xtd-cal-month:last-child { margin-bottom: 0; }

.xtd-cal-month-name {
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    letter-spacing: .3px;
}

/* ── 7-col grid ── */
.xtd-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.xtd-cal-dh {
    text-align: center;
    font-size: 10.5px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 4px 0 6px;
    letter-spacing: .5px;
}

/* ── Day cell ── */
.xtd-cal-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    cursor: default;
    transition: background .12s, color .12s;
    min-height: 34px;
}
.xtd-cal-day--empty { visibility: hidden; }
.xtd-cal-day--past  { color: #cbd5e1; }

.xtd-cal-day--today {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
    border: 1.5px solid #93c5fd;
}

/* Highlighted date (has event) */
.xtd-cal-day--has-event {
    cursor: pointer;
    font-weight: 700;
    color: #1e293b;
}
.xtd-cal-day--has-event:hover {
    background: #f0f9ff;
    color: #1d4ed8;
}

/* Selected state */
.xtd-cal-day--selected {
    background: linear-gradient(135deg,#1e3a8a,#2563eb) !important;
    color: #fff !important;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(37,99,235,.35);
}
.xtd-cal-day--selected .xtd-cal-dot { background: rgba(255,255,255,.7) !important; }

/* Event dot */
.xtd-cal-dot {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f59e0b;
}

/* ── Skeleton (loading state) ── */
.xtd-cal-loading { padding: 6px; }
.xtd-cal-skel-head {
    height: 20px;
    width: 120px;
    margin: 0 auto 14px;
    border-radius: 6px;
    background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%);
    background-size: 200% 100%;
    animation: xtdShimmer 1.4s infinite;
}
.xtd-cal-skel-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 4px;
}
.xtd-cal-skel-day {
    aspect-ratio: 1;
    border-radius: 7px;
    background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%);
    background-size: 200% 100%;
    animation: xtdShimmer 1.4s infinite;
    min-height: 30px;
}
@keyframes xtdShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Date detail panel ── */
.xtd-cal-detail {
    background: #fff;
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(37,99,235,.1);
}
.xtd-cal-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    background: linear-gradient(135deg,#eff6ff,#dbeafe);
    border-bottom: 1px solid #bfdbfe;
    flex-wrap: wrap;
}
.xtd-detail-date-str {
    font-size: 13.5px;
    font-weight: 800;
    color: #1e293b;
}
.xtd-detail-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #dbeafe;
    color: #1d4ed8;
}

/* Detail items */
.xtd-detail-items { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.xtd-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color .12s, box-shadow .12s;
}
.xtd-detail-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(37,99,235,.08);
}
.xtd-detail-type-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.xtd-detail-info { flex: 1; min-width: 0; }
.xtd-detail-title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    cursor: pointer;
    transition: color .12s;
}
.xtd-detail-title:hover { color: #2563eb; }
.xtd-detail-type-lbl {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: capitalize;
    margin-top: 2px;
    display: block;
}

/* ── All upcoming list ── */
.xtd-section-title {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.xtd-upcoming-list { display: flex; flex-direction: column; gap: 10px; }

.xtd-date-group {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,.04);
}
.xtd-date-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}
.xtd-date-str {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
}
.xtd-days-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #64748b;
}
.xtd-days-badge--today    { background: #dcfce7; color: #16a34a; }
.xtd-days-badge--tomorrow { background: #fef3c7; color: #d97706; }

.xtd-date-items { padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 6px; }

.xtd-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background .12s;
    cursor: pointer;
}
.xtd-item:hover { background: #f0f9ff; }
.xtd-item-type-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.xtd-item-body { flex: 1; min-width: 0; }
.xtd-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    transition: color .12s;
}
.xtd-item-title:hover { color: #2563eb; }
.xtd-item-cd { margin-top: 3px; }
.xtd-cd {
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 20px;
    background: #dcfce7;
    color: #16a34a;
    display: inline-block;
}

/* Empty state */
.xtd-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}
.xtd-empty-icon { font-size: 40px; margin-bottom: 10px; opacity: .4; }
.xtd-empty p { font-size: 13px; margin: 0; }

/* ── Loading spinner ── */
.xtd-loading { text-align: center; padding: 30px 0; }

/* ── Responsive ── */
@media (max-width: 560px) {
    .xtd-cal-grid { gap: 2px; }
    .xtd-cal-day  { font-size: 11px; min-height: 28px; border-radius: 6px; }
    .xtd-header-inner { padding: 14px 16px; gap: 10px; }
    .xtd-header-title { font-size: 17px; }
}