/* ==========================================
   FinyX SOCIAL MEDIA ADDITIONAL STYLES
   ========================================== */

/* Post Styles */
.post-item {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.post-item:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-user-info {
    flex: 1;
    margin-left: 12px;
}

.post-user-info .username {
    color: #FFD700;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.post-time {
    color: #888;
    font-size: 14px;
}

.post-menu {
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.post-content {
    margin-bottom: 15px;
}

.post-content p {
    color: #fff;
    line-height: 1.6;
    margin: 0;
}

.post-hashtags {
    margin-top: 10px;
}

.hashtag {
    color: #FFD700;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hashtag:hover {
    color: #FFA500;
}

.mention {
    color: #4A9EFF;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mention:hover {
    color: #6BB6FF;
}

.post-media {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.action-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.action-btn.liked {
    color: #FF4757;
}

.action-btn.liked:hover {
    color: #FF3742;
}

.action-btn .count {
    font-weight: 500;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-posts h3 {
    color: #fff;
    margin-bottom: 8px;
}

/* Suggested Users */
.suggested-user {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.suggested-user:hover {
    background: rgba(255, 215, 0, 0.05);
}

.suggested-user .user-info {
    flex: 1;
    margin-left: 12px;
}

.suggested-user .user-info h5 {
    color: #fff;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.suggested-user .user-info p {
    color: #888;
    margin: 0;
    font-size: 12px;
}

.follow-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    color: #000;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Trending Items */
.trending-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.trending-item:hover {
    background: rgba(255, 215, 0, 0.05);
}

.trending-item:hover .trending-tag {
    color: #FFD700;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 16px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    min-width: 300px;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease;
}

.notification.success {
    border-color: rgba(46, 213, 115, 0.5);
}

.notification.success i {
    color: #2ed573;
}

.notification.error {
    border-color: rgba(255, 71, 87, 0.5);
}

.notification.error i {
    color: #ff4757;
}

.notification.info {
    border-color: rgba(74, 158, 255, 0.5);
}

.notification.info i {
    color: #4a9eff;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States */
.post-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Profile Modal Styles */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Main Content Layout */
.main-content {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    min-height: calc(100vh - 80px);
}

/* Feed Section */
.feed-section {
    flex: 1;
    max-width: none;
    width: auto;
    padding: 0;
}

/* Sidebar */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: -1;
    }
    
    .feed-section {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 10px;
    }
}

.feed-navigation {
    display: flex;
    background: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 5px;
    border: 1px solid #333;
}

.feed-tab {
    flex: 1;
    background: none;
    border: none;
    color: #ccc;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.feed-tab:hover {
    background: #333;
    color: #fff;
}

.feed-tab.active {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    font-weight: bold;
}

.feed-tab i {
    font-size: 16px;
}

/* Hide following tab by default (shown only for logged users) */
#followingTab {
    display: none;
}

/* When following tab is hidden, make explore tab full width */
#followingTab:not([style*="display: flex"]) ~ #exploreTab,
#exploreTab:only-child {
    flex: 1;
}

/* When both tabs are visible, equal width */
.feed-navigation:has(#followingTab[style*="display: flex"]) .feed-tab {
    flex: 1;
}

.profile-modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #333;
}

.profile-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #333;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.close-btn:hover {
    color: #FFD700;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #FFD700;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    color: #ccc;
}

.profile-posts {
    padding: 20px;
}

.profile-posts .loading,
.profile-posts .error,
.profile-posts .no-posts {
    text-align: center;
    color: #ccc;
    padding: 40px;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .post-actions {
        gap: 15px;
    }
    
    .action-btn {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .suggested-user {
        padding: 8px;
    }
    
    .follow-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}
