/* Politics For All Social Network */
/* Using Politics For All Color Schema */

:root {
    --fb-primary: #1a365d;
    --fb-primary-hover: #2c5282;
    --fb-accent: #ed8936;
    --fb-bg: #f0f2f5;
    --fb-card: #ffffff;
    --fb-text: #050505;
    --fb-text-secondary: #65676b;
    --fb-text-light: #8a8d91;
    --fb-border: #dadde1;
    --fb-hover: #f2f2f2;
    --fb-success: #42b72a;
    --fb-danger: #fa3e3e;
    --fb-blue: #1a365d;
}

* {
    box-sizing: border-box;
}

body.social-page {
    background: var(--fb-bg);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Social Network Header */
.fb-header {
    background: var(--fb-card);
    height: 90px;
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fb-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 400px;
    flex-shrink: 0;
}

.header-icon-btn {
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.header-icon-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
    z-index: 11;
}

.header-banner {
    width: 100%;
}

.fb-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: var(--fb-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.fb-search {
    flex: 1;
    position: relative;
    max-width: 340px;
    min-width: 280px;
}

.search-hint {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding: 12px 16px;
    z-index: 1000;
}

.search-hint-title {
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    margin-bottom: 8px;
}

.search-hint-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-hint-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f0f2f5;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-hint-option:hover {
    background: #e4e6e9;
}

.search-hint-option svg {
    position: static;
    transform: none;
    width: 18px;
    height: 18px;
    color: #1877f2;
}

.search-hint-option span {
    font-size: 14px;
    color: #050505;
}

.fb-search input {
    width: 100%;
    height: 40px;
    background: var(--fb-bg);
    border: none;
    border-radius: 50px;
    padding: 0 16px 0 40px;
    font-size: 15px;
    outline: none;
    transition: none;
}

.fb-search input:focus {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fb-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--fb-text-secondary);
}

.fb-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.fb-nav-btn {
    width: 110px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--fb-text-secondary);
    text-decoration: none;
    transition: background 0.2s;
    position: relative;
}

.fb-nav-btn:hover {
    background: var(--fb-hover);
}

.fb-nav-btn.active {
    color: var(--fb-primary);
}

.fb-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--fb-primary);
    border-radius: 3px 3px 0 0;
}

.fb-nav-btn svg {
    width: 26px;
    height: 26px;
}

.fb-header-right {
    width: 280px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.fb-icon-btn {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-text);
    text-decoration: none;
    transition: background 0.2s;
}

.fb-icon-btn:hover {
    transform: scale(1.05);
}

.fb-icon-btn svg {
    width: 20px;
    height: 20px;
}

.fb-profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: visible;
    cursor: pointer;
}

.fb-profile-btn .positioned-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    overflow: hidden;
}

/* Three Column Layout - Page scrolls naturally */
body.social-page {
    min-width: 1240px;
    overflow-x: auto;
}

/* Fixed Header */
.fb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.fb-layout {
    display: flex;
    justify-content: center;
    min-width: 1240px;
    width: 100%;
    margin-top: 175px;
}

.fb-sidebar-left {
    flex: 0 0 340px;
    width: 340px;
    padding: 4px;
    height: fit-content;
}

/* Center feed - fixed in place, only scrolls on hover */
.fb-main {
    flex: 0 0 560px;
    width: 560px;
    padding: 4px 8px 24px 8px;
    position: fixed;
    top: 175px;
    left: 50%;
    transform: translateX(-50%);
    height: calc(100vh - 175px);
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 1000;
    background: #f0f2f5;
}

.fb-main::-webkit-scrollbar {
    display: none;
}

.fb-main:hover {
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Spacer to reserve space for fixed center feed */
.fb-main-spacer {
    flex: 0 0 560px;
    width: 560px;
    visibility: hidden;
}

.fb-sidebar-right {
    flex: 0 0 340px;
    width: 340px;
    padding: 4px;
    height: fit-content;
}

/* Home page specific - spacing between banner and content */
body.home-page .fb-layout {
    margin-top: 175px;
}

body.home-page .fb-main {
    top: 175px;
    height: calc(100vh - 175px);
}

body.home-page .fb-main,
body.home-page .fb-sidebar-left,
body.home-page .fb-sidebar-right {
    padding-top: 0;
}

/* Left Sidebar Menu */
.fb-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--fb-text);
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s;
}

