/* ============================================================
   SLMIdeas.css -- IdeasPage custom page styles
   BEM prefix: idea__
   ============================================================ */

/* ── Layout ── */

.idea__ {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
}

.idea__header {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.idea__header h1 {
    margin: 0 0.5rem 0 0;
    font-size: 1.4rem;
    line-height: 2rem;
}

/* ── Error ── */

.idea__error {
    color: #c00;
    background: #fff5f5;
    border: 1px solid #c00;
    padding: 0.5rem;
    border-radius: 4px;
    white-space: pre-wrap;
    font-size: 0.9rem;
}

/* ── Loading / empty ── */

.idea__loading, .idea__empty {
    color: var(--slm-muted, #999);
    font-style: italic;
    padding: 1rem 0;
}

/* ── Vote button ── */

.idea__vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 3px;
    cursor: pointer;
    color: var(--slm-muted, #999);
    transition: color 0.15s, background 0.15s;
}

.idea__vote-btn:hover {
    color: var(--slm-color-accent, #2563eb);
    background: color-mix(in srgb, var(--slm-color-accent, #2563eb) 12%, transparent 88%);
}

.idea__vote-btn--active {
    color: var(--slm-color-accent, #2563eb);
    font-weight: bold;
}

.idea__vote-btn--large {
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
}

.idea__vote-score {
    font-weight: 600;
    color: var(--slm-color-text, #222);
    font-size: 0.9rem;
}

.idea__vote-score--large {
    font-size: 1.2rem;
}

.idea__voted-label {
    font-size: 0.8rem;
    color: var(--slm-color-accent, #2563eb);
    margin-left: 0.25rem;
}

.idea__vote-label {
    font-size: 0.85rem;
    color: var(--slm-muted, #888);
    margin-left: 0.15rem;
}

/* ── Detail panel ── */

.idea__detail {
    border: 1px solid var(--slm-color-border, #ddd);
    border-radius: 4px;
    padding: 1rem;
    background: var(--slm-color-surface, #fff);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.idea__detail-header h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
}

.idea__detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
}

.idea__detail-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    background: var(--slm-color-border, #e0e0e0);
    color: var(--slm-color-text, #333);
    font-size: 0.8rem;
}

.idea__detail-badge--status {
    background: color-mix(in srgb, var(--slm-color-accent, #2563eb) 15%, #f0f0f0 85%);
    color: var(--slm-color-accent, #2563eb);
}

.idea__detail-badge--schema {
    background: color-mix(in srgb, #8b5cf6 15%, #f0f0f0 85%);
    color: #7c3aed;
}

.idea__detail-badge--release {
    background: color-mix(in srgb, #22c55e 15%, #f0f0f0 85%);
    color: #16a34a;
}

.idea__detail-by {
    color: var(--slm-muted, #999);
}

.idea__detail-html {
    padding: 0.5rem;
    border: 1px solid var(--slm-color-border, #eee);
    border-radius: 4px;
    background: var(--slm-color-surface, #fafafa);
    font-size: 0.95rem;
    flex: 1 1 auto;
    min-width: 200px;
    margin-bottom: 0;
}

.idea__detail-content-row {
    display: flex;
    flex-flow: row wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.idea__detail-vote {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

/* ── Admin actions ── */

.idea__admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--slm-color-border, #eee);
}

/* ── Comments ── */

.idea__comments {
    padding-top: 0;
}

.idea__comments-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.idea__comments-header h3 {
    margin: 0;
    font-size: 1.0rem;
}

.idea__comment {
    display: flex;
    flex-flow: row wrap;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.idea__comment--reply {
    margin-left: 1.5rem;
    border-left: 2px solid var(--slm-color-border, #ddd);
    padding-left: 0.75rem;
}

.idea__comment strong {
    color: var(--slm-color-text, #222);
    font-size: 0.85rem;
}

.idea__comment-date {
    color: var(--slm-muted, #999);
    font-size: 0.8rem;
}

.idea__comment-body {
    color: var(--slm-color-text, #333);
    font-size: 0.9rem;
}
