/*
Theme Name: Your Theme Name
Description: A custom WordPress theme.
Author: Your Name
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    line-height: 1.34;
}

/* GLOBAL LINK STYLES */
a {
    color: #1877f2;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: #166fe5;
}

/* SIDEBAR LIST STYLING REMOVED */
/* Remove all custom bullet styles and list formatting for sidebars */
.sidebar-content ul,
.custom-widgets ul,
.left-sidebar ul,
.right-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-content li,
.custom-widgets li,
.left-sidebar li,
.right-sidebar li {
    position: static;
    padding: 0;
    margin: 0 0 7px 0;
}

/* Remove all pseudo-elements for sidebar lists */
.sidebar-content li::before,
.custom-widgets li::before,
.left-sidebar li::before,
.right-sidebar li::before {
    display: none;
}

/* HEADER STYLES - FIXED */
.facebook-header {
    background: #fff;
    border-bottom: 1px solid #e4e6ea;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 56px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 56px;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: #1877f2;
    font-size: 24px;
    font-weight: bold;
}

.logo:hover {
    text-decoration: none;
    color: #166fe5;
}

.logo-text {
    color: #1877f2;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 320px;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    text-decoration: none;
    color: #65676b;
    transition: background 0.2s;
    position: relative;
}

.nav-item:hover {
    background: #f0f2f5;
    text-decoration: none;
    color: #1877f2;
}

.nav-item.active {
    color: #1877f2;
    border-bottom: 3px solid #1877f2;
    border-radius: 0;
}

.nav-icon {
    font-size: 20px;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1c1e21;
    padding: 6px 8px;
    border-radius: 20px;
    transition: background 0.2s;
}

.user-profile:hover {
    background: #f0f2f5;
    text-decoration: none;
    color: #1877f2;
}

.profile-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.menu-btn,
.notifications-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #e4e6ea;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}

.menu-btn:hover,
.notifications-btn:hover {
    background: #d8dadf;
}

/* MAIN LAYOUT */
.facebook-layout {
    display: flex;
    max-width: 1200px;
    margin: 56px auto 0;
    gap: 20px;
    padding: 20px;
}

@media (max-width: 1024px) {
    .facebook-layout {
        flex-direction: column;
        padding: 20px 10px;
    }
    .left-sidebar,
    .right-sidebar {
        width: 100%;
        order: 2;
    }
    .main-content {
        order: 1;
    }
}

.left-sidebar,
.right-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar-content {
    position: sticky;
    top: 20px;
}

.user-shortcuts {
    background: none;
    border-radius: 0;
    padding: 8px 0;
    margin-bottom: 20px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #1877f2;
    transition: all 0.2s ease;
}

.shortcut-item:hover {
    background: #f0f2f5;
    text-decoration: underline;
    color: #166fe5;
}

.shortcut-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.shortcut-icon {
    font-size: 20px;
    width: 36px;
    text-align: center;
}

.activity-stream {
    max-width: 680px;
    margin: 0 auto;
}

.create-post {
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-creator {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.post-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: #f0f2f5;
    padding: 8px 16px;
    border-radius: 50px;
}

.post-input::placeholder {
    color: #65676b;
}

.post-actions {
    display: flex;
    border-top: 1px solid #e4e6ea;
    padding-top: 8px;
}

.action-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #65676b;
    font-weight: 600;
}

.action-btn:hover {
    background: #f0f2f5;
}

/* POSTS SEPARATED BY BR ONLY */
.post-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0; /* Remove margin */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Add spacing after posts using adjacent sibling selector */
.post-item + .post-item {
    margin-top: 0; /* Posts will be separated by <br><br> tags in HTML */
}

.post-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
}