.fb-menu-item:hover {
    background: var(--fb-hover);
}

.fb-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fb-primary);
    color: white;
}

.fb-menu-icon img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.fb-menu-icon svg {
    width: 20px;
    height: 20px;
}

.fb-menu-divider {
    height: 1px;
    background: var(--fb-border);
    margin: 8px 0;
}

/* Stories Section */
.fb-stories {
    background: var(--fb-card);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.fb-stories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.fb-stories-scroll::-webkit-scrollbar {
    display: none;
}

.fb-story-card {
    flex-shrink: 0;
    width: 112px;
    height: 200px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    background-size: cover;
    background-position: center;
}

.fb-story-card:hover {
    transform: scale(1.02);
}

.fb-story-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.fb-story-avatar {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid var(--fb-primary);
}

.fb-story-avatar.positioned-avatar {
    overflow: hidden;
}

.fb-story-name {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.fb-story-create {
    background: var(--fb-card);
    display: flex;
    flex-direction: column;
}

.fb-story-create-img-wrap {
    height: 140px;
    overflow: hidden;
    position: relative;
}
.fb-story-create-img {
    /* Styles applied inline for positioning */
}

.fb-story-create-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-top: none;
}

.fb-story-plus {
    width: 40px;
    height: 40px;
    background: var(--fb-primary);
    border: 4px solid var(--fb-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: -20px;
}

.fb-story-plus svg {
    width: 20px;
    height: 20px;
}

.fb-story-create-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--fb-text);
}

/* Create Post Card */
.fb-create-post {
    background: var(--fb-card);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.fb-create-post-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fb-border);
}

.fb-create-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* object-fit removed - positioned-avatar uses inline styles */
}

.fb-create-post-input {
    flex: 1;
    height: 40px;
    background: var(--fb-bg);
    border: none;
    border-radius: 20px;
    padding: 0 12px;
    font-size: 17px;
    color: var(--fb-text-secondary);
    cursor: pointer;
    text-align: left;
}

.fb-create-post-input:hover {
    background: #e4e6e9;
}

.fb-create-post-actions {
    display: flex;
    padding-top: 8px;
}

.fb-create-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--fb-text-secondary);
}

.fb-create-action:hover {
    background: var(--fb-hover);
}

.fb-create-action svg {
    width: 24px;
    height: 24px;
}

.fb-create-action.video svg { color: #f3425f; }
.fb-create-action.photo svg { color: #45bd62; }
.fb-create-action.feeling svg { color: #f7b928; }

/* Post Card */
.fb-post {
    background: var(--fb-card);
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    overflow: visible;
    position: relative;
    z-index: 1;
}
.fb-post.menu-open {
    z-index: 100;
}
.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    min-width: 280px;
    padding: 8px;
    z-index: 1000;
}
.post-menu-dropdown button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    gap: 8px;
    color: #050505;
}
.post-menu-dropdown button:hover {
    background: #f0f2f5;
}

.fb-post-header {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
}

.fb-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.fb-post-avatar.positioned-avatar {
    overflow: hidden;
    position: relative;
}

.fb-post-info {
    flex: 1;
}

.fb-post-author {
    font-weight: 600;
    font-size: 18px;
    color: #000000;
    text-decoration: none;
}

.fb-post-author:hover {
    text-decoration: underline;
}

.fb-post-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    color: #000000;
}

.fb-post-menu {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-text-secondary);
}

.fb-post-menu:hover {
    background: var(--fb-hover);
}

.fb-post-content {
    padding: 4px 16px 12px;
    font-size: 24px;
    line-height: 1.4;
    color: #000 !important;
    font-weight: 500;
}

