/* ============================================================
   오늘의 꿈 키워드 위젯 — 사이트 공통 디자인 언어 (컴팩트형)
   ============================================================ */
@charset "utf-8";

.dk {
    --bg: linear-gradient(160deg, #0d1024 0%, #171c3a 55%, #101427 100%);
    --solid: #161a33;
    --card: rgba(255, 255, 255, .045);
    --card-b: rgba(255, 255, 255, .10);
    --t1: #edeaf3;
    --t2: #aaa7c0;
    --t3: #767390;
    --gold: #d9b96c;
    --gold-hi: #f0d28a;
    --gold-dim: rgba(217, 185, 108, .12);
    --r: 18px;
    --r-sm: 12px;

    font-family: 'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--r);
    color: var(--t1);
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 16px 48px rgba(5, 6, 20, .45);
    overflow: hidden;
    line-height: 1.55;
    box-sizing: border-box;
    padding: 18px 20px 14px;
}

.dk[data-theme="light"] {
    --bg: linear-gradient(160deg, #faf6ec 0%, #f3ecdc 60%, #f7f2e6 100%);
    --solid: #f7f2e6;
    --card: rgba(66, 50, 20, .045);
    --card-b: rgba(66, 50, 20, .13);
    --t1: #322e3c;
    --t2: #625d70;
    --t3: #918c9e;
    --gold: #a8823c;
    --gold-hi: #8a6a2b;
    --gold-dim: rgba(168, 130, 60, .12);
    border-color: rgba(66, 50, 20, .10);
    box-shadow: 0 14px 40px rgba(120, 100, 60, .16);
}

.dk *,
.dk *::before,
.dk *::after { box-sizing: border-box }

/* ---------- 헤더 ---------- */
.dk__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.dk__hd-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dk__hd-label::before {
    content: "☾";
    font-size: 16px;
}

.dk__hd-date {
    font-size: 12.5px;
    color: var(--t3);
}

/* ---------- 오늘의 키워드 ---------- */
.dk__main {
    background: linear-gradient(150deg, var(--gold-dim), transparent 75%), var(--card);
    border: 1px solid var(--gold);
    border-radius: var(--r-sm);
    padding: 18px;
    text-align: center;
}

.dk__cat {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 999px;
    padding: 1px 10px;
    background: var(--gold-dim);
}

.dk__kw {
    margin: 10px 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--t1);
    letter-spacing: -.01em;
}

.dk__teaser {
    margin: 0;
    font-size: 14px;
    color: var(--t2);
    line-height: 1.7;
}

.dk__actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.dk__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--t2);
    background: var(--card);
    border: 1px solid var(--card-b);
    transition: border-color .2s, color .2s, transform .2s;
}

.dk__btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-1px);
}

.dk__btn--primary {
    color: #221a05;
    background: linear-gradient(135deg, var(--gold-hi), var(--gold));
    border: none;
}

.dk[data-theme="light"] .dk__btn--primary { color: #fffaf0 }

.dk__btn--primary:hover {
    color: #221a05;
    box-shadow: 0 5px 16px rgba(217, 185, 108, .3);
}

.dk[data-theme="light"] .dk__btn--primary:hover { color: #fffaf0 }

/* ---------- 관련 키워드 ---------- */
.dk__sec { margin-top: 14px }

.dk__sec-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--t2);
    margin-bottom: 8px;
}

.dk__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dk__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--card);
    border: 1px solid var(--card-b);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--t2);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.dk__chip:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ---------- 자주 찾는 꿈 ---------- */
.dk__popular { margin-top: 14px }

.dk__popular summary {
    padding: 11px 14px;
    background: var(--card);
    border: 1px solid var(--card-b);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--t1);
    cursor: pointer;
    user-select: none;
    list-style-position: inside;
    transition: border-color .2s;
}

.dk__popular summary:hover { border-color: var(--gold) }

.dk__popular ol {
    margin: 8px 0 0;
    padding: 6px 14px;
    background: var(--card);
    border-radius: 10px;
    list-style: none;
    counter-reset: dkpop;
}

.dk__popular li {
    counter-increment: dkpop;
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.6;
}

.dk__popular li + li { border-top: 1px dashed var(--card-b) }

.dk__popular li::before {
    content: counter(dkpop);
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    text-align: center;
    line-height: 20px;
    font-size: 11px;
    font-weight: 800;
    color: var(--gold);
    background: var(--gold-dim);
    border-radius: 6px;
}

.dk__popular li a {
    color: var(--t1);
    font-weight: 700;
    text-decoration: none;
}

.dk__popular li a:hover { color: var(--gold) }

.dk__popular li span {
    display: block;
    color: var(--t3);
    font-size: 12px;
    margin: 2px 0 0 28px;
}

.dk__foot {
    margin: 12px 2px 0;
    font-size: 11.5px;
    color: var(--t3);
    text-align: center;
}
