/* /domains/gromadan.com/public_html/css/includes/feedback.css
   Сторінки пропозицій: список (includes/feedback/index.php) і одна пропозиція (view.php).
   Кольори/радіуси — тільки через змінні з style.css, тому тема girls/boys працює сама. */

/* ---------- Заголовок сторінки ---------- */
.fb-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 8px;
}
.fb-head-icon { display: flex; color: var(--primary); }
.fb-head-icon .icon { width: 34px; height: 34px; }
.fb-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--primary);
}
.fb-sub {
    margin-top: 2px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---------- Кнопка "Запропонувати ідею" ---------- */
.fb-add-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}
.fb-add-btn:hover { background: var(--primary-hover); }
.fb-add-btn .icon { width: 20px; height: 20px; }
/* Мобільна кнопка у шапці сторінки — на десктопі є в правій колонці */
.fb-add-mobile {
    display: none;
    width: auto;
    margin-left: auto;
    padding: 10px 16px;
}

/* ---------- Вкладки статусів ---------- */
.fb-tabs {
    display: flex;
    gap: 8px;
    padding: 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.fb-tabs::-webkit-scrollbar { display: none; }
.fb-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}
.fb-tab span {
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--border);
    color: var(--text-secondary);
    font-size: 0.78rem;
}
.fb-tab:hover:not(.active) { background: var(--primary-light); }
.fb-tab.active { background: var(--primary); color: #fff; }
.fb-tab.active span { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------- Міні-картка ---------- */
.fb-list { display: flex; flex-direction: column; gap: 14px; }
.fb-card {
    position: relative;
    padding: 16px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.fb-card-top { display: flex; align-items: center; gap: 12px; }
.fb-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}
.fb-author { display: flex; flex-direction: column; min-width: 0; }
.fb-author-name {
    position: relative;
    z-index: 2; /* над розтягнутим посиланням картки */
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}
a.fb-author-name:hover { text-decoration: underline; }
.fb-author-guest { color: var(--text-primary); }
.fb-date { font-size: 0.75rem; color: var(--text-secondary); }

.fb-badge {
    margin-left: auto;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.fb-badge-new      { background: var(--primary-light); color: var(--primary); }
.fb-badge-review   { background: #FFF3E0; color: #E65100; }
.fb-badge-done     { background: #E6F6EC; color: #1E8E4E; }
.fb-badge-rejected { background: #FDECEC; color: #D32F2F; }

.fb-card-title {
    display: block;
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    text-decoration: none;
    word-break: break-word;
}
.fb-card-title::after {   /* робить клікабельною всю картку */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
}
.fb-excerpt {
    margin-top: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fb-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.fb-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}
.fb-stat .icon { width: 18px; height: 18px; color: var(--text-secondary); }

.fb-empty {
    padding: 40px 20px;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    color: var(--text-secondary);
}

/* ---------- Пагінація ---------- */
.fb-pager { display: flex; justify-content: space-between; gap: 10px; }
.fb-pager a {
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.fb-pager a:hover { background: var(--primary-light); }

/* ---------- Права колонка ---------- */
.fb-filter-form { display: flex; flex-direction: column; gap: 18px; }
.fb-search { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.fb-search .icon { flex-shrink: 0; color: var(--text-secondary); }
.fb-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.fb-filter-label { margin: 16px 0 6px; font-size: 0.95rem; font-weight: 600; }
.fb-radio {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.95rem;
    cursor: pointer;
}
.fb-radio input { position: absolute; opacity: 0; pointer-events: none; }
.fb-radio-dot {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: 50%;
}
.fb-radio input:checked + .fb-radio-dot { border-color: var(--primary); }
.fb-radio input:checked + .fb-radio-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--primary);
}
.fb-radio input:focus-visible + .fb-radio-dot { outline: 2px solid var(--primary); outline-offset: 2px; }
.fb-radio em {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--bg);
    font-style: normal;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.fb-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}
.fb-add-wrap { margin-top: 20px; }

/* ---------- Сторінка однієї пропозиції ---------- */
.fb-back {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
}
.fb-back:hover { color: var(--primary); }
.fb-back .icon { width: 18px; height: 18px; }

.fb-full {
    padding: 24px 28px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.fb-full-title {
    margin: 14px 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}
.fb-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
}
.fb-full-text {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.65;
    word-break: break-word;
}
.fb-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.fb-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.fb-full .fb-stats { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---------- Попап: honeypot (люди не бачать) ---------- */
.fb-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ---------- Мобільна версія (права колонка на ≤900px прихована глобально) ---------- */
@media (max-width: 900px) {
    .fb-add-mobile { display: inline-flex; }
    .fb-head { padding: 0 14px; }
    .fb-tabs { padding: 0 10px; }
    .fb-list, .fb-empty, .fb-pager, .fb-full { margin: 0 10px; }
    .fb-back { padding: 0 14px; }
    .fb-full { padding: 18px; }
    .fb-title { font-size: 1.35rem; }
}