.fb-post-image {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    background: #f0f2f5;
}

.fb-post-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 18px;
    color: #000000;
    font-weight: 600;
}

.fb-post-reactions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-reaction-icons {
    display: flex;
    margin-right: 4px;
}

.fb-reaction-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: -6px;
    border: 2px solid white;
    cursor: pointer;
}

.fb-reaction-icon.like { background: #1877f2; }
.fb-reaction-icon.love { background: #f33e58; }
.fb-reaction-icon.haha { background: #f7b125; }

.fb-post-actions {
    display: flex;
    border-top: 1px solid var(--fb-border);
    padding: 4px;
    margin: 0 12px;
    position: relative;
    overflow: visible;
}

.fb-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    border: none;
    background: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    position: relative;
}

.fb-action-btn:hover {
    background: var(--fb-hover);
}

.fb-action-btn.liked {
    color: var(--fb-primary);
}

/* Reaction type colors */
.fb-action-btn.reaction-like { color: #1877f2; }
.fb-action-btn.reaction-love { color: #f33e58; }
.fb-action-btn.reaction-haha { color: #f7b125; }
.fb-action-btn.reaction-wow { color: #f7b125; }
.fb-action-btn.reaction-sad { color: #f7b125; }
.fb-action-btn.reaction-angry { color: #e9710f; }

.reaction-emoji {
    font-size: 18px;
}

.fb-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Reaction Picker */
.fb-reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border-radius: 28px;
    padding: 4px 8px;
    padding-bottom: 16px;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: none;
    gap: 2px;
    z-index: 9999;
}

.fb-reaction-picker::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.fb-action-btn:hover .fb-reaction-picker,
.fb-reaction-picker.show {
    display: flex;
}

.fb-reaction-picker.hiding {
    display: none !important;
}

.fb-reaction-btn {
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.15s;
    padding: 4px;
    position: relative;
}

.fb-reaction-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a365d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-bottom: 6px;
    pointer-events: none;
}

.fb-reaction-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.fb-reaction-btn:hover {
    transform: scale(1.3) translateY(-4px);
}

/* Sponsored Ads Section */
.fb-sponsored {
    padding: 16px 8px;
}

.fb-sponsored-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--fb-text-secondary);
    padding: 0 8px 12px;
}

.fb-ad {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
}

.fb-ad:hover {
    background: var(--fb-hover);
}

.fb-ad-image {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--fb-bg);
    flex-shrink: 0;
}

.fb-ad-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-ad-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--fb-text);
    line-height: 1.3;
}

.fb-ad-url {
    font-size: 12px;
    color: var(--fb-text-secondary);
    text-transform: uppercase;
}

/* Right Sidebar */
.fb-sidebar-section {
    padding: 4px;
}

.fb-sidebar-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--fb-text-secondary);
    padding: 4px;
}

.fb-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.fb-contact-item:hover {
    background: var(--fb-hover);
}

.fb-contact-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
}

.fb-contact-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--fb-text);
}

.fb-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #31a24c;
    border: 2px solid white;
    border-radius: 50%;
}

/* Live Room Card in Sidebar */
.fb-live-card {
    background: var(--fb-card);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.fb-live-card:hover {
    transform: scale(1.02);
}

.fb-live-thumb {
    height: 100px;
    background: linear-gradient(135deg, var(--fb-primary), #667eea);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fa3e3e;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.fb-live-info {
    padding: 12px;
}

.fb-live-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--fb-text);
    margin-bottom: 4px;
}

.fb-live-host {
    font-size: 13px;
    color: var(--fb-text-secondary);
}

/* Modals - uses shared .modal-overlay styles from main styles.css */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid var(--fb-border);
    position: relative;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fb-text);
}

.modal-body {
    padding: 16px;
}

.form-textarea {
    width: 100%;
    min-height: 150px;
    border: none;
    font-size: 24px;
    resize: none;
    outline: none;
}

.form-textarea::placeholder {
    color: var(--fb-text-secondary);
}

