/* ============================================
   COMMUNITY HUB - MOBILE STYLES (max-width: 768px)
   ============================================ */

.community-page {
    padding: 16px 10px 100px;
}

/* Single-column layout on mobile */
.community-layout {
    grid-template-columns: 1fr;
    gap: 8px;
}

.feed-header {
    margin-bottom: 8px;
}
.feed-header h1 {
    font-size: 1.15rem;
}

/* Create bar */
.feed-create-bar {
    padding: 5px 6px;
    gap: 4px;
    margin-bottom: 8px;
}
.feed-create-bar .create-search {
    padding: 6px 10px;
    font-size: 0.75rem;
}
.feed-create-bar .create-btn {
    width: 30px;
    height: 30px;
}
.feed-create-bar .create-btn svg { width: 16px; height: 16px; }

/* Sort buttons in header */
.feed-sort {
    gap: 2px;
}

.sort-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
}

/* Hide view toggle on mobile — force list view */
.style-toggle { display: none; }

/* Tabs */
.feed-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 10px;
}
.feed-tabs::-webkit-scrollbar { display: none; }

.feed-tab {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 0.72rem;
    white-space: nowrap;
}

/* ==========================================
   SIDEBAR — hidden on mobile
   ========================================== */

.community-sidebar {
    display: none;
}

/* ==========================================
   CONTEST FEATURED CARD
   ========================================== */

.ch-feat { padding: 10px 12px; gap: 10px; }
.ch-feat-covers img { width: 30px; height: 43px; margin-left: -8px; }
.ch-feat-title { font-size: 0.82rem; }
.ch-feat-cta { padding: 5px 10px; font-size: 0.68rem; }
.ch-feat-label { font-size: 0.5rem; }

/* Contest tab grid */
.ch-grid { grid-template-columns: 1fr; gap: 10px; }
.ch-card-covers { height: 70px; }
.ch-card-info { padding: 10px 12px; }
.ch-card-title { font-size: 0.85rem; }

/* ==========================================
   FORCE LIST VIEW — override Style B
   ========================================== */

.feed-list {
    gap: 8px;
}
.feed-list.style-b {
    flex-direction: column;
    gap: 8px;
}
.b-col {
    gap: 8px;
    perspective: none;
}
.b-col-right {
    margin-top: 0;
}

/* Disable 3D tilt on touch */
.feed-card.b-card {
    transform-style: flat;
    will-change: auto;
}
.b-card-shine { display: none; }
.feed-card.b-card::after { display: none; }
.feed-card.b-card {
    border-radius: 12px;
}

/* ==========================================
   COMPACT CARD BODIES
   ========================================== */

.b-body {
    padding: 10px 12px 4px;
    min-height: 0;
}
/* Tier list / review cards need min-height for the preview image */
.feed-card--tierlist .b-body,
.feed-card--review .b-body {
    padding-right: 100px;
    min-height: 80px;
}
.b-type {
    font-size: 0.56rem;
    margin-bottom: 4px;
}
.b-card .b-title {
    font-size: 0.84rem;
    margin-bottom: 2px;
}
.b-card .b-preview {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
    margin-bottom: 0;
}

/* Meta bar */
.b-meta {
    padding: 4px 12px 8px;
    gap: 4px;
}
.b-meta .b-avatar-wrap {
    width: 20px;
    height: 20px;
}
.b-meta .b-avatar {
    font-size: 0.5rem;
}
.b-meta .b-author {
    font-size: 0.7rem;
}
.b-meta .b-time {
    font-size: 0.62rem;
}
.b-actions .vote-arrow svg {
    width: 12px;
    height: 12px;
}
.b-actions .vote-count {
    font-size: 0.68rem;
}
.b-actions .b-stat {
    font-size: 0.6rem;
    margin-left: 4px;
}
.b-actions .b-stat svg {
    width: 10px;
    height: 10px;
}

/* Review cover — visible size */
.b-review-cover {
    width: 60px;
    height: 84px;
    top: 8px;
    right: 8px;
}

/* Tier list mini preview — readable size */
.b-mini-tierlist {
    width: 85px;
    top: 8px;
    right: 8px;
}
.mini-tier-label {
    width: 16px;
    font-size: 0.32rem;
}
.mini-tier-items img {
    width: 14px;
    height: 11px;
}
.mini-tier-row {
    min-height: 11px;
}
.mini-tier-items {
    min-height: 11px;
}

/* Thumb */
.b-card .b-thumb {
    width: 40px;
    height: 56px;
    border-radius: 6px;
}
