/* TavernWall v6.3.95 Great Hall Feed Cleanup & Post Polish
   Scoped to the Great Hall / feed areas so it does not disturb the rest of the site. */

body.tw-great-hall-polish .feed-shell,
body.tw-great-hall-polish .wall-shell,
body.tw-great-hall-polish .great-hall-feed,
body.tw-great-hall-polish .post-list,
body.tw-great-hall-polish .posts-feed,
body.tw-great-hall-polish .main-feed {
    display: grid;
    gap: 14px;
}

body.tw-great-hall-polish .post-card,
body.tw-great-hall-polish .wall-post,
body.tw-great-hall-polish article.post,
body.tw-great-hall-polish .feed-post,
body.tw-great-hall-polish .guild-post-card,
body.tw-great-hall-polish .battle-challenge-card {
    border: 1px solid rgba(255, 217, 85, .18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 217, 85, .07), transparent 38%),
        linear-gradient(180deg, rgba(38, 24, 11, .96), rgba(20, 12, 5, .96));
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
    padding: 14px;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}

body.tw-great-hall-polish .post-card:hover,
body.tw-great-hall-polish .wall-post:hover,
body.tw-great-hall-polish article.post:hover,
body.tw-great-hall-polish .feed-post:hover {
    border-color: rgba(255, 217, 85, .30);
}

body.tw-great-hall-polish .post-header,
body.tw-great-hall-polish .post-meta,
body.tw-great-hall-polish .feed-post-header,
body.tw-great-hall-polish .wall-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 10px;
}

body.tw-great-hall-polish .post-header img,
body.tw-great-hall-polish .post-avatar,
body.tw-great-hall-polish .feed-avatar,
body.tw-great-hall-polish .avatar {
    flex: 0 0 auto;
}

body.tw-great-hall-polish .post-header strong,
body.tw-great-hall-polish .post-author,
body.tw-great-hall-polish .author-name {
    color: var(--gold, #ffd955);
    font-size: 15px;
    line-height: 1.15;
}

body.tw-great-hall-polish .post-header small,
body.tw-great-hall-polish .post-time,
body.tw-great-hall-polish .post-date,
body.tw-great-hall-polish .muted {
    color: var(--muted, #bfae86);
}

body.tw-great-hall-polish .post-body,
body.tw-great-hall-polish .post-content,
body.tw-great-hall-polish .feed-post-body,
body.tw-great-hall-polish .wall-post-body {
    color: var(--paper, #eadfbf);
    line-height: 1.45;
    font-size: 15px;
}

body.tw-great-hall-polish .post-body p,
body.tw-great-hall-polish .post-content p,
body.tw-great-hall-polish .feed-post-body p {
    margin: 0 0 10px;
}

body.tw-great-hall-polish .post-actions,
body.tw-great-hall-polish .reaction-row,
body.tw-great-hall-polish .comment-actions,
body.tw-great-hall-polish .feed-actions,
body.tw-great-hall-polish .wall-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

body.tw-great-hall-polish .post-actions button,
body.tw-great-hall-polish .post-actions a,
body.tw-great-hall-polish .reaction-row button,
body.tw-great-hall-polish .comment-actions button,
body.tw-great-hall-polish .feed-actions button,
body.tw-great-hall-polish .wall-actions button,
body.tw-great-hall-polish .mini-button {
    min-height: 32px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

body.tw-great-hall-polish .composer,
body.tw-great-hall-polish .post-composer,
body.tw-great-hall-polish .create-post,
body.tw-great-hall-polish .composer-card {
    border: 1px solid rgba(255, 217, 85, .20);
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 217, 85, .08), transparent 40%),
        rgba(0,0,0,.13);
    padding: 14px;
    margin-bottom: 16px;
}

body.tw-great-hall-polish .composer textarea,
body.tw-great-hall-polish .post-composer textarea,
body.tw-great-hall-polish .create-post textarea {
    min-height: 110px;
    line-height: 1.4;
    resize: vertical;
}

body.tw-great-hall-polish .composer-actions,
body.tw-great-hall-polish .post-type-tabs,
body.tw-great-hall-polish .post-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

body.tw-great-hall-polish .comments,
body.tw-great-hall-polish .comment-list,
body.tw-great-hall-polish .post-comments {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 217, 85, .12);
}

body.tw-great-hall-polish .comment,
body.tw-great-hall-polish .comment-card {
    border: 1px solid rgba(255, 217, 85, .12);
    border-radius: 14px;
    padding: 9px 10px;
    background: rgba(0,0,0,.13);
}

body.tw-great-hall-polish .challenge-post,
body.tw-great-hall-polish .battle-post,
body.tw-great-hall-polish .battle-challenge-card,
body.tw-great-hall-polish [data-post-type="battle"],
body.tw-great-hall-polish [data-type="battle_challenge"] {
    border-left: 5px solid #ff8a80;
}

body.tw-great-hall-polish .guild-post,
body.tw-great-hall-polish .guild-post-card,
body.tw-great-hall-polish [data-post-type="guild"],
body.tw-great-hall-polish [data-type="guild"] {
    border-left: 5px solid #ffd955;
}

body.tw-great-hall-polish .tw-post-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 217, 85, .20);
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(0,0,0,.18);
    color: var(--gold, #ffd955);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

body.tw-great-hall-polish .tw-battle-summary {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(255, 138, 128, .24);
    border-radius: 14px;
    background: rgba(80, 18, 12, .18);
    padding: 10px;
    margin: 10px 0;
}

body.tw-great-hall-polish .tw-battle-summary strong {
    color: #ffcfbf;
}

body.tw-great-hall-polish .tw-battle-log-lines {
    display: grid;
    gap: 3px;
    margin-top: 4px;
    color: var(--paper, #eadfbf);
}

body.tw-great-hall-polish .empty,
body.tw-great-hall-polish .empty-state,
body.tw-great-hall-polish .no-posts {
    border: 1px dashed rgba(255, 217, 85, .24);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    color: var(--muted, #bfae86);
    background: rgba(0,0,0,.12);
}

body.tw-great-hall-polish .tw-hidden-helper {
    display: none !important;
}

body.tw-great-hall-polish .tw-feed-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
}

body.tw-great-hall-polish .tw-feed-section-title h2,
body.tw-great-hall-polish .tw-feed-section-title h3 {
    margin: 0;
}

@media (max-width: 800px) {
    body.tw-great-hall-polish .post-header,
    body.tw-great-hall-polish .post-meta,
    body.tw-great-hall-polish .feed-post-header,
    body.tw-great-hall-polish .wall-post-header {
        align-items: flex-start;
    }

    body.tw-great-hall-polish .post-actions button,
    body.tw-great-hall-polish .post-actions a,
    body.tw-great-hall-polish .reaction-row button,
    body.tw-great-hall-polish .comment-actions button,
    body.tw-great-hall-polish .feed-actions button,
    body.tw-great-hall-polish .wall-actions button {
        flex: 1 1 auto;
        justify-content: center;
    }
}