.btn-primary {
    width: 100%;
    background: var(--fb-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--fb-primary-hover);
}

.btn-primary:disabled {
    background: #e4e6e9;
    color: #bcc0c4;
    cursor: not-allowed;
}

/* Empty State */
.fb-empty {
    text-align: center;
    padding: 40px 20px;
}

.fb-empty svg {
    width: 80px;
    height: 80px;
    color: var(--fb-text-light);
    margin-bottom: 16px;
}

.fb-empty h3 {
    font-size: 20px;
    color: var(--fb-text);
    margin-bottom: 8px;
}

.fb-empty p {
    color: var(--fb-text-secondary);
    margin-bottom: 16px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility Classes */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }

/* Legacy compatibility */
.social-nav { display: none; }
.social-layout { display: none; }
.stories-container { display: none; }
.create-post-card { display: none; }
.post-card { display: none; }
.social-sidebar { display: none; }

/* Story viewer styles */
.story-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a2e;
    z-index: 2000;
    display: none;
}

.story-viewer.active {
    display: block;
}

/* Comment Reactions */
.comment-reactions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    margin-left: 0;
}

.comment-react-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #dddfe2;
    border-radius: 50%;
    background: #f7f8fa;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.comment-react-btn:hover {
    background: #e4e6e9;
    transform: scale(1.15);
}

.comment-react-btn.active {
    background: #5ba3d0;
    border-color: #5ba3d0;
}

.comment-react-btn .react-icon {
    font-size: 14px;
    line-height: 1;
}

/* Tooltip on hover */
.comment-react-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a365d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-bottom: 4px;
    pointer-events: none;
}

.comment-react-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Comment Reaction Summary */
.comment-reaction-summary {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    background: rgba(26, 54, 93, 0.1);
    border-radius: 12px;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s;
}

.comment-reaction-summary:hover {
    background: rgba(26, 54, 93, 0.2);
}

/* Post Reaction Summary */
.post-reaction-summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    padding: 4px 8px;
    border-radius: 12px;
    transition: background 0.2s;
}

.post-reaction-summary:hover {
    background: rgba(26, 54, 93, 0.1);
}

.reaction-icon-small {
    font-size: 14px;
    margin-right: 1px;
}

.reaction-total {
    font-size: 18px;
    color: #000000;
    font-weight: 600;
    margin-left: 6px;
}

/* Reactor Tooltip */
.reactor-tooltip {
    position: fixed;
    background: rgba(26, 54, 93, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 10000;
    max-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
}

.tooltip-reaction-group {
    margin-bottom: 8px;
}

.tooltip-reaction-group:last-child {
    margin-bottom: 0;
}

.tooltip-reaction-group strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
}

/* Reactors Modal - uses shared .reactors-modal-overlay from main styles.css */

.reactors-modal {
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.4);
    border-top: 4px solid #1a365d;
    display: flex;
    flex-direction: column;
}

.reactors-modal-header {
    background: #1a365d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: none;
}

.reactors-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.reactors-tab {
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.reactors-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.reactors-tab.active {
    background: white;
    color: #1a365d;
    border-bottom: none;
}

.reactors-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
    line-height: 1;
}

.reactors-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.reactors-modal-body {
    flex: 1;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
    padding: 16px;
    min-height: 200px;
}

.reactor-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: background 0.2s;
    background: #f0f4f8;
    margin-bottom: 12px;
    border-left: 3px solid #5ba3d0;
}

.reactor-item:hover {
    background: #e8eef5;
}

.reactor-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.reactor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5ba3d0;
}

.reactor-reaction-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.reactor-info {
    flex: 1;
    min-width: 0;
}

.reactor-name {
    display: block;
    font-weight: 600;
    color: #1a365d;
    text-decoration: none;
    font-size: 18px;
}

.reactor-name:hover {
    text-decoration: underline;
    color: #5ba3d0;
}

.reactor-mutual {
    display: block;
    font-size: 15px;
    color: #65676b;
    margin-top: 4px;
}

