/* ── Ideas / Feature Requests Page ───────────────────────────── */

.ideas-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 1rem 3rem;
}

/* Hero */
.ideas-hero {
    text-align: center;
    margin-bottom: 2rem;
}
.ideas-hero__title {
    font-size: 1.75rem;
    color: var(--gold, #c4a24e);
    margin: 0 0 0.5rem;
}
.ideas-hero__subtitle {
    color: var(--text-dimmed, #7a7870);
    margin: 0 0 1.25rem;
    font-size: 1rem;
}
.ideas-hero__submit {
    font-size: 0.95rem;
}
.ideas-hero__login-hint {
    color: var(--text-dimmed, #7a7870);
    font-size: 0.85rem;
    margin: 0;
}

/* Toolbar (Sort + Filter) */
.ideas-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

/* Sort Bar */
.ideas-sort {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* Filter Dropdowns */
.ideas-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.ideas-filter-select {
    padding: 0.4rem 1.8rem 0.4rem 0.65rem;
    border: 1px solid var(--border, #2a2a35);
    background: var(--panel, #13151a);
    color: var(--text, #e0ddd5);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: border-color 0.15s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a7870' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
}
.ideas-filter-select:hover,
.ideas-filter-select:focus {
    border-color: var(--gold, #c4a24e);
    outline: none;
}
.ideas-filter-select option {
    background: var(--panel, #13151a);
    color: var(--text, #e0ddd5);
}
.ideas-sort__btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border, #2a2a35);
    background: transparent;
    color: var(--text-dimmed, #7a7870);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s;
}
.ideas-sort__btn:hover {
    border-color: var(--gold, #c4a24e);
    color: var(--text, #e0ddd5);
}
.ideas-sort__btn--active {
    background: var(--gold, #c4a24e);
    color: #0a0a0f;
    border-color: var(--gold, #c4a24e);
    font-weight: 600;
}

/* Ideas List */
.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Idea Card */
.idea-card {
    display: flex;
    gap: 1rem;
    background: var(--panel, #13151a);
    border: 1px solid var(--border, #252830);
    border-radius: 8px;
    padding: 1rem;
    transition: border-color 0.2s;
    cursor: pointer;
}
.idea-card:hover {
    border-color: var(--gold, #c4a24e);
}
.idea-card--expanded {
    cursor: default;
}

/* Vote Column */
.idea-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
    flex-shrink: 0;
}
.idea-vote__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    background: none;
    border: 1px solid var(--border, #2a2a35);
    border-radius: 6px;
    padding: 0.35rem 0.4rem;
    cursor: pointer;
    color: var(--text-dimmed, #7a7870);
    transition: all 0.2s;
    width: 100%;
}
.idea-vote__btn:hover {
    border-color: var(--gold, #c4a24e);
    color: var(--gold, #c4a24e);
}
.idea-vote__btn--voted {
    border-color: var(--gold, #c4a24e);
    color: var(--gold, #c4a24e);
    background: rgba(196, 162, 78, 0.1);
}
.idea-vote__btn--disabled {
    opacity: 0.5;
    cursor: default;
}
.idea-vote__icon {
    font-size: 0.75rem;
    line-height: 1;
}
.idea-vote__count {
    font-size: 0.8rem;
    font-weight: 700;
}

/* Card Body */
.idea-body {
    flex: 1;
    min-width: 0;
}
.idea-body__title {
    font-size: calc(1rem + 2px);
    font-weight: 600;
    color: var(--text, #e0ddd5);
    margin: 0 0 0.35rem;
    line-height: 1.3;
}
.idea-body__desc {
    font-size: calc(0.85rem + 2px);
    color: var(--text-dimmed, #7a7870);
    margin: 0 0 0.5rem;
    line-height: 1.5;
    word-break: break-word;
}
.idea-body__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-dimmed, #7a7870);
    flex-wrap: wrap;
}
.idea-body__meta-sep {
    opacity: 0.4;
}
.idea-body__comments-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.idea-body__lang {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dimmed, #7a7870);
    border: 1px solid var(--border, #2a2a35);
}

/* Status Badges */
.idea-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.idea-badge--approved       { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.idea-badge--planned        { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.idea-badge--in_development { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.idea-badge--completed      { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.idea-badge--declined       { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }

/* Expanded Content */
.idea-expanded {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border, #252830);
}
.idea-expanded__full-desc {
    font-size: calc(0.85rem + 2px);
    color: var(--text, #e0ddd5);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0 0 1rem;
}

/* Comment Thread */
.idea-comments {
    margin-top: 0.75rem;
}
.idea-comment {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border, #252830);
}
.idea-comment:last-child {
    border-bottom: none;
}
.idea-comment__header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dimmed, #7a7870);
    margin-bottom: 0.25rem;
}
.idea-comment__author {
    font-weight: 600;
    color: var(--text, #e0ddd5);
}
.idea-comment__staff-tag {
    background: var(--gold, #c4a24e);
    color: #0a0a0f;
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.3rem;
    vertical-align: middle;
}
.idea-comment__body {
    font-size: 0.85rem;
    color: var(--text, #e0ddd5);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Comment Form */
.idea-comment-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    align-items: flex-start;
}
.idea-comment-form__input {
    flex: 1;
    resize: vertical;
}
.idea-comment-form__btn {
    flex-shrink: 0;
}

/* Empty State */
.ideas-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-dimmed, #7a7870);
}

/* Submit Modal */
#idea-modal {
    pointer-events: none;
    visibility: hidden;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.55);
}
#idea-modal.modal-overlay--visible {
    pointer-events: auto;
    visibility: visible;
}
.ideas-modal {
    max-width: 500px;
    background: #16171f;
    border: 1px solid rgba(196, 162, 78, 0.15);
    border-radius: 12px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ideas-modal .modal__header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 1.5rem 1rem;
    border-radius: 12px 12px 0 0;
}
.ideas-modal .modal__header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold, #c4a24e);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ideas-modal .modal__header h3::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c4a24e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 1 4 12.7V17H8v-2.3A7 7 0 0 1 12 2z'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
}
.ideas-modal .modal__close {
    color: var(--text-dimmed, #7a7870);
    border-radius: 6px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 18px;
    transition: background 0.15s, color 0.15s;
}
.ideas-modal .modal__close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text, #e0ddd5);
}
.ideas-modal .modal__body {
    padding: 1.25rem 1.5rem;
    overflow: visible;
}
.ideas-modal .form-group {
    margin-bottom: 1rem;
}
.ideas-modal .form-group:last-child {
    margin-bottom: 0;
}
.ideas-modal .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text, #e0ddd5);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.ideas-modal .form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    color: var(--text, #e0ddd5);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.ideas-modal .form-input:focus {
    border-color: rgba(196, 162, 78, 0.4);
    box-shadow: 0 0 0 3px rgba(196, 162, 78, 0.08);
    outline: none;
}
.ideas-modal .form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}
.ideas-modal textarea.form-input {
    resize: vertical;
    min-height: 100px;
}
.ideas-modal .form-hint {
    font-size: 0.7rem;
    color: var(--text-dimmed, #7a7870);
    margin-top: 0.25rem;
    display: block;
}
.ideas-modal .modal__footer {
    padding: 0.85rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}
.ideas-modal .modal__footer .btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-dimmed, #7a7870);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}
.ideas-modal .modal__footer .btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text, #e0ddd5);
    background: rgba(255, 255, 255, 0.04);
}
.ideas-modal .modal__footer .btn--primary {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.ideas-modal #idea-modal-msg {
    margin-bottom: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .ideas-page {
        padding: 1rem 0.75rem 2rem;
    }
    .ideas-hero__title {
        font-size: 1.35rem;
    }
    .idea-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    .idea-vote {
        min-width: 34px;
    }
    .idea-vote__btn {
        padding: 0.3rem 0.35rem;
    }
    .idea-body__title {
        font-size: 0.9rem;
    }
    .idea-comment-form {
        flex-direction: column;
    }
    .idea-comment-form__btn {
        align-self: flex-end;
    }
    .ideas-toolbar {
        flex-direction: column;
    }
    .ideas-filters {
        justify-content: flex-start;
    }
    .ideas-filter-select {
        font-size: 0.75rem;
    }
}
