/* =============================================================
   AethCore — sidebar.css
   Sidebar widget content: game cards, blog items, forum user list.
   Also used on the profile page for the same components.
   ============================================================= */

/* --- Game rows (top fav / now playing) --- */

.game-row {
    display: flex;
    gap: 5px;
}

.game-card {
    flex: 1;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover .game-card-cover {
    border-color: #888;
}

.game-card-cover,
.game-card-no-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border: 1px solid #ccc;
}

.game-card-no-cover {
    background: #ddd;
}

.game-card-title {
    font-size: 9px;
    color: #444;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.game-card-count {
    font-size: 9px;
    color: #c85000;
    font-weight: bold;
    display: block;
}

/* --- Recent blog / news items --- */

.blog-list {
    list-style: none;
}

.blog-item {
    padding: 5px 0;
    border-bottom: 1px solid #e4e4e4;
}

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

.blog-item-title {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #222;
    line-height: 1.3;
}

.blog-item-title:hover {
    color: #c85000;
    text-decoration: none;
}

.blog-item-meta {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

.blog-item-meta a {
    color: #777;
}

.blog-item-meta a:hover {
    color: #c85000;
}

/* --- Top forum users --- */

.forum-user-list {
    list-style: none;
}

.forum-user-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 0;
    border-bottom: 1px solid #e4e4e4;
}

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

.forum-user-avatar,
.forum-user-no-avatar {
    width: 28px;
    height: 28px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ccc;
    display: block;
}

.forum-user-no-avatar {
    background: #ddd;
}

.forum-user-name {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-user-name:hover {
    color: #c85000;
    text-decoration: none;
}

.forum-user-count {
    font-size: 11px;
    color: #c85000;
    font-weight: bold;
    flex-shrink: 0;
}

/* --- Recent screenshots --- */

.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.screenshot-thumb,
.screenshot-no-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border: 1px solid #ccc;
}

.screenshot-thumb:hover {
    opacity: 0.85;
}
