/* ============================================================
   resources/css/components/sidebar.css
   Sidebar widgets: trending, calendar countdown, subscribe form
   ============================================================ */

/* ── Widget shell ─────────────────────────────────────────── */
.widget {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.widget__header {
    padding: 11px var(--space-md);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.widget__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
}

.widget__body {
    padding: var(--space-md);
}

/* ── Countdown pill (Medicare / FAFSA deadlines) ─────────── */
.countdown-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    font-size: 12px;
}

.countdown-pill--urgent {
    background: var(--color-warm-light);
    border-left: 3px solid var(--color-warm);
}

.countdown-pill--info {
    background: var(--color-green-light);
    border-left: 3px solid var(--color-green);
}

.countdown-pill__label {
    color: var(--color-text-muted);
    font-family: var(--font-sans);
}

.countdown-pill__days {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
}

.countdown-pill--urgent .countdown-pill__days { color: var(--color-warm); }
.countdown-pill--info   .countdown-pill__days { color: var(--color-green); }

/* ── Subscribe widget ─────────────────────────────────────── */
.subscribe-widget__desc {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.subscribe-widget__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.subscribe-widget__input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    outline: none;
    transition: var(--transition);
}

.subscribe-widget__input:focus {
    border-color: var(--color-navy-light);
    background: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(26,74,138,.1);
}

.subscribe-widget__btn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    background: var(--color-navy);
    color: #fff;
    transition: var(--transition);
}

.subscribe-widget__btn:hover { background: var(--color-navy-light); }

/* ── Trending list ────────────────────────────────────────── */
.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-border);
    cursor: pointer;
    transition: var(--transition);
}

.trending-list__item:last-child { border-bottom: none; }

.trending-list__item:hover .trending-list__title {
    color: var(--color-navy-light);
}

.trending-list__rank {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-faint);
    flex-shrink: 0;
    width: 16px;
    padding-top: 2px;
}

.trending-list__title {
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-text);
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Schedule/calendar widget items ──────────────────────── */
.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px dashed var(--color-border);
    font-size: 12px;
}

.schedule-item:last-child { border-bottom: none; }

.schedule-item__label { color: var(--color-text-muted); }

.schedule-item__date {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
}

.schedule-item--urgent .schedule-item__date { color: var(--color-red); }
.schedule-item--soon   .schedule-item__date { color: var(--color-warm); }
.schedule-item--normal .schedule-item__date { color: var(--color-green); }

/* ── Social share buttons (Korean sharing) ───────────────── */
.share-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.share-btn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.share-btn--kakao {
    background: #FEE500;
    color: #3A1D00;
}
.share-btn--kakao:hover { background: #FFD600; }

.share-btn--print {
    background: var(--color-bg);
    color: var(--color-navy);
    border: 1.5px solid var(--color-border);
}
.share-btn--print:hover { background: var(--color-navy-dim); }
