/* ============ TRIVIO COMMUNITY — Public CSS ============ */
.trv-co-wrap {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    color: #e8e4dc;
}

/* GATE */
.trv-co-gate {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
}
.trv-co-gate-card {
    background: linear-gradient(135deg, #1c2e4a 0%, #16253d 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(42, 170, 153, .3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}
.trv-co-gate-card h2 { color: #fff; margin-top: 0; }
.trv-co-gate-card p { color: #d8d4cc; }
.trv-co-gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* HEADER */
.trv-co-header {
    background: linear-gradient(135deg, #1d7a6e 0%, #2aaa99 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    color: #fff;
}
.trv-co-header h1 { color: #fff; margin: 0 0 4px; font-size: 28px; }
.trv-co-header p { color: rgba(255,255,255,.9); margin: 0; }
.trv-co-header-stats { display: flex; gap: 20px; }
.trv-co-header-stats > div { text-align: center; }
.trv-co-header-stats strong { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.trv-co-header-stats span { font-size: 12px; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .05em; }

/* COMPOSER */
.trv-co-composer {
    background: #1c2e4a;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}
.trv-co-composer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.trv-co-composer-header img { border-radius: 50%; }
.trv-co-composer-header strong { color: #fff; }
.trv-co-composer-header small { color: #b8c0c8; }
.trv-co-composer-form input[type="text"],
.trv-co-composer-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-family: inherit;
}
.trv-co-composer-form input::placeholder,
.trv-co-composer-form textarea::placeholder { color: rgba(232,228,220,.5); }
.trv-co-composer-form input:focus,
.trv-co-composer-form textarea:focus { outline: none; border-color: #2aaa99; }
.trv-co-composer-actions { display: flex; justify-content: space-between; align-items: center; }
.trv-co-composer-hint { color: #b8c0c8; font-size: 12px; }
.trv-co-composer-status { color: #2aaa99; font-size: 13px; min-height: 18px; margin-top: 8px; }

/* UPGRADE CTA */
.trv-co-upgrade-cta {
    background: linear-gradient(135deg, rgba(251, 191, 36, .12) 0%, rgba(251, 146, 60, .12) 100%);
    border: 1px solid rgba(251, 191, 36, .3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.trv-co-upgrade-cta strong { color: #fbbf24; display: block; margin-bottom: 4px; }
.trv-co-upgrade-cta p { color: #d8d4cc; margin: 0; font-size: 14px; }

/* BUTTONS */
.trv-co-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all .15s;
}
.trv-co-btn-primary { background: #2aaa99; color: #fff; }
.trv-co-btn-primary:hover { background: #1d7a6e; transform: translateY(-1px); }
.trv-co-btn-secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.trv-co-btn-secondary:hover { background: rgba(255,255,255,.15); }

/* POSTS */
.trv-co-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.trv-co-empty {
    background: #1c2e4a;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #b8c0c8;
}
.trv-co-empty h3 { color: #fff; margin-top: 0; }
.trv-co-post {
    background: #1c2e4a;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 20px;
    transition: all .2s;
}
.trv-co-post:hover { border-color: rgba(42, 170, 153, .25); }
.trv-co-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.trv-co-post-header img { border-radius: 50%; }
.trv-co-post-header strong { color: #fff; font-size: 15px; }
.trv-co-post-header small { display: block; color: #b8c0c8; font-size: 12px; }
.trv-co-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 6px;
}
.trv-co-badge-guide { background: rgba(251, 191, 36, .2); color: #fbbf24; }
.trv-co-badge-pecheur { background: rgba(42, 170, 153, .2); color: #2aaa99; }
.trv-co-post-title { color: #fff; margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.trv-co-post-img { margin: 0 -20px 16px; }
.trv-co-post-img img { width: 100%; display: block; }
.trv-co-post-content { color: #d8d4cc; font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.trv-co-post-content p { margin: 0 0 12px; }
.trv-co-post-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 12px;
}
.trv-co-react {
    background: rgba(255,255,255,.04);
    color: #d8d4cc;
    border: 1px solid rgba(255,255,255,.08);
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all .15s;
}
.trv-co-react:hover { background: rgba(42,170,153,.15); border-color: #2aaa99; }
.trv-co-react.is-active { background: rgba(42,170,153,.25); border-color: #2aaa99; color: #2aaa99; font-weight: 700; }

@media (max-width: 768px) {
    .trv-co-header { grid-template-columns: 1fr; text-align: center; }
    .trv-co-header-stats { justify-content: center; }
    .trv-co-upgrade-cta { flex-direction: column; align-items: stretch; }
}
