/* ============================================================
   游戏大厅插件样式 — 全部使用主题 CSS 变量，自动跟随站点主题配色
   （主色/浅底/文字/边框/阴影均取自 --mn-*，切主题无需改本文件）
   @file plugins/game_hall/assets/style.css
   ============================================================ */
.gh-wrap {
    padding-bottom: 40px;
}

/* ---------- Banner ---------- */
.gh-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 30px 32px;
    border-radius: 16px;
    background: linear-gradient(115deg,
        var(--mn-bg-card, #fff) 0%,
        var(--mn-primary-subtle, #f0f3ff) 60%,
        var(--mn-primary-light, #eef1ff) 100%);
    border: 1px solid var(--mn-border-light);
    overflow: hidden;
    margin-bottom: 18px;
}
.gh-hero-text { position: relative; z-index: 1; }
.gh-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--mn-primary);
    margin: 0 0 6px;
}
.gh-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--mn-text);
    margin: 0 0 4px;
    line-height: 1.2;
}
.gh-subtitle {
    font-size: 14px;
    color: var(--mn-text-secondary);
    margin: 0 0 14px;
}
.gh-points {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--mn-bg-card, #fff);
    box-shadow: var(--mn-shadow-primary-glow, 0 2px 8px rgba(0, 0, 0, 0.12));
    color: var(--mn-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.gh-points-link:hover { color: var(--mn-primary-hover); }

/* Banner 右侧装饰 */
.gh-hero-art {
    position: relative;
    width: 190px;
    height: 130px;
    flex-shrink: 0;
    pointer-events: none;
}
.gh-art-pad {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    font-size: 92px;
    line-height: 1;
    filter: drop-shadow(var(--mn-shadow-primary-glow, 0 4px 12px rgba(0, 0, 0, 0.18)));
}
.gh-art-star { position: absolute; font-size: 30px; opacity: 0.9; }
.gh-art-star.c1 { left: 8px; top: 6px; }
.gh-art-star.c2 { left: 52px; bottom: 2px; font-size: 22px; opacity: 0.7; }
.gh-art-blob {
    position: absolute;
    border-radius: 50%;
    background: var(--mn-bg-theme-badge, var(--mn-primary-light));
}
.gh-art-blob.b1 { width: 80px; height: 80px; left: -12px; bottom: -18px; }
.gh-art-blob.b2 { width: 46px; height: 46px; right: 0; top: -10px; }

/* ---------- 分类标签 ---------- */
.gh-cats {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.gh-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--mn-border);
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}
.gh-cat:hover {
    border-color: var(--mn-primary);
    color: var(--mn-primary);
}
.gh-cat.active {
    background: var(--mn-primary-light, var(--mn-primary-subtle));
    border-color: var(--mn-primary);
    color: var(--mn-primary);
    font-weight: 600;
}

/* ---------- 游戏卡片网格 ---------- */
.gh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.gh-card {
    display: flex;
    flex-direction: column;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    padding: 16px 14px 12px;
    box-shadow: var(--mn-shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}
.gh-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mn-shadow-dropdown, var(--mn-shadow));
    border-color: var(--mn-primary);
}
.gh-card-icon { font-size: 32px; line-height: 1; margin-bottom: 10px; }
.gh-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--mn-text);
    margin: 0 0 6px;
}
.gh-card-desc {
    font-size: 12px;
    color: var(--mn-text-muted);
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
}
.gh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    align-self: flex-start;
    padding: 7px 16px;
    border: none;
    border-radius: 999px;
    background: var(--mn-primary-light, var(--mn-primary-subtle));
    color: var(--mn-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.gh-btn:hover {
    background: var(--mn-primary);
    color: var(--mn-text-white, #fff);
}

/* ---------- 底部双栏 ---------- */
.gh-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    /* 两栏等高：行高取内容较高的一侧，另一侧拉满对齐 */
    align-items: stretch;
}
.gh-panel {
    display: flex;
    flex-direction: column;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--mn-shadow-sm);
}
.gh-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.gh-panel-head h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--mn-text);
    margin: 0;
}
.gh-panel-link { font-size: 13px; color: var(--mn-text-muted); }
.gh-rank-empty {
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
    color: var(--mn-text-muted);
}

/* ---------- 今日排行榜 ---------- */
.gh-rank { list-style: none; margin: 0; padding: 0; }
.gh-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
}
.gh-rank-item + .gh-rank-item { margin-top: 2px; }
/* 高亮当前登录用户自己那一行 */
.gh-rank-item.me { background: var(--mn-primary-light, var(--mn-primary-subtle)); }
.gh-rank-no {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--mn-border-light);
    color: var(--mn-text-muted);
    font-size: 12px;
    font-weight: 700;
}
/* 前三名奖牌色（金银铜，与主题无关，故固定色值） */
.gh-rank-no.n1 { background: #f5a623; color: #fff; }
.gh-rank-no.n2 { background: #a8b3bd; color: #fff; }
.gh-rank-no.n3 { background: #c98b53; color: #fff; }
.gh-rank-avatar { flex-shrink: 0; display: inline-flex; }
.gh-rank-avatar img,
.gh-rank-letter {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mn-primary-light, var(--mn-primary-subtle));
    color: var(--mn-primary);
    font-size: 13px;
    font-weight: 700;
}
.gh-rank-info { flex: 1; min-width: 0; }
.gh-rank-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--mn-text);
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.gh-rank-sub { font-size: 11px; color: var(--mn-text-muted); margin: 1px 0 0; }
.gh-rank-score {
    flex-shrink: 0;
    color: var(--mn-primary);
    font-size: 13px;
    font-weight: 700;
}
.gh-rank-score-down { color: var(--mn-error, #ef4444); }
.gh-rank-score em {
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    color: var(--mn-text-muted);
    margin-left: 2px;
}

/* ---------- 每日任务 ---------- */
.gh-tasks { list-style: none; margin: 0; padding: 0; }
.gh-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--mn-border-light);
}
.gh-task:last-child { border-bottom: none; }
.gh-task-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--mn-primary-light, var(--mn-primary-subtle));
    color: var(--mn-primary);
    flex-shrink: 0;
}
.gh-task-body { flex: 1; min-width: 0; }
.gh-task-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--mn-text);
    margin: 0 0 2px;
}
.gh-task-desc { font-size: 12px; color: var(--mn-text-muted); margin: 0; }
.gh-task-state {
    font-size: 12px;
    color: var(--mn-text-muted);
    flex-shrink: 0;
    border: none;
    background: none;
    white-space: nowrap;
}
.gh-done-tag {
    color: var(--mn-success, #22c55e);
    font-weight: 600;
}
.gh-claim {
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--mn-primary-light, var(--mn-primary-subtle));
    color: var(--mn-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.gh-claim:hover {
    background: var(--mn-primary);
    color: var(--mn-text-white, #fff);
}
.gh-inline { display: inline; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
    .gh-hero { padding: 24px 22px; }
    .gh-hero-art { display: none; }
    .gh-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .gh-grid { grid-template-columns: repeat(2, 1fr); }
    .gh-title { font-size: 24px; }
    .gh-panel { padding: 14px; }
}