.author-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-meta {
    flex: 1;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.author-name a {
    color: #1877f2;
    text-decoration: none;
}

.author-name a:hover {
    text-decoration: underline;
    color: #166fe5;
}

.post-time {
    color: #65676b;
    font-size: 13px;
}

.post-menu {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}

.post-menu:hover {
    background: #f0f2f5;
}

.post-content {
    padding: 0 16px 16px;
}

.post-meta-details {
    color: #65676b;
    font-size: 13px;
    margin-top: 8px;
}

.post-categories,
.post-tags {
    color: #65676b;
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

.post-meta-details a {
    color: #1877f2;
    text-decoration: none;
    font-size: 13px;
}

.post-meta-details a:hover {
    text-decoration: underline;
    color: #166fe5;
}

.read-more-link {
    display: inline;
    margin-left: 4px;
}

.read-more-link a {
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
}

.read-more-link a:hover {
    text-decoration: underline;
    color: #166fe5;
}

.contacts-section {
    background: none;
    border-radius: 0;
    padding: 16px 0;
    margin-bottom: 20px;
}

.contacts-section h3 {
    color: #65676b;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-list {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

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

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

.contact-item span {
    flex: 1;
}

.status {
    font-size: 12px;
}

.status.online {
    color: #42b883;
}

.status.away {
    color: #f39c12;
}

.status.offline {
    color: #95a5a6;
}

.random-post-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 5px;
    margin-bottom: 20px;
}

.random-post-thumbs .post-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Fix for Contacts, Thumbnails, and Layout */
body {
    background-color: #f0f2f5;
}

.contact-item img,
.random-post-thumbs .post-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.left-sidebar,
.right-sidebar {
    border-radius: 12px;
}

.contacts-section,
.user-shortcuts,
.custom-widgets {
    background: none;
    border-radius: 0;
    padding: 0;
}

/* RESPONSIVE HEADER */
@media (max-width: 768px) {
    .header-container {
        padding: 0 8px;
    }
    
    .user-profile span {
        display: none;
    }
    
    .main-nav {
        gap: 4px;
    }
    
    .nav-item {
        width: 48px;
        height: 48px;
    }
    
    .logo {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header-center {
        display: none;
    }
    
    .header-left,
    .header-right {
        flex: auto;
    }
}

/* Footer styles */
.facebook-footer {
    background: #fff;
    border-top: 1px solid #e4e6ea;
    margin-top: 40px;
    padding: 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #65676b;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    margin-left: 0;
}

.footer-section li {
    margin-bottom: 5px;
    padding-left: 15px;
}

.footer-section li::before {
    content: "▶";
    color: #1877f2;
    font-size: 10px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.footer-section a {
    color: #1877f2;
    text-decoration: none;
    font-size: 13px;
}

.footer-section a:hover {
    text-decoration: underline;
    color: #166fe5;
}

.footer-bottom {
    border-top: 1px solid #e4e6ea;
    padding-top: 15px;
    text-align: center;
}

.footer-bottom p {
    color: #65676b;
    font-size: 13px;
}

/* Enhanced Social Share Button Styles */
.post-actions {
    display: flex;
    border-top: 1px solid #e4e6ea;
    padding-top: 8px;
    gap: 4px;
}

.action-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 4px;
    border-radius: 6px;
    cursor: pointer;
    color: #65676b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 0; /* Allow buttons to shrink */
    text-align: center;
}

.action-btn:hover {
    background: #f0f2f5;
    transform: translateY(-1px);
}

/* Specific styling for different social platforms */
.share-btn:hover {
    color: #1877f2; /* Facebook blue for all share buttons by default */
}

/* Facebook button specific hover */
.share-btn:nth-of-type(3):hover {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

/* Twitter button specific hover */
.share-btn:nth-of-type(4):hover {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

/* Like button hover */
.like-btn:hover {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

/* Comment button hover */
.comment-btn:hover {
    background: rgba(66, 184, 131, 0.1);
    color: #42b883;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .action-btn {
        font-size: 12px;
        padding: 6px 2px;
    }
    
    /* Hide text on very small screens, keep only icons */
    @media (max-width: 480px) {
        .action-btn {
            font-size: 16px;
        }
        
        .like-btn::after { content: "👍"; }
        .comment-btn::after { content: "💬"; }
        .share-btn:nth-of-type(3)::after { content: "📘"; }
        .share-btn:nth-of-type(4)::after { content: "🐦"; }
        
        .like-btn, .comment-btn, .share-btn {
            text-indent: -9999px;
            position: relative;
        }
        
        .action-btn::after {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }
    }
}

/* Animation for successful actions */
.action-btn.success {
    background: #42b883 !important;
    color: white !important;
    animation: successPulse 0.3s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}