/* Community polls and activity feed */

.poll-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

.poll-card {
    padding: 22px;
    display: grid;
    gap: 14px;
    border: 1px solid rgba(177, 194, 220, 0.14);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(20, 24, 44, 0.92), rgba(9, 12, 24, 0.96));
}

.poll-card h3 { margin: 4px 0 0; font-size: 1.3rem; line-height: 1.25; }
.poll-kicker { margin: 0; color: #7af5ed; font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.poll-desc { margin: 6px 0 0; color: #a8afbd; font-size: 14.5px; }

.poll-options { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }

.poll-option {
    position: relative;
    overflow: hidden;
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(183, 204, 226, 0.22);
    border-radius: 12px;
    background: rgba(5, 7, 14, 0.5);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.poll-option:hover { border-color: rgba(122, 245, 237, 0.5); }
.poll-option:has(input:checked) { border-color: rgba(122, 245, 237, 0.7); }
.poll-option input { position: relative; z-index: 1; accent-color: #7af5ed; }

.poll-option progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    appearance: none;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poll-option progress::-webkit-progress-bar { background: transparent; }
.poll-option progress::-webkit-progress-value { background: rgba(122, 76, 255, 0.28); }
.poll-option progress::-moz-progress-bar { background: rgba(122, 76, 255, 0.28); }
.poll-option.is-leading progress::-webkit-progress-value { background: rgba(47, 184, 196, 0.32); }
.poll-option.is-leading progress::-moz-progress-bar { background: rgba(47, 184, 196, 0.32); }

.poll-label { position: relative; z-index: 1; flex: 1; color: #eef1f6; font-weight: 650; }
.poll-label small { margin-left: 6px; color: #75e5ad; font-size: 12px; }
.poll-percent { position: relative; z-index: 1; display: none; color: #dfe4ec; font-weight: 750; font-variant-numeric: tabular-nums; }

.show-results .poll-option progress { opacity: 1; }
.show-results .poll-percent { display: inline; }

.poll-submit {
    justify-self: start;
    margin-top: 10px;
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(115deg, #7a4cff, #2fb8c4);
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.poll-submit:active { transform: scale(0.97); }

/* Activity feed */

.activity-list { margin: 0; padding: 0; display: grid; gap: 4px; list-style: none; }

.activity-list a {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    color: #e6eaf1;
    text-decoration: none;
    transition: background 0.15s ease;
}

.activity-list a:hover { background: rgba(122, 245, 237, 0.07); }
.activity-icon { font-size: 1.3rem; text-align: center; }
.activity-text strong { color: #fff; }
.activity-list time { color: #a8afbd; font-size: 12.5px; white-space: nowrap; }

.activity-card {
    padding: 14px;
    border: 1px solid rgba(177, 194, 220, 0.14);
    border-radius: 18px;
    background: rgba(9, 12, 24, 0.8);
}

.activity-empty { margin: 8px 14px; color: #a8afbd; }
.activity-empty a { color: #7af5ed; }

.community-columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .community-columns { grid-template-columns: minmax(0, 1fr); } }
