/* ECEL Social — feed styles */
.social-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 6rem 1rem 6rem;
    color: #e5e7eb;
}

.social-hero {
    background: linear-gradient(135deg, rgba(129,140,248,0.15) 0%, rgba(26,26,36,0.92) 100%);
    border: 1px solid rgba(129,140,248,0.25);
    border-radius: 16px;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.1rem;
    backdrop-filter: blur(8px);
}
.social-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}
.social-hero h1 {
    margin: 0 0 0.25rem;
    font-size: 1.6rem;
    color: #fff;
}
.social-hero h1 i { color: #818cf8; margin-right: 0.4rem; }
.social-hero p { margin: 0; color: #94a3b8; font-size: 0.92rem; }

.social-new-btn {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    color: #fff;
    border: none;
    padding: 0.65rem 1.15rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.social-new-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(99,102,241,0.3); }

.social-filters {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.social-filter {
    background: rgba(15,15,20,0.7);
    border: 1px solid #2a2a35;
    color: #cbd5e1;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.social-filter i { margin-right: 0.3rem; }
.social-filter:hover { border-color: #818cf8; color: #fff; }
.social-filter.active {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    border-color: transparent;
    color: #fff;
}

/* Composer */
.social-composer {
    background: #15151c;
    border: 1px solid #2a2a35;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.1rem;
}
.social-composer__tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.composer-tab {
    background: #0f0f14;
    border: 1px solid #2a2a35;
    color: #94a3b8;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
}
.composer-tab.active {
    background: #818cf8;
    border-color: #818cf8;
    color: #fff;
}
.composer-ttl {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-left: 0.3rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
}
.social-composer__text {
    width: 100%;
    background: #0f0f14;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    color: #fff;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    min-height: 90px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}
.social-composer__text:focus { border-color: #818cf8; outline: none; }
.social-composer__counter {
    text-align: right;
    color: #64748b;
    font-size: 0.75rem;
    margin: 0.3rem 0 0.6rem;
}
.social-composer__poll label {
    display: block;
    color: #94a3b8;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
}
.composer-poll-option {
    width: 100%;
    background: #0f0f14;
    border: 1px solid #2a2a35;
    border-radius: 7px;
    color: #fff;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
    box-sizing: border-box;
}
.composer-add-option {
    background: transparent;
    border: 1px dashed #2a2a35;
    color: #94a3b8;
    padding: 0.45rem 0.85rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}
.composer-add-option:hover { border-color: #818cf8; color: #818cf8; }
.social-composer__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.85rem;
}
.composer-cancel, .composer-submit {
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.composer-cancel {
    background: #2a2a35;
    color: #cbd5e1;
}
.composer-submit {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
}
.composer-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Feed */
.social-feed { display: flex; flex-direction: column; gap: 0.85rem; }

.social-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}
.social-empty i { font-size: 2.5rem; margin-bottom: 0.6rem; display: block; opacity: 0.5; }
.social-empty h3 { color: #cbd5e1; margin: 0 0 0.3rem; }

/* Post card */
.social-post {
    background: #15151c;
    border: 1px solid #25252f;
    border-radius: 14px;
    padding: 1rem 1.1rem 0.85rem;
    transition: border-color 0.15s;
}
.social-post:hover { border-color: #2f2f3d; }

.social-post__head {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
}
.social-post__avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 2px solid #2a2a35;
}
.social-post__meta { flex: 1; min-width: 0; }
.social-post__line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    line-height: 1.3;
}
.social-post__name {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.social-post__name:hover { color: #818cf8; }
.social-post__vip { width: 16px; height: 16px; }
.social-post__flag { width: 18px; height: 13px; border-radius: 2px; }
.social-post__team {
    background: rgba(129,140,248,0.15);
    color: #c7d2fe;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.social-post__team-logo { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; }
.social-role {
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 999px;
    font-weight: 600;
}
.social-role--admin { background: #dc2626; color: #fff; }
.social-role--mod { background: #2563eb; color: #fff; }
.social-post__sub {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.social-post__type i { margin-right: 0.25rem; }
.social-post__expires { font-style: italic; }

.social-post__menu {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
}
.social-post__menu:hover { background: #2a2a35; color: #fff; }

.social-post__body {
    color: #e5e7eb;
    font-size: 0.98rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 0.7rem;
}

/* Poll */
.social-poll {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}
.social-poll__opt {
    position: relative;
    background: #0f0f14;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: border-color 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social-poll__opt:hover { border-color: #818cf8; }
.social-poll__opt.voted { border-color: #10b981; }
.social-poll__bar {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, rgba(129,140,248,0.18), rgba(129,140,248,0.05));
    transition: width 0.3s;
}
.social-poll__opt.voted .social-poll__bar { background: linear-gradient(90deg, rgba(16,185,129,0.25), rgba(16,185,129,0.08)); }
.social-poll__label, .social-poll__pct { position: relative; z-index: 1; }
.social-poll__pct { color: #94a3b8; font-size: 0.82rem; font-weight: 600; }
.social-poll__total { color: #64748b; font-size: 0.78rem; text-align: right; padding-right: 0.3rem; }

/* Actions */
.social-post__actions {
    display: flex;
    gap: 0.4rem;
    border-top: 1px solid #25252f;
    padding-top: 0.55rem;
}
.social-action {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    transition: all 0.15s;
}
.social-action:hover { background: #1f1f28; color: #fff; }
.social-action.active { color: #f87171; }
.social-action i { font-size: 0.95rem; }

/* Replies */
.social-replies {
    margin-top: 0.6rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #2a2a35;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.social-reply { display: flex; gap: 0.55rem; }
.social-reply__avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.social-reply__body {
    background: #0f0f14;
    border: 1px solid #25252f;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    flex: 1;
}
.social-reply__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
}
.social-reply__name { color: #fff; font-weight: 600; text-decoration: none; }
.social-reply__vip { width: 13px; height: 13px; }
.social-reply__flag { width: 14px; height: 10px; border-radius: 2px; }
.social-reply__team { background: rgba(129,140,248,0.15); color: #c7d2fe; padding: 0 6px; border-radius: 999px; font-size: 0.72rem; }
.social-reply__time { color: #64748b; margin-left: auto; font-size: 0.72rem; }
.social-reply__text { color: #cbd5e1; font-size: 0.88rem; white-space: pre-wrap; word-wrap: break-word; }

.social-reply-composer {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.3rem;
}
.social-reply-input {
    flex: 1;
    background: #0f0f14;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #fff;
    font-size: 0.85rem;
    box-sizing: border-box;
}
.social-reply-send {
    background: #818cf8;
    border: none;
    color: #fff;
    padding: 0 0.85rem;
    border-radius: 8px;
    cursor: pointer;
}

/* Load more */
.social-loadmore { text-align: center; padding: 1rem 0; }
.social-loadmore button {
    background: #1f1f28;
    border: 1px solid #2a2a35;
    color: #cbd5e1;
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}
.social-loadmore button:hover { border-color: #818cf8; color: #fff; }

/* Mobile */
@media (max-width: 600px) {
    .social-page { padding: 5rem 0.6rem 6rem; }
    .social-hero { padding: 0.95rem 1rem; }
    .social-hero h1 { font-size: 1.3rem; }
    .social-post { padding: 0.85rem 0.85rem 0.7rem; border-radius: 12px; }
    .social-post__avatar { width: 36px; height: 36px; }
    .composer-tab { font-size: 0.78rem; padding: 0.35rem 0.6rem; }
    .composer-ttl { display: none; }
}
