/**
 * Xila Right Sidebar — New Design CSS
 * File: /wp-content/themes/xila/assets/css/sidebar-right.css
 */

/* ── Wrapper ─────────────────────────────── */
.xrs-wrap {
    height: 100%;
    overflow-y: auto;
    padding: 10px 10px 24px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.xrs-wrap::-webkit-scrollbar       { width: 3px; }
.xrs-wrap::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }

/* ── Section Title ───────────────── */
.xrs-section-title {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 2px;
    margin-bottom: -4px;
}

/* ═══════════════════════════════════
   HERO CARD (Guest — Login/Register)
═══════════════════════════════════ */
.xrs-hero-card {
    position: relative;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);
}
.xrs-hero-glow {
    position: absolute;
    top: -40px; right: -40px;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
}
.xrs-hero-icon {
    font-size: 32px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.xrs-hero-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.xrs-hero-desc {
    font-size: 11.5px;
    color: rgba(255,255,255,.65);
    line-height: 1.55;
    margin-bottom: 12px;
}
.xrs-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 14px;
}
.xrs-hero-features span {
    font-size: 10px;
    font-weight: 600;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
    padding: 3px 8px;
    border-radius: 20px;
}
.xrs-hero-btns {
    display: flex;
    gap: 7px;
}
.xrs-btn-primary {
    flex: 1;
    padding: 9px;
    background: #fff;
    color: #1e3a5f;
    border: none;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.xrs-btn-primary:hover {
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255,255,255,.2);
}
.xrs-btn-secondary {
    flex: 1;
    padding: 9px;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.xrs-btn-secondary:hover { background: rgba(255,255,255,.2); }
.xrs-hero-note {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    margin-top: 8px;
}

/* ── User Card (Logged in) ──────────── */
.xrs-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 16px rgba(37,99,235,.2);
}
.xrs-user-av {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.3);
    color: #fff; font-size: 16px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.xrs-user-info { flex: 1; min-width: 0; }
.xrs-user-name {
    font-size: 13px; font-weight: 700; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.xrs-user-meta { font-size: 11px; color: rgba(255,255,255,.6); }
.xrs-user-logout {
    color: rgba(255,255,255,.5); font-size: 14px;
    text-decoration: none; flex-shrink: 0;
    padding: 4px 6px; border-radius: 6px;
    transition: background .12s;
}
.xrs-user-logout:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ═══════════════════════════════════
   NAVIGATION GRID (2-column)
═══════════════════════════════════ */
.xrs-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.xrs-nav-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 12px 10px 10px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: left;
    font-family: inherit;
    transition: transform .15s, box-shadow .15s;
    min-height: 88px;
}
.xrs-nav-card:hover    { transform: translateY(-2px); }
.xrs-nav-card:active   { transform: scale(.97); }
.xrs-nav-card.is-active { box-shadow: 0 0 0 2.5px rgba(255,255,255,.6) inset; filter: brightness(1.08); }

.xrs-nav-glow {
    position: absolute;
    bottom: -20px; right: -20px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    pointer-events: none;
}

.xrs-nav-icon  { font-size: 22px; line-height: 1; margin-bottom: 2px; }
.xrs-nav-label { font-size: 12px; font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: .1px; }
.xrs-nav-sub   { font-size: 9.5px; color: rgba(255,255,255,.65); font-weight: 500; }

.xrs-nav-badge {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 9px; font-weight: 800;
    padding: 2px 6px; border-radius: 8px;
    background: rgba(255,255,255,.2);
    color: #fff; letter-spacing: .5px;
    border: 1px solid rgba(255,255,255,.25);
}
.xrs-nav-badge--live { background: #ef4444; border-color: #ef4444; animation: xrsBadgePulse 1.5s infinite; }
.xrs-nav-badge--hot  { background: #f97316; border-color: #f97316; }
.xrs-nav-badge--you  { background: #7c3aed; border-color: #7c3aed; }
.xrs-nav-badge--num  { background: rgba(255,255,255,.35); font-size: 10px; font-weight: 900; }

@keyframes xrsBadgePulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
    50%      { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

/* Card colors */
.xrs-nav-card--today    { background: linear-gradient(145deg,#1d4ed8,#3b82f6); box-shadow: 0 4px 16px rgba(29,78,216,.25); }
.xrs-nav-card--upcoming { background: linear-gradient(145deg,#92400e,#d97706); box-shadow: 0 4px 16px rgba(146,64,14,.25); }
.xrs-nav-card--examwatch{ background: linear-gradient(145deg,#065f46,#059669); box-shadow: 0 4px 16px rgba(6,95,70,.25); }
.xrs-nav-card--trending { background: linear-gradient(145deg,#9b1c1c,#dc2626); box-shadow: 0 4px 16px rgba(155,28,28,.25); }
.xrs-nav-card--result   { background: linear-gradient(145deg,#1e3a5f,#0e7490); box-shadow: 0 4px 16px rgba(30,58,95,.25); }
.xrs-nav-card--rozgar   { background: linear-gradient(145deg,#166534,#16a34a); box-shadow: 0 4px 16px rgba(22,101,52,.25); }
.xrs-nav-card--mydash   { background: linear-gradient(145deg,#4c1d95,#7c3aed); box-shadow: 0 4px 16px rgba(76,29,149,.25); }

/* ── Browse Links ────────────────── */
.xrs-browse-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.xrs-browse-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all .12s;
}
.xrs-browse-link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

/* ── Forum CTA Card ──────────────── */
.xrs-forum-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 12px 14px;
}
.xrs-forum-icon { font-size: 22px; flex-shrink: 0; }
.xrs-forum-text { flex: 1; min-width: 0; }
.xrs-forum-title { font-size: 12.5px; font-weight: 700; color: #4c1d95; }
.xrs-forum-sub   { font-size: 10.5px; color: #7c3aed; opacity: .8; margin-top: 1px; }
.xrs-forum-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: #7c3aed; color: #fff;
    border-radius: 8px; font-size: 11.5px; font-weight: 700;
    text-decoration: none; transition: background .12s;
}
.xrs-forum-btn:hover { background: #6d28d9; color: #fff; }