/* features-extra.css
   CSS untuk: Poll, Location, Schedule label pada postingan
   dan CSS untuk halaman Followers/Following
*/

/* ========================
   POLL IN POST
======================== */
.post-poll {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-vote-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--primary-color);
    border-radius: 999px;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}
.poll-vote-btn:hover {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
}
.poll-vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.poll-result-bar {
    position: relative;
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    overflow: hidden;
    height: 40px;
    background: transparent;
}
.poll-result-bar.poll-voted {
    border-color: var(--primary-color);
}
.poll-bar-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: color-mix(in srgb, var(--primary-color) 15%, transparent);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.poll-voted .poll-bar-fill {
    background: color-mix(in srgb, var(--primary-color) 25%, transparent);
}
.poll-bar-label {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    height: 100%;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
}

.poll-meta {
    font-size: 12px;
    color: var(--text-muted);
    padding: 2px 4px;
}

/* ========================
   LOCATION IN POST
======================== */
.post-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--primary-color);
    margin: 6px 0;
    padding: 4px 8px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
}
.post-location i {
    font-size: 13px;
}

/* ========================
   SCHEDULE LABEL IN POST
======================== */
.post-scheduled {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 8px 0;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* ========================
   FOLLOWERS / FOLLOWING PAGE
======================== */
.followers-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.followers-tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
.followers-tab:hover {
    background: var(--card-hover);
    color: var(--text-main);
}
.followers-tab.active {
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
}

#followers-list {
    display: flex;
    flex-direction: column;
}

.follow-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}
.follow-item:hover {
    background: var(--card-hover);
}
.follow-item-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.follow-item-info {
    flex: 1;
    min-width: 0;
}
.follow-item-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.follow-item-name:hover {
    text-decoration: underline;
}
.follow-item-handle {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-top: 1px;
}
.follow-item-bio {
    font-size: 14px;
    color: var(--text-main);
    margin-top: 6px;
    line-height: 1.4;
}
.follow-item-btn {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    background: var(--text-main);
    color: var(--bg-body);
    border: 1.5px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.follow-item-btn.following {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}
.follow-item-btn:hover {
    opacity: 0.85;
}
.follow-item-btn.following:hover {
    background: rgba(244, 33, 46, 0.1);
    color: #f4212e;
    border-color: rgba(244, 33, 46, 0.4);
}

/* Dark/Light mode compatibility untuk poll */
body.light-mode .poll-vote-btn {
    color: var(--text-main);
}
body.light-mode .poll-bar-fill {
    background: color-mix(in srgb, var(--primary-color) 18%, transparent);
}

/* ========================
   POLL OPTION IMAGE
======================== */
/* Gambar di dalam tombol vote */
.poll-option-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 8px;
}

/* Tombol vote dengan gambar: tetap pill seperti poll-result-bar */
.poll-vote-btn--has-img {
    display: flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 14px 4px 4px;
    text-align: left;
}
.poll-vote-btn--has-img span {
    flex: 1;
}

/* Gambar di dalam hasil bar */
.poll-bar-label .poll-option-img {
    margin-right: 8px;
}

/* Tombol hapus gambar pada opsi poll di composer */
.poll-image-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    color: var(--bg-body);
    border: none;
    cursor: pointer;
    font-size: 10px;
    margin-left: 2px;
    padding: 0;
    flex-shrink: 0;
    vertical-align: middle;
    transition: background 0.15s ease;
}
.poll-image-remove-btn:hover {
    background: #f4212e;
}