.reactor-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: #1a365d;
    color: white;
    transition: background 0.2s;
}

.reactor-action-btn:hover {
    background: #2a4a7d;
}

.reactor-action-btn.add-friend {
    background: #5ba3d0;
    color: white;
}

.reactor-action-btn.add-friend:hover {
    background: #4a93c0;
}


/* Share Button Styles */
.share-toggle-btn {
    position: relative;
}

.share-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 100;
    padding: 8px 0;
    margin-bottom: 8px;
}

.share-toggle-btn:hover .share-dropdown,
.share-dropdown.active {
    display: block;
}

.share-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #1c1e21;
    text-align: left;
    transition: background 0.2s;
}

.share-dropdown-item:hover {
    background: #f0f2f5;
}

.share-dropdown-divider {
    height: 1px;
    background: #e4e6e9;
    margin: 4px 0;
}

.share-buttons-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #1c1e21;
    transition: background 0.2s, border-color 0.2s;
}

.share-btn:hover {
    background: #f0f2f5;
    border-color: #ccc;
}

.share-btn.share-facebook:hover { color: #1877f2; }
.share-btn.share-twitter:hover { color: #000; }
.share-btn.share-pinterest:hover { color: #e60023; }
.share-btn.share-copy:hover { color: #1a365d; }

.share-buttons-compact .share-btn span {
    display: none;
}

.share-buttons-compact .share-btn {
    padding: 8px;
    border-radius: 50%;
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 2000;
    overflow: hidden;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e4e6e9;
}

.notifications-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.notifications-header button {
    background: none;
    border: none;
    color: #1a365d;
    font-size: 14px;
    cursor: pointer;
}

.notifications-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f2f5;
}

.notification-item:hover {
    background: #f0f2f5;
}

.notification-item.unread {
    background: #e7f3ff;
}

.notification-item.unread:hover {
    background: #d4e9ff;
}

.notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e4e6e9;
    flex-shrink: 0;
    overflow: hidden;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 14px;
    line-height: 1.4;
    color: #1c1e21;
}

.notification-time {
    font-size: 12px;
    color: #65676b;
    margin-top: 4px;
}

.notifications-loading, .notifications-empty {
    padding: 40px 20px;
    text-align: center;
    color: #65676b;
}

.notices-messages-list .message-preview-item {
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.notices-messages-list .message-preview-item:hover {
    background: #f0f2f5;
}

.notices-messages-list .message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e4e6e9;
    flex-shrink: 0;
    overflow: hidden;
}

.notices-messages-list .message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notices-messages-list .message-info {
    flex: 1;
    min-width: 0;
}

.notices-messages-list .message-sender {
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
}

.notices-messages-list .message-text {
    font-size: 13px;
    color: #65676b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Menu Dropdown Styling */
.menu-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: #1c1e21;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-dropdown-item:hover {
    background: #f0f2f5;
}

.menu-dropdown-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-dropdown-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.menu-dropdown-title {
    font-size: 15px;
    font-weight: 600;
    color: #1c1e21;
    text-align: left;
}

.menu-dropdown-desc {
    font-size: 13px;
    color: #65676b;
    margin-top: 2px;
    text-align: left;
}

.menu-item-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.menu-item-disabled:hover {
    background: transparent;
}

.coming-soon-badge {
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    font-style: italic;
}

/* ===== Search Results Dropdown ===== */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f0f2f5;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: #1c1e21;
}

.search-result-status {
    font-size: 12px;
    color: #65676b;
}

.search-result-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-btn.add-friend {
    background: #1a365d;
    color: white;
}

.search-result-btn.add-friend:hover {
    background: #2d4a7c;
}

.search-result-btn.pending {
    background: #e4e6e9;
    color: #65676b;
    cursor: default;
}

.search-result-btn.friends {
    background: #48bb78;
    color: white;
    cursor: default;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #65676b;
}

/* ============================================
   HORIZONTAL FEED CAROUSELS
   Social-style scrollable rows in feed
   ============================================ */

.feed-carousel {
    background: var(--fb-card);
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.feed-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fb-border);
}

