/* 
  Circle V2 Theme Styles
  Inspired by https://1.tuangounet.com/
*/

/* 1. Base Variables & Box System */
:root {
    --primary-color: #0066ff;
    --primary-light: #eef2ff;
    --bg-gray: #f7f8fa;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #f1f5f9;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.box {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
}

/* 2. Grid Layout */
.content-area {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 20px;
    margin-top: 20px;
}

/* 3. Left Sidebar (widget-area-left) */
.widget-side-nav {
    padding: 10px;
}

.side-banner {
    height: 100px;
    background: linear-gradient(135deg, #0066ff, #00d2ff);
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
}

.circle-list-simple {
    list-style: none;
    margin: 0;
    padding: 0;
}

.circle-list-simple li {
    margin-bottom: 4px;
}

.circle-list-simple a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #475569;
    font-weight: 600;
    transition: all 0.2s;
}

.circle-list-simple a:hover,
.circle-list-simple a.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.circle-list-simple .icon {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid #eef2ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

/* 4. Main Content: Quick Nav & Filters */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 15px;
    gap: 10px;
}

.quick-nav-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
}

.quick-nav-grid a:hover {
    background: #f8fafc;
}

.q-icon {
    font-size: 22px;
    background: #f1f5f9;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.q-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.filter-tab-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
}

.filter-tab-bar .tabs {
    display: flex;
    gap: 4px;
}

.filter-tab-bar .tabs a {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 6400;
    color: #64748b;
}

.filter-tab-bar .tabs a:hover {
    color: var(--primary-color);
}

.filter-tab-bar .tabs a.active {
    background: var(--primary-color);
    color: #fff;
}

.filter-tab-bar .order select {
    border: none;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    outline: none;
}

/* 5. Topic Cards */
.topic-card {
    padding: 24px;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.user-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-block .avatar img {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #eee;
}

.user-block .meta .name {
    font-weight: 800;
    font-size: 15px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-block .meta .badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
}

.user-block .meta .time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.card-header .tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.card-body .title {
    font-size: 19px;
    font-weight: 800;
    margin: 12px 0;
    line-height: 1.4;
}

.card-body .title a {
    color: #1e293b;
    transition: color 0.2s;
}

.card-body .title a:hover {
    color: var(--primary-color);
}

.essence-label {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

.card-body .excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.card-footer .stats {
    display: flex;
    gap: 24px;
}

.action-btn {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.join-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

/* 6. Right Sidebar Widgets */
.widget-user-panel {
    padding: 24px;
}

.widget-user-panel .u-info {
    text-align: center;
    margin-bottom: 24px;
}

.widget-user-panel .u-info img {
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid #f1f5f9;
}

.widget-user-panel .u-name {
    font-weight: 800;
    font-size: 17px;
}

.u-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-checkin,
.btn-post,
.btn-primary,
.btn-blue {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    transition: transform 0.2s;
}

.btn-checkin {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-post,
.btn-primary,
.btn-blue {
    background: var(--primary-color);
    color: #fff;
}

.btn-post:hover,
.btn-primary:hover {
    transform: scale(1.02);
}

.login-promo h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.login-promo p {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.widget-title {
    font-size: 15px;
    font-weight: 800;
    color: #334155;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-notice .notice-content {
    padding: 20px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.8;
}

.ranking-list {
    list-style: none;
    margin: 0;
    padding: 15px 20px;
}

.ranking-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rank-num {
    width: 20px;
    height: 20px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-num.top {
    background: var(--primary-color);
    color: #fff;
}

.ranking-list a {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.ranking-list a:hover {
    color: var(--primary-color);
}

/* 7. Pagination & Empty State */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
}

.empty-state {
    padding: 80px 20px;
    text-align: center;
}

.empty-state p {
    color: #94a3b8;
    margin-bottom: 25px;
    font-size: 15px;
}

/* 8. Responsive Design */
@media screen and (max-width: 1200px) {
    .content-area {
        grid-template-columns: 180px 1fr 240px;
    }
}

@media screen and (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .widget-area-left,
    .widget-area-right {
        display: none;
    }

    .wrapper {
        padding: 0 15px;
    }
}

@media screen and (max-width: 480px) {
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-footer .stats {
        gap: 15px;
    }
}