/* Community-Ideen */

.idea-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.idea-card:hover {
    border-color: rgba(212, 148, 106, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.idea-card--admin {
    text-decoration: none;
    color: inherit;
}

.idea-card__vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 4rem;
    padding: 1rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.idea-card__link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.idea-card__link--plain {
    flex: 1;
}

.idea-card__body {
    flex: 1;
    min-width: 0;
}

.idea-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.idea-card__head h2,
.idea-card__head h3 {
    width: 100%;
    margin: 0.35rem 0;
    font-size: 1.1rem;
}

.idea-card__purpose {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idea-card__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    margin: 0;
}

.idea-card__number {
    margin-left: auto;
    font-size: 0.78rem;
    opacity: 0.55;
}

.idea-card__arrow {
    opacity: 0.45;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.idea-card__vote-count {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text, #f5f5f5);
}

/* Tags */
.idea-tag {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.idea-tag--type.idea-tag--feature {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.idea-tag--type.idea-tag--improvement {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.idea-tag--type.idea-tag--bug {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.idea-tag--category {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    text-transform: none;
}

.idea-tag--status-pending {
    background: rgba(156, 163, 175, 0.2);
    color: #d1d5db;
}

.idea-tag--status-in_work {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.idea-tag--status-accepted {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.idea-tag--status-declined {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Vote button */
.idea-vote-form {
    margin: 0;
}

.idea-vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.idea-vote-btn:hover {
    color: var(--teal, #5eead4);
    border-color: rgba(94, 234, 212, 0.45);
}

.idea-vote-btn--active {
    color: var(--teal, #5eead4);
    border-color: rgba(94, 234, 212, 0.55);
    background: rgba(94, 234, 212, 0.12);
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.2);
}

.idea-vote-btn--readonly {
    cursor: default;
}

.idea-vote-btn--large {
    width: 3rem;
    height: 3rem;
}

.idea-vote-btn__arrow {
    font-size: 0.85rem;
    line-height: 1;
}

/* Toolbar & filters */
.ideas-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ideas-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.ideas-filters select {
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    font-size: 0.85rem;
}

.ideas-filters__check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ideas-page-header h1 {
    margin-bottom: 0.35rem;
}

.ideas-portal-hint {
    margin-top: 2rem;
    text-align: center;
}

/* Detail layout */
.idea-detail {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.5rem;
    align-items: start;
}

.idea-detail__main {
    min-width: 0;
}

.idea-detail__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

.idea-article {
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
}

.idea-article__header h1 {
    margin: 0.75rem 0;
}

.idea-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.idea-article__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.idea-article__section {
    margin-top: 1.5rem;
}

.idea-article__section h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.65;
    margin-bottom: 0.5rem;
}

.idea-article__body {
    line-height: 1.65;
}

.idea-sidebar-panel {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.idea-sidebar-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.65;
}

.idea-sidebar-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.idea-sidebar-vote__count {
    font-size: 1.75rem;
    font-weight: 700;
}

.idea-sidebar-vote__count--solo {
    text-align: center;
    margin: 0;
}

.idea-sidebar-assignee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.idea-sidebar-hint {
    font-size: 0.82rem;
    margin: 0.5rem 0 0;
    text-align: center;
}

/* Activity */
.idea-activity {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.idea-activity h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.65;
    margin-bottom: 1rem;
}

.idea-activity__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.idea-activity__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-width: 1px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 0.5rem;
}

.idea-activity__text {
    flex: 0.95;
    overflow: hidden;
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.idea-activity__time {
    font-size: 0.78rem;
    white-space: nowrap;
}

/* Modal */
.idea-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.idea-modal[hidden] {
    display: none;
}

.idea-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.idea-modal__dialog {
    position: relative;
    width: min(640px, 100%);
    max-height: min(90vh, 820px);
    overflow: auto;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.idea-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

body.idea-modal-open {
    overflow: hidden;
}

/* Wizard */
.idea-wizard__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.idea-wizard__intro {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}

.idea-wizard__progress {
    margin-bottom: 1.25rem;
}

.idea-wizard__progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    opacity: 0.6;
    margin-bottom: 0.35rem;
}

.idea-wizard__progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.idea-wizard__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--copper, #d4946a), var(--teal, #5eead4));
    border-radius: 999px;
    transition: width 0.25s ease;
}

.idea-wizard__type-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.idea-wizard__type-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.75rem;
    padding: 1rem 1.1rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.idea-wizard__type-card strong {
    grid-column: 2;
    grid-row: 1;
}

.idea-wizard__type-card span.text-muted {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.85rem;
}

.idea-wizard__type-icon {
    grid-row: 1 / span 2;
    font-size: 1.5rem;
    align-self: center;
}

.idea-wizard__type-card--red.is-selected,
.idea-wizard__type-card--red:hover {
    border-color: rgba(239, 68, 68, 0.65);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.idea-wizard__type-card--blue.is-selected,
.idea-wizard__type-card--blue:hover {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.idea-wizard__type-card--orange.is-selected,
.idea-wizard__type-card--orange:hover {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.idea-wizard__category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.idea-wizard__category-chip {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.idea-wizard__category-chip.is-selected,
.idea-wizard__category-chip:hover {
    border-color: rgba(212, 148, 106, 0.55);
    background: rgba(212, 148, 106, 0.12);
}

.idea-wizard__field {
    margin-bottom: 1rem;
}

.idea-wizard__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.idea-wizard__field input,
.idea-wizard__field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    font: inherit;
    resize: vertical;
}

.idea-wizard__summary {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.idea-wizard__summary p {
    margin: 0.25rem 0;
}

.idea-wizard__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.idea-wizard__error {
    margin: 0.75rem 0 0;
    color: #fca5a5;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .idea-detail {
        grid-template-columns: 1fr;
    }

    .idea-detail__sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .idea-detail__sidebar .idea-sidebar-panel {
        flex: 1 1 140px;
    }
}

@media (max-width: 600px) {
    .ideas-toolbar {
        flex-direction: column;
    }

    .idea-card__link {
        padding: 0.85rem;
    }

    .idea-card__vote {
        min-width: 3.25rem;
        padding: 0.75rem 0.5rem;
    }
}