.feed-carousel-title {
    font-size: 17px;
    font-weight: inherit;
    color: var(--fb-text);
    margin: 0;
}

.feed-carousel-see-all {
    color: var(--fb-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.feed-carousel-see-all:hover {
    text-decoration: underline;
}

.feed-carousel-container {
    position: relative;
    padding: 12px 0;
}

.feed-carousel-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 16px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feed-carousel-scroll::-webkit-scrollbar {
    display: none;
}

.feed-carousel-scroll::after {
    content: '';
    flex: 0 0 12px;
}

.feed-carousel-scroll .carousel-item:last-child {
    margin-right: 0;
}

.feed-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fb-card);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
}

.feed-carousel-nav:hover {
    background: var(--fb-hover);
    transform: translateY(-50%) scale(1.05);
}

.feed-carousel-nav.prev {
    left: 8px;
}

.feed-carousel-nav.next {
    right: 8px;
}

.feed-carousel-nav svg {
    width: 20px;
    height: 20px;
    fill: var(--fb-text);
}

/* Carousel Item - Base Card */
.carousel-item {
    flex: 0 0 auto;
    width: 320px;
    background: var(--fb-card);
    border-radius: 8px;
    border: 1px solid var(--fb-border);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.carousel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Product Carousel Item */
.carousel-item.product-item {
    width: 220px;
}

.carousel-item-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f0f2f5;
}

.carousel-item-info {
    padding: 10px;
}

.carousel-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fb-text);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-item-subtitle {
    font-size: 13px;
    color: var(--fb-text-secondary);
    margin: 0;
}

.carousel-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--fb-primary);
    margin-top: 4px;
}

/* Friend/Person Carousel Item */
.carousel-item.friend-item {
    width: 140px;
    text-align: center;
    padding-bottom: 12px;
}

.carousel-item.friend-item .carousel-item-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 12px auto 8px;
    border: 3px solid var(--fb-primary);
}

.carousel-item.friend-item .avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
    text-decoration: none;
}

.carousel-item.friend-item .carousel-item-title {
    padding: 0 8px;
}

.carousel-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.carousel-item-link:hover .carousel-item-title {
    color: var(--fb-primary);
}

.carousel-item-action {
    display: block;
    width: calc(100% - 16px);
    margin: 8px auto 0;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: var(--fb-primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-item-action:hover {
    background: var(--fb-primary-hover);
}

.carousel-item-action.secondary {
    background: #e4e6eb;
    color: var(--fb-text);
}

.carousel-item-action.secondary:hover {
    background: #d8dadf;
}

/* News Carousel Item */
.carousel-item.news-item {
    width: 240px;
}

.carousel-item.news-item .carousel-item-image {
    height: 120px;
    background: linear-gradient(135deg, #1877f2, #1a365d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.carousel-item.news-item .carousel-item-info {
    padding: 12px;
}

.carousel-item.news-item .carousel-item-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.carousel-item-date {
    font-size: 12px;
    color: var(--fb-text-light);
    margin-top: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel-item {
        width: 140px;
    }
    
    .carousel-item.product-item {
        width: 160px;
    }
    
    .carousel-item.news-item {
        width: 200px;
    }
    
    .carousel-item-image {
        height: 120px;
    }
    
    .feed-carousel-nav {
        display: none;
    }
}

/* Video Processing Spinner */
.processing-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-video {
    background: linear-gradient(135deg, #1877f2, #0d5bbf);
    min-width: 160px;
}

/* Dark themed pages (polls, contests, contest, bands, etc.) */
body.polls-page,
body.contests-page,
body.contest-page,
body.bands-page {
    background: #0a0a1a;
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
}

/* Chat page uses custom layout */
body.chat-page {
    background: #1a1a2e;
    min-height: 100vh;
    margin: 0;
}

/* Story page is fullscreen */
body.story-page {
    background: #000;
    min-height: 100vh;
    margin: 0;
}

