/*
Theme Name: Facebook Clone Social
Description: A complete Facebook-like social network theme with user profiles, posts, friends, photos, videos, and all social features.
Version: 1.0
Author: Facebook Clone Theme
Text Domain: facebook-clone
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: social, community, profiles, friends, photos, videos
*/

/* WordPress specific styles */
body.wordpress {
    margin: 0;
    padding: 0;
}

/* Admin bar adjustments */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* Fix for WordPress body margin when admin bar is present */
.admin-bar body {
    margin-top: 0 !important;
}

/* Header structure improvements */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 320px;
}

.header-center {
    display: flex;
    justify-content: center;
    flex: 1;
    max-width: 590px;
}

.header-right {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 320px;
    justify-content: flex-end;
}

.logo h1 {
    color: #1877f2;
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    font-family: 'Klavika', Helvetica, Arial, sans-serif;
}

.logo a {
    text-decoration: none;
}

.search-bar {
    margin-left: 16px;
    display: flex;
    align-items: center;
    background-color: #f0f2f5;
    border-radius: 50px;
    padding: 8px 16px;
    flex: 1;
    max-width: 240px;
}

.search-bar i {
    color: #65676b;
    margin-right: 8px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    color: #1c1e21;
    font-size: 15px;
    flex: 1;
}

.search-bar input::placeholder {
    color: #65676b;
}

/* Navigation icons */
.nav-icons {
    display: flex;
    gap: 8px;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 56px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.nav-icon a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.nav-icon:hover {
    background-color: #f0f2f5;
}

.nav-icon.active {
    color: #1877f2;
    border-bottom: 3px solid #1877f2;
}

.nav-icon i {
    font-size: 20px;
    color: #65676b;
}

.nav-icon.active i {
    color: #1877f2;
}

/* Header right icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.header-icon {
    width: 40px;
    height: 40px;
    background-color: #e4e6ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.header-icon:hover {
    background-color: #d8dadf;
}

.header-icon i {
    color: #1c1e21;
    font-size: 16px;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #e41e3f;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.profile-dropdown {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 20px;
    transition: background-color 0.2s;
    position: relative;
}

.profile-dropdown:hover {
    background-color: #f0f2f5;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}

.profile-dropdown i {
    color: #65676b;
    font-size: 12px;
}

/* Auth buttons (when not logged in) */
.auth-buttons {
    display: flex;
    gap: 8px;
}

.login-btn, .signup-btn {
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.login-btn {
    color: #1877f2;
    background: transparent;
}

.login-btn:hover {
    background-color: rgba(24, 119, 242, 0.1);
}

.signup-btn {
    color: #ffffff;
    background: #42b883;
}

.signup-btn:hover {
    background: #369870;
}

/* Quick Post Form */
.quick-post-form {
    width: 100%;
}

.create-post-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.create-post-top .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.create-post-top .post-input {
    flex: 1;
    border: none;
    outline: none;
    background: #f0f2f5;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 15px;
    color: #1c1e21;
    font-family: inherit;
}

.create-post-top .post-input::placeholder {
    color: #65676b;
}

.create-post-top .post-input:focus {
    background: #e4e6ea;
}

.quick-post-btn {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
    flex-shrink: 0;
}

.quick-post-btn:hover:not(:disabled) {
    background: #166fe5;
}

.quick-post-btn:disabled {
    background: #e4e6ea;
    color: #bcc0c4;
    cursor: not-allowed;
}

.create-post-bottom {
    display: flex;
    justify-content: space-around;
    padding: 4px 16px 12px;
    border-top: 1px solid #e4e6ea;
}

.post-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #65676b;
    font-size: 15px;
    font-weight: 600;
}

.post-option:hover {
    background: #f0f2f5;
}

.post-option i {
    font-size: 20px;
}

/* Different colors for each option */
.post-option:nth-child(1) i {
    color: #f3425f;
}

.post-option:nth-child(2) i {
    color: #45bd62;
}

.post-option:nth-child(3) i {
    color: #f7b928;
}

.post-option:nth-child(4) i {
    color: #1877f2;
}

/* Quick Post Location Display */
.quick-post-location {
    padding: 8px 16px;
    border-top: 1px solid #e4e6ea;
    background-color: #f8f9fa;
}

.selected-location-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #e3f2fd;
    border: 1px solid #1877f2;
    border-radius: 20px;
    font-size: 14px;
    color: #1877f2;
}

.selected-location-preview i {
    font-size: 16px;
}

.clear-location-btn {
    background: none;
    border: none;
    color: #1877f2;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 50%;
    font-size: 12px;
    margin-left: auto;
    transition: background-color 0.2s;
}

.clear-location-btn:hover {
    background-color: rgba(24, 119, 242, 0.1);
}

/* Loading spinner for quick post */
.quick-post-loading {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 4px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media Preview Styles */
.post-media-preview {
    margin: 12px 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
    aspect-ratio: 16/9;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.media-item video {
    background: #000;
}

.remove-media {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color 0.2s;
}

.remove-media:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Feed Media Gallery Styles */
.post-media-gallery {
    margin: 12px 0;
    display: grid;
    gap: 4px;
    border-radius: 8px;
    overflow: hidden;
}

/* Single media item */
.post-media-gallery .media-item:only-child {
    grid-column: 1;
}

/* Two media items */
.post-media-gallery:has(.media-item:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
}

/* Three or more media items */
.post-media-gallery:has(.media-item:nth-child(3)) {
    grid-template-columns: 1fr 1fr;
}

.post-media-gallery .media-item:first-child:has(~ .media-item:nth-child(3)) {
    grid-row: span 2;
}

/* Video Container Styles */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.post-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s;
    pointer-events: none;
}

.video-container:hover .video-overlay {
    opacity: 0;
}

.video-container video[controls] + .video-overlay {
    display: none;
}

.video-play-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
}

.video-play-btn:hover {
    background: white;
    transform: scale(1.1);
}

.video-play-btn i {
    font-size: 24px;
    color: #1877f2;
    margin-left: 3px; /* Slight offset for play icon centering */
}

/* Image items in gallery */
.image-item img {
    cursor: pointer;
    transition: transform 0.2s;
}

.image-item img:hover {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-media-gallery {
        grid-template-columns: 1fr !important;
    }
    
    .post-media-gallery .media-item:first-child {
        grid-row: span 1 !important;
    }
    
    .video-play-btn {
        width: 48px;
        height: 48px;
    }
    
    .video-play-btn i {
        font-size: 18px;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex !important; /* Override the initial display: none */
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-overlay.show {
    display: block !important; /* Override the initial display: none */
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1c1e21;
}

.modal-close {
    background: #f0f2f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #65676b;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: #e4e6ea;
}

.modal-body {
    padding: 16px 20px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.author-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1c1e21;
}

.privacy-selector select {
    background: #f0f2f5;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    color: #65676b;
    cursor: pointer;
}

.post-textarea-container {
    margin-bottom: 16px;
}

.post-textarea-container textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 24px;
    color: #1c1e21;
    font-family: inherit;
    background: transparent;
    min-height: 100px;
}

.post-textarea-container textarea::placeholder {
    color: #8a8d91;
}

.post-options {
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
}

.post-options > span {
    font-size: 15px;
    font-weight: 600;
    color: #1c1e21;
    display: block;
    margin-bottom: 8px;
}

.options-icons {
    display: flex;
    gap: 8px;
}

.option-btn {
    background: none;
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background-color 0.2s;
}

.option-btn:hover {
    background: #f0f2f5;
}

.option-btn i {
    font-size: 24px;
    color: #65676b;
}

/* Different colors for each option */
.option-btn:nth-child(1) i {
    color: #45bd62;
}

.option-btn:nth-child(2) i {
    color: #1877f2;
}

.option-btn:nth-child(3) i {
    color: #f7b928;
}

.option-btn:nth-child(4) i {
    color: #f3425f;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e4e6ea;
}

.post-btn {
    width: 100%;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-btn:hover:not(:disabled) {
    background: #166fe5;
}

.post-btn:disabled {
    background: #e4e6ea;
    color: #bcc0c4;
    cursor: not-allowed;
}

/* Post Creation Modal */
.modal {
    display: none !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show {
    display: block !important;
}

.modal-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1001;
}

.modal-overlay.show {
    display: block !important;
}

.modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 8px;
    border-bottom: 1px solid #e4e6ea;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #1c1e21;
    text-align: center;
    flex: 1;
}

.modal-close {
    background: #e4e6ea;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #65676b;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: #d8dadf;
}

.modal-body {
    padding: 16px;
}

.post-author {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.author-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.author-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1c1e21;
}

.privacy-selector select {
    background: #e4e6ea;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    color: #65676b;
    cursor: pointer;
}

.post-textarea-container {
    margin-bottom: 16px;
}

#post-content {
    width: 100%;
    min-height: 120px;
    border: none;
    outline: none;
    resize: none;
    font-size: 24px;
    color: #1c1e21;
    font-family: inherit;
    line-height: 1.2;
}

#post-content::placeholder {
    color: #65676b;
    font-size: 24px;
}

.post-media-preview {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.remove-media {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    margin-bottom: 16px;
}

.post-options span {
    font-size: 15px;
    font-weight: 600;
    color: #1c1e21;
}

.options-icons {
    display: flex;
    gap: 4px;
}

.option-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #42b883;
    font-size: 16px;
}

.option-btn:hover {
    background: rgba(66, 184, 131, 0.1);
}

.modal-footer {
    padding: 8px 16px 16px;
}

.post-btn {
    width: 100%;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-btn:hover:not(:disabled) {
    background: #166fe5;
}

.post-btn:disabled {
    background: #e4e6ea;
    color: #bcc0c4;
    cursor: not-allowed;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1c1e21;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 1003;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: #42b883;
}

.toast-error {
    background: #e74c3c;
}

.toast-info {
    background: #1877f2;
}

/* Main content area */
.main-content {
    margin-top: 56px;
}

.admin-bar .main-content {
    margin-top: 88px;
}

@media screen and (max-width: 782px) {
    .admin-bar .main-content {
        margin-top: 102px;
    }
}

/* Dropdown menu styles */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 360px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e4e6ea;
}

.dropdown-profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 12px;
}

.dropdown-profile-info h4 {
    font-size: 17px;
    font-weight: 600;
    color: #1c1e21;
    margin: 0 0 2px 0;
}

.dropdown-profile-info p {
    font-size: 13px;
    color: #65676b;
    margin: 0;
}

.dropdown-section {
    padding: 8px 0;
    border-bottom: 1px solid #e4e6ea;
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.dropdown-item:hover {
    background-color: #f2f3f5;
}

.dropdown-icon {
    width: 36px;
    height: 36px;
    background-color: #e4e6ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.dropdown-icon i {
    color: #1c1e21;
    font-size: 16px;
}

.dropdown-content {
    flex: 1;
}

.dropdown-content span {
    font-size: 15px;
    font-weight: 600;
    color: #1c1e21;
    display: block;
    margin-bottom: 2px;
}

.dropdown-content p {
    font-size: 13px;
    color: #65676b;
    margin: 0;
}

.dropdown-arrow {
    color: #65676b;
    font-size: 12px;
    margin-left: auto;
}

/* WordPress comment form styling */
.wp-comment-form {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.wp-comment-form input[type="text"],
.wp-comment-form input[type="email"],
.wp-comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-family: inherit;
}

.wp-comment-form input[type="submit"] {
    background: #1877f2;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* WordPress pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    background: white;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    text-decoration: none;
    color: #1c1e21;
}

.pagination a:hover {
    background: #f2f3f5;
}

.pagination .current {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

/* WordPress login/register forms */
.wp-login-form,
.wp-register-form {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 40px auto;
}

.wp-login-form h2,
.wp-register-form h2 {
    text-align: center;
    color: #1c1e21;
    margin-bottom: 24px;
}

/* Profile specific WordPress styles */
.profile-content .wp-post {
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.profile-tabs .wp-tab-content {
    display: none;
}

.profile-tabs .wp-tab-content.active {
    display: block;
}

/* User avatar styling */
.wp-user-avatar {
    border-radius: 50%;
    object-fit: cover;
}

/* Friend list styling */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

.friend-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.friend-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 8px;
}

.friend-card .name {
    font-weight: 600;
    color: #1c1e21;
}

/* Responsive design for WordPress */
@media (max-width: 768px) {
    .admin-bar .header {
        top: 46px;
    }
    
    .friends-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .friend-card .avatar {
        width: 60px;
        height: 60px;
    }
}

/* ======================
   TAG FRIENDS MODAL STYLES
   ====================== */

/* Tag Friends Modal */
.tag-friends-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.tag-friends-content {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Tag Friends Header */
.tag-friends-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
}

.tag-friends-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1c1e21;
}

.close-tag-friends {
    background: #f0f2f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #65676b;
    transition: background-color 0.2s;
}

.close-tag-friends:hover {
    background: #e4e6ea;
}

/* Search Input */
.tag-friends-search {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-container i {
    position: absolute;
    left: 12px;
    color: #65676b;
    font-size: 14px;
}

.search-input-container input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e4e6ea;
    border-radius: 20px;
    background: #f0f2f5;
    font-size: 14px;
    outline: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.search-input-container input:focus {
    background: #ffffff;
    border-color: #1877f2;
}

/* Tagged Friends Preview */
.tagged-friends-preview {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
    background: #f8f9fa;
}

.tagged-friends-preview h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1c1e21;
}

.tagged-friends-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagged-friend-item {
    display: flex;
    align-items: center;
    background: #e7f3ff;
    border: 1px solid #1877f2;
    border-radius: 16px;
    padding: 4px 8px 4px 4px;
    font-size: 14px;
    color: #1877f2;
}

.tagged-friend-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover;
}

.tagged-friend-name {
    margin-right: 6px;
    font-weight: 500;
}

.remove-tag {
    background: none;
    border: none;
    color: #1877f2;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: background-color 0.2s;
}

.remove-tag:hover {
    background: rgba(24, 119, 242, 0.1);
}

/* Friends List Container */
.friends-list-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.friends-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    max-height: 400px;
}

/* Friend Items */
.friend-item {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.friend-item:hover {
    background: #f0f2f5;
}

.friend-avatar {
    margin-right: 12px;
}

.friend-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-size: 15px;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 2px;
}

.friend-username {
    font-size: 13px;
    color: #65676b;
}

.friend-action {
    margin-left: 12px;
}

.tag-friend-btn {
    background: #e4e6ea;
    border: 1px solid #e4e6ea;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.tag-friend-btn:hover {
    background: #d8dadf;
}

.tag-friend-btn.tagged {
    background: #e7f3ff;
    border-color: #1877f2;
    color: #1877f2;
}

.tag-friend-btn.tagged:hover {
    background: #d0e9ff;
}

/* Loading and No Friends Messages */
.loading-friends,
.no-friends-message,
.no-friends-available {
    padding: 40px 20px;
    text-align: center;
    color: #65676b;
}

.loading-friends i {
    font-size: 24px;
    margin-bottom: 12px;
}

.no-friends-available i {
    font-size: 48px;
    color: #bcc0c4;
    margin-bottom: 16px;
}

.no-friends-available p {
    margin: 8px 0;
    font-size: 16px;
}

.no-friends-available small {
    font-size: 14px;
    color: #8a8d91;
}

/* Modal Actions */
.tag-friends-actions {
    padding: 16px 20px;
    border-top: 1px solid #e4e6ea;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel,
.btn-tag-done {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #e4e6ea;
    border: 1px solid #e4e6ea;
    color: #1c1e21;
}

.btn-cancel:hover {
    background: #d8dadf;
}

.btn-tag-done {
    background: #1877f2;
    border: 1px solid #1877f2;
    color: #ffffff;
}

.btn-tag-done:hover {
    background: #166fe5;
}

/* Post Tagged Friends Preview */
.post-tagged-friends-preview {
    margin: 12px 0;
    padding: 12px;
    background: #f0f2f5;
    border-radius: 8px;
    border: 1px solid #e4e6ea;
}

.tagged-friends-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #65676b;
    gap: 8px;
}

.tagged-friends-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagged-friend-avatar-container {
    position: relative;
    display: inline-block;
}

.tagged-friend-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.remove-tagged-friend {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f02849;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: #ffffff;
    transition: background-color 0.2s;
}

.remove-tagged-friend:hover {
    background: #d9253b;
}

/* Active Tag Button State */
.option-btn.active {
    background: #e7f3ff;
    color: #1877f2;
}

.option-btn.active:hover {
    background: #d0e9ff;
}

/* Responsive Design */
@media (max-width: 640px) {
    .tag-friends-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .tag-friends-header,
    .tag-friends-search,
    .tagged-friends-preview,
    .tag-friends-actions {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .friend-item {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .tag-friends-header h3 {
        font-size: 18px;
    }
    
    .tagged-friends-list {
        gap: 6px;
    }
    
    .tagged-friend-item {
        font-size: 13px;
        padding: 3px 6px 3px 3px;
    }
}

/* Post Tagged Friends Display */
.post-tagged-friends {
    margin: 8px 0;
    padding: 8px 0;
    border-top: 1px solid #e4e6ea;
}

.tagged-friends-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #65676b;
    gap: 6px;
}

.tagged-friends-label i {
    color: #1877f2;
}

.tagged-friends-label a {
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.tagged-friends-label a:hover {
    text-decoration: underline;
    color: #166fe5;
}

/* Post Feeling Display */
.post-feeling {
    margin: 8px 0;
    padding: 8px 0;
}

.feeling-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #65676b;
}

.post-feeling .feeling-emoji {
    font-size: 16px;
}

.post-feeling .feeling-emoji-image {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
}

.post-feeling .feeling-text {
    color: #1c1e21;
    font-weight: 500;
}

/* Tag Friends Modal Styles */
.tag-friends-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.tag-friends-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tag-friends-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
}

.tag-friends-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1c1e21;
}

.close-tag-friends {
    background: #f0f2f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #65676b;
    transition: background-color 0.2s;
}

.close-tag-friends:hover {
    background: #e4e6ea;
}

.tag-friends-search {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-container i {
    position: absolute;
    left: 12px;
    color: #65676b;
    z-index: 1;
}

#friend-search-input {
    width: 100%;
    border: 1px solid #dddfe2;
    border-radius: 20px;
    padding: 8px 16px 8px 40px;
    font-size: 14px;
    background: #f0f2f5;
    outline: none;
    transition: all 0.2s;
}

#friend-search-input:focus {
    background: white;
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.tagged-friends-preview {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
    background: #f0f2f5;
}

.tagged-friends-preview h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #65676b;
    font-weight: 600;
}

.tagged-friends-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagged-friend-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #dddfe2;
    border-radius: 16px;
    padding: 4px 8px 4px 4px;
    font-size: 14px;
    gap: 6px;
}

.tagged-friend-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.tagged-friend-name {
    color: #1c1e21;
    font-weight: 600;
}

.remove-tag {
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.remove-tag:hover {
    background: #f0f2f5;
    color: #1c1e21;
}

.friends-list-container {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
}

.friends-list {
    padding: 12px 0;
}

.loading-friends, .no-friends-message, .no-friends-available {
    padding: 20px;
    text-align: center;
    color: #65676b;
    font-size: 14px;
}

.no-friends-available i {
    font-size: 48px;
    color: #bcc0c4;
    margin-bottom: 12px;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f2f5;
}

.friend-item:hover {
    background: #f0f2f5;
}

.friend-avatar {
    width: 50px;
    height: 50px;
    margin-right: 12px;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-weight: 600;
    color: #1c1e21;
    font-size: 15px;
    line-height: 1.2;
}

.friend-username {
    color: #65676b;
    font-size: 13px;
    line-height: 1.2;
    margin-top: 2px;
}

.friend-action {
    margin-left: 12px;
}

.tag-friend-btn {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.tag-friend-btn:hover {
    background: #166fe5;
}

.tag-friend-btn.tagged {
    background: #42b883;
    color: white;
}

.tag-friend-btn.tagged:hover {
    background: #369870;
}

.tag-friends-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e4e6ea;
    background: #f0f2f5;
}

.btn-cancel {
    background: #e4e6ea;
    color: #4b4f56;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background: #d8dadf;
}

.btn-tag-done {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-tag-done:hover {
    background: #166fe5;
}

/* Post Creation Area Tagged Friends Preview */
.post-tagged-friends-preview {
    margin: 12px 0;
    padding: 12px;
    background: #f0f2f5;
    border-radius: 8px;
    border: 1px solid #e4e6ea;
}

.tagged-friends-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #65676b;
    font-size: 14px;
}

.tagged-friends-header i {
    color: #1877f2;
}

.tagged-friends-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagged-friend-avatar-container {
    position: relative;
    display: inline-block;
}

.tagged-friend-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.remove-tagged-friend {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e41e3f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}

.remove-tagged-friend:hover {
    background: #c91c3b;
}

/* Active state for tag friends button */
.option-btn.active {
    background: #e7f3ff;
    color: #1877f2;
}

.option-btn.active:hover {
    background: #d2e9ff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tag-friends-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .friend-item {
        padding: 12px 16px;
    }
    
    .friend-avatar {
        width: 40px;
        height: 40px;
    }
    
    .friend-name {
        font-size: 14px;
    }
    
    .friend-username {
        font-size: 12px;
    }
}

/* Feeling/Activity Modal Styles */
.feeling-activity-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.feeling-activity-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.feeling-activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
}

.feeling-activity-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1c1e21;
}

.close-feeling-activity {
    background: #f0f2f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #65676b;
    transition: background-color 0.2s;
}

.close-feeling-activity:hover {
    background: #e4e6ea;
}

.feeling-activity-search {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
}

.selected-feeling-preview {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
    background: #f0f2f5;
}

.selected-feeling-preview h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #65676b;
    font-weight: 600;
}

.selected-feeling-display {
    display: flex;
    align-items: center;
}

.selected-feeling-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #dddfe2;
    border-radius: 20px;
    padding: 8px 12px;
    gap: 8px;
}

.selected-feeling-emoji {
    font-size: 18px;
}

.selected-feeling-text {
    color: #1c1e21;
    font-weight: 600;
    font-size: 14px;
}

.feeling-categories-tabs {
    display: flex;
    border-bottom: 1px solid #e4e6ea;
}

.feeling-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #65676b;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.feeling-tab:hover {
    background: #f0f2f5;
}

.feeling-tab.active {
    color: #1877f2;
    border-bottom-color: #1877f2;
}

.feelings-container {
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 16px 16px 16px;
}

.feelings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    background: transparent;
    padding: 20px 16px;
    max-height: 400px;
    overflow-y: auto;
}

.feeling-item {
    background: white;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e4e6ea;
    border-radius: 12px;
    text-align: center;
    min-height: 95px;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feeling-item:hover {
    background: #f8f9fa;
    border-color: #1877f2;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.15);
}

.feeling-item.selected {
    background: #e7f3ff;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.3);
    transform: translateY(-2px);
}

.feeling-emoji {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.feeling-text {
    color: #1c1e21;
    font-weight: 500;
    font-size: 13px;
    text-transform: capitalize;
    line-height: 1.2;
    word-break: break-word;
    margin-top: 2px;
}

/* Enhanced visual indicators */
.feeling-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, rgba(24, 119, 242, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feeling-item:hover::before {
    opacity: 1;
}

.feeling-item.selected::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.15) 0%, rgba(24, 119, 242, 0.1) 100%);
}

/* Selection indicator */
.feeling-item.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1877f2;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-feelings {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    color: #65676b;
    font-size: 14px;
    background: white;
}

.no-feelings-found {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: #65676b;
    font-size: 14px;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e4e6ea;
}

.no-feelings-found i {
    font-size: 48px;
    color: #bcc0c4;
    margin-bottom: 16px;
    display: block;
}

.no-feelings-found h4 {
    color: #1c1e21;
    margin: 12px 0 8px 0;
    font-size: 16px;
}

.no-feelings-found p {
    color: #65676b;
    margin: 0;
    font-size: 13px;
}

/* Search highlight */
.feeling-item.search-match {
    animation: searchPulse 1s ease-in-out;
}

@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(24, 119, 242, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0);
    }
}

.no-feelings-found i {
    font-size: 32px;
    color: #bcc0c4;
    margin-bottom: 12px;
}

.custom-feeling-input {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
    background: #f8f9fa;
}

.custom-feeling-input label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
}

#custom-feeling-text {
    width: 100%;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

#custom-feeling-text:focus {
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.feeling-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e4e6ea;
    background: #f0f2f5;
}

.btn-feeling-done {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-feeling-done:hover:not(:disabled) {
    background: #166fe5;
}

.btn-feeling-done:disabled {
    background: #bcc0c4;
    cursor: not-allowed;
}

/* Post Creation Area Feeling Preview */
.post-feeling-preview {
    margin: 12px 0;
    padding: 12px;
    background: #f0f2f5;
    border-radius: 8px;
    border: 1px solid #e4e6ea;
}

.feeling-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #65676b;
    font-size: 14px;
}

.feeling-preview-header .feeling-emoji {
    font-size: 18px;
}

.feeling-preview-header .feeling-emoji-image {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
}

.selected-feeling-emoji-image {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
}

.feeling-preview-header .feeling-text {
    color: #1c1e21;
    font-weight: 600;
}

.remove-feeling {
    background: #e41e3f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: background-color 0.2s;
}

.remove-feeling:hover {
    background: #c91c3b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .feeling-activity-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .feelings-grid {
        grid-template-columns: 1fr;
    }
    
    .feeling-item {
        padding: 16px;
    }
    
    .feeling-tab {
        font-size: 12px;
        padding: 10px 8px;
    }
    
    .feeling-tab i {
        display: none;
    }
}

/* Custom Emoji Styles */
.add-custom-emoji {
    background: #f0f2f5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #dddfe2;
}

.add-custom-emoji h4 {
    margin: 0 0 15px 0;
    color: #1c1e21;
    font-size: 16px;
    font-weight: 600;
}

.custom-emoji-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-emoji-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.custom-emoji-row label {
    font-weight: 500;
    color: #1c1e21;
    font-size: 14px;
    min-width: 50px;
}

.emoji-input {
    width: 60px;
    padding: 8px 10px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 18px;
    text-align: center;
}

.text-input {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 14px;
}

.category-select {
    padding: 8px 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.btn-add-emoji {
    background: #42b883;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-add-emoji:hover {
    background: #369870;
}

.custom-category-input {
    margin-top: 10px;
}

.custom-category-input label {
    display: block;
    font-weight: 500;
    color: #1c1e21;
    font-size: 14px;
    margin-bottom: 5px;
}

.custom-category-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 14px;
}

/* Custom Emoji Items */
.feeling-item.custom-emoji {
    position: relative;
    background: #f8f9ff;
    border: 2px solid #e7f3ff;
}

.feeling-item.custom-emoji:hover {
    background: #e7f3ff;
    border-color: #1877f2;
}

.delete-custom-emoji {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.feeling-item.custom-emoji:hover .delete-custom-emoji {
    opacity: 1;
}

.delete-custom-emoji:hover {
    background: #c0392b;
}

/* Custom Category Sections */
.custom-category-section {
    grid-column: 1 / -1;
    margin: 20px 0 10px 0;
}

.category-title {
    color: #1c1e21;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #1877f2;
}

.category-emojis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    padding: 16px 0;
    max-height: 350px;
    overflow-y: auto;
}

/* Custom emoji specific styling */
.feeling-item.custom-emoji {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #dddfe2;
    position: relative;
}

.feeling-item.custom-emoji::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #42b883;
    border-radius: 50%;
    box-shadow: 0 0 0 2px white;
}

.feeling-item.custom-emoji:hover {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-color: #42b883;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(66, 184, 131, 0.2);
}

.feeling-item.custom-emoji.selected {
    background: linear-gradient(135deg, #e7f3ff 0%, #d1e9ff 100%);
    border-color: #42b883;
    box-shadow: 0 0 0 3px rgba(66, 184, 131, 0.3);
}

.feeling-item .emoji-image {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Empty State */
.no-custom-emojis-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
}

.empty-state {
    color: #65676b;
}

.empty-state i {
    font-size: 48px;
    color: #bcc0c4;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #1c1e21;
    margin: 10px 0;
    font-size: 18px;
}

.empty-state p {
    color: #65676b;
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-emoji-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-emoji-row label {
        min-width: auto;
    }
    
    .feelings-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 8px;
        padding: 16px 12px;
    }
    
    .feeling-item {
        padding: 16px 10px;
        min-height: 85px;
        gap: 8px;
    }
    
    .feeling-emoji {
        font-size: 28px;
        width: 36px;
        height: 36px;
    }
    
    .feeling-item .emoji-image {
        width: 32px;
        height: 32px;
    }
    
    .feeling-item.has-image .feeling-emoji {
        width: 36px;
        height: 36px;
    }
    
    .feeling-text {
        font-size: 12px;
    }
    
    .category-emojis {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 8px;
        padding: 12px 0;
    }
    
    .feeling-activity-content {
        max-width: 95vw;
    }
    
    .feelings-container {
        margin: 0 8px 12px 8px;
        max-height: 380px;
    }
    
    .emoji-input,
    .text-input,
    .category-select {
        width: 100%;
    }
    
    .category-emojis {
        grid-template-columns: 1fr;
    }
}

/* Custom Emoji Image Upload Styles */
.emoji-input-method {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dddfe2;
}

.emoji-input-method label {
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 10px;
    display: block;
}

.input-method-options {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #1c1e21;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.emoji-character-input,
.emoji-image-input {
    margin-bottom: 15px;
}

.emoji-character-input label,
.emoji-image-input label {
    font-weight: 500;
    color: #1c1e21;
    margin-bottom: 8px;
    display: block;
}

.file-upload-area {
    border: 2px dashed #dddfe2;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: #1877f2;
    background: #e7f3ff;
}

.file-upload-area.dragover {
    border-color: #1877f2;
    background: #e7f3ff;
    transform: scale(1.02);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    color: #65676b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-placeholder i {
    font-size: 48px;
    color: #bcc0c4;
}

.upload-placeholder span {
    font-size: 16px;
    font-weight: 500;
}

.upload-placeholder small {
    font-size: 12px;
    color: #8a8d91;
}

.image-preview {
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid #1877f2;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image:hover {
    background: #c0392b;
}

/* Custom emoji display with images */
.feeling-item .emoji-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.feeling-item.has-image .feeling-emoji {
    font-size: 0;
    width: 40px;
    height: 40px;
}

/* Admin page image display */
.emoji-admin-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.emoji-admin-image {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

/* Loading states */
.uploading .btn-add-emoji {
    opacity: 0.6;
    pointer-events: none;
}

.uploading .btn-add-emoji:after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== LOCATION CHECK-IN STYLES ========== */

/* Location modal */
.location-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.location-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.location-modal-header {
    padding: 20px 24px;
    border-bottom: 2px solid #e4e6ea;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.location-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c 0%, #42b883 100%);
}

.location-modal-header h3 {
    margin: 0;
    color: #1c1e21;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-location {
    width: 36px;
    height: 36px;
    border: 2px solid #e74c3c;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.close-location:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.5);
}

.close-location:active {
    transform: scale(0.95) rotate(90deg);
}

.close-location::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.close-location:hover::before {
    opacity: 1;
}

.location-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.location-search-section {
    margin-bottom: 20px;
}

.location-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    outline: none;
    transition: border-color 0.2s;
}

.location-search-input:focus {
    border-color: #1877f2;
    background: #ffffff;
}

.use-current-location {
    width: 100%;
    padding: 12px 16px;
    margin-top: 12px;
    border: 1px solid #1877f2;
    background: #ffffff;
    color: #1877f2;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.use-current-location:hover {
    background: #f0f8ff;
}

.use-current-location:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Location search results */
.location-results {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.location-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.location-item:hover {
    background: #f8f9fa;
}

.location-icon {
    width: 40px;
    height: 40px;
    background: #f0f2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676b;
    flex-shrink: 0;
}

.location-info {
    flex: 1;
}

.location-name {
    font-weight: 500;
    color: #1c1e21;
    font-size: 14px;
    margin-bottom: 2px;
}

.location-address {
    color: #65676b;
    font-size: 13px;
}

/* Selected location preview */
.selected-location-preview {
    display: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid #1877f2;
}

.selected-location-preview h4 {
    margin: 0 0 8px 0;
    color: #1c1e21;
    font-size: 14px;
    font-weight: 600;
}

.preview-location-name {
    font-weight: 500;
    color: #1c1e21;
}

.preview-location-address {
    color: #65676b;
    font-size: 13px;
    margin-top: 4px;
}

/* Location modal footer */
.location-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e4e6ea;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-location-cancel,
.btn-location-done {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-location-cancel {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    border-color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-location-cancel:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.5);
}

.btn-location-cancel:active {
    transform: translateY(0);
}

.btn-location-cancel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateY(-50%);
    transition: left 0.5s;
}

.btn-location-cancel:hover::before {
    left: 100%;
}

.btn-location-done {
    background: linear-gradient(135deg, #42b883 0%, #369870 100%);
    color: #ffffff;
    border-color: #42b883;
    box-shadow: 0 2px 8px rgba(66, 184, 131, 0.3);
}

.btn-location-done:hover {
    background: linear-gradient(135deg, #369870 0%, #2e8660 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(66, 184, 131, 0.5);
}

.btn-location-done:active {
    transform: translateY(0);
}

.btn-location-done::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateY(-50%);
    transition: left 0.5s;
}

.btn-location-done:hover::before {
    left: 100%;
}

.btn-location-done:disabled {
    background: linear-gradient(135deg, #e4e6ea 0%, #d0d2d6 100%);
    color: #bcc0c4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: #e4e6ea;
}

.btn-location-done:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-location-done:disabled::before {
    display: none;
}

/* Location in post creation area */
.location-preview {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #42b883;
    display: none;
}

.location-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-preview-header .fas {
    color: #42b883;
    font-size: 16px;
}

.location-details {
    flex: 1;
}

.location-preview .location-name {
    font-weight: 500;
    color: #1c1e21;
    font-size: 14px;
    margin-bottom: 2px;
}

.location-preview .location-address {
    color: #65676b;
    font-size: 13px;
}

.remove-location {
    width: 24px;
    height: 24px;
    border: none;
    background: #e4e6ea;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676b;
    font-size: 12px;
    transition: all 0.2s;
}

.remove-location:hover {
    background: #d0d2d6;
}

/* Location display in feed posts */
.post-location {
    margin: 12px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.post-location::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #42b883 0%, #28a745 100%);
}

.location-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #495057;
}

.location-display .fas {
    color: #42b883;
    font-size: 20px;
    margin-bottom: 4px;
    padding: 8px;
    background: rgba(66, 184, 131, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-location .location-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.post-location .location-name {
    font-weight: 600;
    color: #212529;
    font-size: 16px;
    margin: 0;
}

.post-location .location-address {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
    text-align: center;
}

.post-location .location-address:before {
    content: "";
    margin-right: 0;
}

/* Location map display */
.location-map {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.location-map iframe {
    display: block;
    border: none;
    border-radius: 12px;
}

.map-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.view-larger-map {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #1877f2;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s;
}

.view-larger-map:hover {
    color: #166fe5;
    text-decoration: none;
}

.view-larger-map i {
    font-size: 10px;
}

/* Static map placeholder */
.location-static-map {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.map-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    text-align: center;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.map-placeholder i {
    font-size: 24px;
    color: #42b883;
}

.map-placeholder span {
    font-size: 14px;
    font-weight: 500;
}

/* Location hover effect */
.post-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.post-location {
    transition: all 0.3s ease;
}

/* Location card for special emphasis */
.post-location.featured-location {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #42b883;
}

/* Active state for location button */
.option-btn[title*="Check in"].active {
    background: #e7f3ff;
    color: #1877f2;
}

/* Loading and error states */
.loading {
    text-align: center;
    padding: 20px;
    color: #65676b;
    font-size: 14px;
}

.no-results-message {
    text-align: center;
    padding: 20px;
    color: #65676b;
    font-size: 14px;
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .location-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .location-modal-body {
        max-height: 50vh;
    }
    
    .location-item {
        padding: 16px 12px;
    }
    
    .location-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Mobile location card styling */
    .post-location {
        margin: 10px -16px;
        border-radius: 8px;
        padding: 14px;
    }
    
    .location-display .fas {
        font-size: 18px;
        width: 36px;
        height: 36px;
    }
    
    .post-location .location-name {
        font-size: 15px;
    }
    
    .post-location .location-address {
        font-size: 13px;
    }
    
    /* Mobile map styling */
    .location-map {
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .location-map iframe {
        height: 180px;
        border-radius: 8px;
    }
    
    .map-overlay {
        bottom: 6px;
        right: 6px;
        padding: 4px 8px;
    }
    
    .view-larger-map {
        font-size: 11px;
    }
    
    .map-placeholder {
        padding: 16px;
    }
    
    .map-placeholder i {
        font-size: 20px;
    }
}

/* ==============================
   POST ACTIONS & LIKE SYSTEM
   ============================== */

/* Post Stats */
.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 8px;
    color: #65676b;
    font-size: 15px;
}

.post-reactions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reaction-icons {
    display: flex;
    gap: -2px;
}

.reaction-icons i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    margin-left: -2px;
}

.reaction-icons .fa-thumbs-up,
.reaction-icons .reaction-like {
    background-color: #1877f2;
}

.reaction-icons .fa-heart,
.reaction-icons .reaction-love {
    background-color: #e74c3c;
}

.reaction-icons .fa-laugh,
.reaction-icons .reaction-haha {
    background-color: #f7b928;
}

.reaction-icons .fa-surprise,
.reaction-icons .reaction-wow {
    background-color: #f39c12;
}

.reaction-icons .fa-sad-tear,
.reaction-icons .reaction-sad {
    background-color: #f39c12;
}

.reaction-icons .fa-angry,
.reaction-icons .reaction-angry {
    background-color: #e74c3c;
}

.reactions-count,
.post-reactions span {
    color: #65676b;
    font-size: 15px;
    cursor: pointer;
}

.reactions-count:hover,
.post-reactions span:hover {
    text-decoration: underline;
}

.post-comments-shares {
    display: flex;
    gap: 16px;
}

.post-comments-shares span {
    color: #65676b;
    font-size: 15px;
    cursor: pointer;
}

.post-comments-shares span:hover {
    text-decoration: underline;
}

/* Post Actions */
.post-actions {
    display: flex;
    justify-content: space-around;
    padding: 4px 0;
    border-top: 1px solid #e4e6ea;
    margin-top: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    gap: 8px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

.action-btn:hover {
    background-color: #f0f2f5;
}

.action-btn i {
    color: #65676b;
    font-size: 16px;
    transition: color 0.2s ease;
}

.action-btn span {
    color: #65676b;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

/* Like Button States */
.action-btn.like-btn:hover i,
.action-btn.like-btn:hover span {
    color: #1877f2;
}

.action-btn.like-btn.liked i,
.action-btn.like-btn.liked span {
    color: #1877f2;
}

.action-btn.like-btn.liked {
    background-color: rgba(24, 119, 242, 0.1);
}

.action-btn.like-btn.liked:hover {
    background-color: rgba(24, 119, 242, 0.2);
}

/* Comment Button States */
.action-btn.comment-btn:hover i,
.action-btn.comment-btn:hover span {
    color: #65676b;
}

/* Share Button States */
.action-btn.share-btn:hover i,
.action-btn.share-btn:hover span {
    color: #42b883;
}

/* Like Animation */
.action-btn.like-btn.liked i {
    animation: likeAnimation 0.3s ease;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .post-actions {
        padding: 8px 4px;
    }
    
    .action-btn {
        padding: 8px 4px;
        font-size: 14px;
        gap: 4px;
    }
    
    .action-btn i {
        font-size: 14px;
    }
    
    .action-btn span {
        font-size: 14px;
    }
    
    .post-stats {
        padding: 0 12px 8px;
        font-size: 14px;
    }
    
    .reactions-count,
    .post-reactions span,
    .post-comments-shares span {
        font-size: 14px;
    }
}

/* ===========================
   COMMENTS SYSTEM STYLING
   =========================== */

/* Comments Section */
.comments-section {
    background: #ffffff;
    border-top: 1px solid #e4e6ea;
    padding: 0;
    margin-top: 0;
}

.comments-section.show {
    display: block !important;
}

/* Comment Form */
.comment-form {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e4e6ea;
}

.comment-form .comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.comment-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 8px 12px;
    transition: background-color 0.2s;
}

.comment-input-container:focus-within {
    background: #e7f3ff;
}

.comment-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1c1e21;
    resize: none;
    min-height: 20px;
    max-height: 100px;
    line-height: 20px;
}

.comment-input::placeholder {
    color: #65676b;
}

.comment-submit-btn {
    background: none;
    border: none;
    color: #1877f2;
    cursor: pointer;
    font-size: 16px;
    margin-left: 8px;
    padding: 4px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.comment-submit-btn:hover {
    background: rgba(24, 119, 242, 0.1);
}

.comment-submit-btn:disabled {
    color: #bcc0c4;
    cursor: not-allowed;
}

/* Comments List */
.comments-list {
    background: #ffffff;
}

/* Individual Comment */
.comment {
    display: flex;
    align-items: flex-start;
    padding: 8px 16px;
    transition: background-color 0.2s;
}

.comment:hover {
    background: #f8f9fa;
}

.comment .comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.comment-reply .comment-avatar {
    width: 28px;
    height: 28px;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-bubble {
    background: #f0f2f5;
    border-radius: 16px;
    padding: 8px 12px;
    margin-bottom: 4px;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
    color: #1c1e21;
    margin-bottom: 2px;
    display: block;
}

.comment-author a {
    color: #1c1e21;
    text-decoration: none;
}

.comment-author a:hover {
    text-decoration: underline;
}

.comment-text {
    font-size: 14px;
    color: #1c1e21;
    line-height: 1.33;
    margin: 0;
    word-wrap: break-word;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-top: 2px;
    margin-left: 12px;
}

.comment-actions > * {
    margin-right: 12px;
}

.comment-time {
    color: #65676b;
    font-weight: 600;
}

.comment-like-btn,
.comment-reply-btn {
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.comment-like-btn:hover,
.comment-reply-btn:hover {
    color: #1c1e21;
}

.comment-like-btn.liked {
    color: #1877f2;
}

.comment-like-btn.liked i {
    color: #1877f2;
}

.comment-likes-count {
    color: #65676b;
    font-size: 12px;
    font-weight: 600;
}

/* Comment Replies */
.comment-replies {
    margin-left: 40px;
    margin-top: 8px;
}

.comment-reply {
    padding: 4px 0;
}

.comment-reply .comment-bubble {
    background: #e4e6ea;
}

/* Nested Replies */
.nested-replies {
    margin-left: 30px;
    margin-top: 8px;
    border-left: 2px solid #e4e6ea;
    padding-left: 12px;
}

.nested-reply {
    display: flex;
    align-items: flex-start;
    padding: 4px 0;
    margin-bottom: 6px;
}

.nested-reply-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.nested-reply-content {
    flex: 1;
    min-width: 0;
}

.nested-reply-bubble {
    background: #f0f2f5;
    border-radius: 16px;
    padding: 8px 12px;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}

.nested-reply-author {
    font-weight: 600;
    font-size: 13px;
    color: #365899;
    display: block;
    margin-bottom: 2px;
}

.nested-reply-author a {
    color: #365899;
    text-decoration: none;
}

.nested-reply-author a:hover {
    text-decoration: underline;
}

.nested-reply-text {
    font-size: 14px;
    line-height: 1.33;
    color: #1c1e21;
    margin: 0;
}

.nested-reply-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    margin-left: 12px;
    font-size: 12px;
}

.nested-reply-actions button {
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nested-reply-actions button:hover {
    background-color: #f2f2f2;
}

.nested-reply-time {
    color: #65676b;
    font-size: 12px;
    font-weight: 600;
}

.load-more-nested-replies {
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    margin-top: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.load-more-nested-replies:hover {
    background-color: #f2f2f2;
}

/* Reply Form */
.comment-reply-form {
    margin-left: 40px;
    margin-top: 8px;
    padding: 8px 0;
}

.reply-form-container {
    display: flex;
    align-items: flex-start;
}

.reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.reply-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 6px 10px;
    transition: background-color 0.2s;
}

.reply-input-container:focus-within {
    background: #e7f3ff;
}

.reply-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #1c1e21;
    min-height: 18px;
    line-height: 18px;
}

.reply-input::placeholder {
    color: #65676b;
}

.reply-submit-btn {
    background: none;
    border: none;
    color: #1877f2;
    cursor: pointer;
    font-size: 14px;
    margin-left: 6px;
    padding: 2px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.reply-submit-btn:hover {
    background: rgba(24, 119, 242, 0.1);
}

.reply-submit-btn:disabled {
    color: #bcc0c4;
    cursor: not-allowed;
}

/* Animation for new comments and replies */
.comment {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comment-form {
        padding: 10px 12px;
    }
    
    .comment {
        padding: 6px 12px;
    }
    
    .comment-input-container {
        padding: 6px 10px;
    }
    
    .comment-bubble {
        padding: 6px 10px;
        border-radius: 14px;
    }
    
    .comment-replies {
        margin-left: 32px;
    }
    
    .nested-replies {
        margin-left: 24px;
        padding-left: 8px;
    }
    
    .nested-reply-avatar {
        width: 18px;
        height: 18px;
    }
    
    .nested-reply-bubble {
        padding: 6px 10px;
        border-radius: 14px;
    }
    
    .nested-reply-actions {
        margin-left: 8px;
        gap: 6px;
    }
    
    .nested-reply-actions button,
    .load-more-nested-replies {
        font-size: 11px;
        padding: 2px 4px;
    }
    
    .reply-form-container {
        margin-left: 32px;
    }
    
    .comment-actions {
        margin-left: 10px;
    }
    
    .comment-actions > * {
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .comment-form .comment-avatar,
    .comment .comment-avatar {
        width: 28px;
        height: 28px;
    }
    
    .comment-reply .comment-avatar,
    .reply-avatar {
        width: 24px;
        height: 24px;
    }
    
    .comment-replies {
        margin-left: 24px;
    }
    
    .nested-replies {
        margin-left: 20px;
        padding-left: 6px;
    }
    
    .nested-reply-avatar {
        width: 16px;
        height: 16px;
    }
    
    .nested-reply-bubble {
        padding: 4px 8px;
        border-radius: 12px;
    }
    
    .nested-reply-text {
        font-size: 13px;
    }
    
    .nested-reply-actions {
        margin-left: 6px;
        gap: 4px;
    }
    
    .nested-reply-actions button,
    .load-more-nested-replies {
        font-size: 10px;
        padding: 1px 3px;
    }
    
    .reply-form-container {
        margin-left: 24px;
    }
    
    .comment-input,
    .reply-input {
        font-size: 14px;
    }
    
    .comment-text {
        font-size: 14px;
    }
    
    .comment-actions {
        font-size: 11px;
    }
}

/* ===========================
   SHARE MODAL STYLING
   =========================== */

/* Share Modal Overlay */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

/* Share Modal */
.share-modal {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
    animation: slideIn 0.3s ease-out;
}

/* Share Modal Header */
.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1c1e21;
}

.share-modal-header .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #65676b;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.share-modal-header .close-modal:hover {
    background-color: #e4e6ea;
}

/* Share Modal Content */
.share-modal-content {
    padding: 8px;
}

/* Share Option */
.share-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 4px;
}

.share-option:hover {
    background-color: #f2f2f2;
}

.share-option:last-child {
    margin-bottom: 0;
}

.share-option i {
    font-size: 20px;
    color: #1877f2;
    margin-right: 16px;
    width: 24px;
    text-align: center;
}

.share-option div {
    flex: 1;
}

.share-option h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1c1e21;
}

.share-option p {
    margin: 0;
    font-size: 14px;
    color: #65676b;
    line-height: 1.33;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1c1e21;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1100;
    animation: slideUp 0.3s ease-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .share-modal {
        width: 95%;
        margin: 20px;
    }
    
    .share-modal-header {
        padding: 12px 16px;
    }
    
    .share-modal-header h3 {
        font-size: 18px;
    }
    
    .share-option {
        padding: 10px 12px;
    }
    
    .share-option h4 {
        font-size: 15px;
    }
    
    .share-option p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .share-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .share-modal-header {
        border-radius: 0;
        padding: 10px 12px;
    }
    
    .share-modal-header h3 {
        font-size: 16px;
    }
    
    .share-option {
        padding: 12px;
    }
    
    .share-option i {
        margin-right: 12px;
    }
}

/* ===========================
   EDIT POST MODAL STYLING
   =========================== */

/* Edit Post Modal Overlay */
.edit-post-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

/* Edit Post Modal */
.edit-post-modal {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
    animation: slideIn 0.3s ease-out;
}

/* Edit Post Modal Header */
.edit-post-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6ea;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.edit-post-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1c1e21;
}

.edit-post-modal-header .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #65676b;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.edit-post-modal-header .close-modal:hover {
    background-color: #e4e6ea;
}

/* Edit Post Modal Content */
.edit-post-modal-content {
    padding: 20px;
}

/* Post Author Info */
.post-author-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.post-author-info .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.post-author-info .author-name {
    font-weight: 600;
    font-size: 16px;
    color: #1c1e21;
}

/* Edit Post Textarea */
.edit-post-textarea {
    width: 100%;
    min-height: 120px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    color: #1c1e21;
    line-height: 1.33;
    resize: none;
    overflow: hidden;
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.edit-post-textarea::placeholder {
    color: #65676b;
}

/* Edit Post Actions */
.edit-post-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #e4e6ea;
}

.edit-post-actions button {
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.edit-post-actions .btn-cancel {
    background: #e4e6ea;
    color: #65676b;
}

.edit-post-actions .btn-cancel:hover {
    background: #d8dadf;
}

.edit-post-actions .btn-save {
    background: #1877f2;
    color: #ffffff;
}

.edit-post-actions .btn-save:hover:not(:disabled) {
    background: #166fe5;
}

.edit-post-actions .btn-save:disabled {
    background: #e4e6ea;
    color: #bcc0c4;
    cursor: not-allowed;
}

/* Post Options Menu Styling */
.post-options {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.post-options:hover {
    background-color: #f2f2f2;
}

.post-options-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 200px;
    padding: 8px 0;
}

.post-options-menu .option-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.post-options-menu .option-item:hover {
    background-color: #f2f2f2;
}

.post-options-menu .option-item i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    color: #65676b;
}

.post-options-menu .option-item span {
    color: #1c1e21;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .edit-post-modal {
        width: 95%;
        margin: 20px;
    }
    
    .edit-post-modal-header {
        padding: 12px 16px;
    }
    
    .edit-post-modal-header h3 {
        font-size: 18px;
    }
    
    .edit-post-modal-content {
        padding: 16px;
    }
    
    .edit-post-textarea {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .edit-post-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .edit-post-modal-header {
        border-radius: 0;
        padding: 10px 12px;
    }
    
    .edit-post-modal-header h3 {
        font-size: 16px;
    }
    
    .edit-post-modal-content {
        padding: 12px;
    }
    
    .edit-post-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .edit-post-actions button {
        width: 100%;
        padding: 12px;
    }
}

/* Delete Confirmation Popover */
.delete-confirmation-popover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.delete-confirmation-popover.show {
    opacity: 1;
    visibility: visible;
}

.popover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.popover-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.delete-confirmation-popover.show .popover-content {
    transform: scale(1);
}

.popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid #e4e6ea;
}

.popover-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1c1e21;
}

.popover-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #65676b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.popover-close:hover {
    background-color: #f0f2f5;
}

.popover-body {
    padding: 20px;
}

.popover-body p {
    margin: 0;
    font-size: 14px;
    color: #1c1e21;
    line-height: 1.5;
}

.popover-footer {
    display: flex;
    gap: 10px;
    padding: 10px 20px 20px 20px;
    justify-content: flex-end;
}

.popover-footer button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    min-width: 80px;
}

.btn-cancel {
    background: #e4e6ea;
    color: #1c1e21;
}

.btn-cancel:hover {
    background: #d8dadf;
}

.btn-delete {
    background: #e41e3f;
    color: white;
}

.btn-delete:hover {
    background: #d91c3c;
}

@media (max-width: 768px) {
    .popover-content {
        max-width: 350px;
        margin: 20px;
    }
    
    .popover-header,
    .popover-body,
    .popover-footer {
        padding: 15px;
    }
    
    .popover-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .popover-footer button {
        width: 100%;
        padding: 12px;
    }
}

/* Enhanced Edit Post Modal Styles */
.edit-post-modal .post-author-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.edit-post-modal .author-details {
    flex: 1;
}

.edit-post-modal .author-name {
    font-weight: 600;
    font-size: 15px;
    color: #1c1e21;
    margin-bottom: 4px;
}

.edit-post-modal .privacy-select {
    background: #f0f2f5;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #65676b;
    cursor: pointer;
}

.tagged-friends-display,
.feeling-display,
.location-display {
    margin: 8px 0;
    font-size: 14px;
    color: #65676b;
}

.tagged-friends-display .tagged-text {
    margin-right: 4px;
}

.edit-post-options {
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    margin: 15px 0;
    padding: 12px;
}

.post-options-header {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
}

.post-options-buttons {
    display: flex;
    gap: 8px;
}

.post-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f2f5;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #42b883;
    font-size: 16px;
}

.post-option-btn:hover {
    background: #e4e6ea;
}

.post-media-preview {
    margin: 15px 0;
    display: none;
}

.media-item {
    position: relative;
    margin-bottom: 10px;
}

.media-item img,
.media-item video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-media {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Tag Friends Modal */
.edit-tag-friends-modal-overlay,
.edit-feeling-modal-overlay,
.edit-location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-tag-friends-modal,
.edit-feeling-modal,
.edit-location-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e4e6ea;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1c1e21;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-add-custom-emoji {
    background: #e7f3ff;
    border: 1px solid #1877f2;
    color: #1877f2;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-add-custom-emoji:hover {
    background: #1877f2;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #65676b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: #f0f2f5;
}

.modal-header button {
    background: none;
    border: none;
    font-size: 24px;
    color: #65676b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-header button:hover {
    background-color: #f0f2f5;
}

.modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Feeling emoji image in display */
.feeling-emoji-img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 3px;
    object-fit: cover;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e4e6ea;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.modal-footer button:first-child {
    background: #e4e6ea;
    color: #1c1e21;
}

.modal-footer button:first-child:hover {
    background: #d8dadf;
}

.modal-footer button:last-child {
    background: #1877f2;
    color: white;
}

.modal-footer button:last-child:hover {
    background: #166fe5;
}

/* Friends List */
.search-friends input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

.friends-list {
    max-height: 300px;
    overflow-y: auto;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.friend-item:hover {
    background-color: #f0f2f5;
}

.friend-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.friend-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.friend-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #1877f2;
    border-radius: 3px;
    position: relative;
}

.friend-checkbox.checked {
    background: #1877f2;
}

.friend-checkbox.checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

/* Feeling Categories */
.feeling-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feeling-category h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1c1e21;
}

.feeling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.feeling-item {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    text-align: center;
    border: 1px solid #e4e6ea;
}

.feeling-item:hover {
    background-color: #f0f2f5;
}

/* Location Search */
.location-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

.location-results {
    max-height: 300px;
    overflow-y: auto;
}

.location-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.location-item:hover {
    background-color: #f0f2f5;
}

.location-item i {
    font-size: 16px;
    color: #1877f2;
    margin-right: 12px;
}

.location-name {
    font-size: 14px;
    font-weight: 500;
    color: #1c1e21;
}

.location-address {
    font-size: 12px;
    color: #65676b;
}

@media (max-width: 768px) {
    .edit-tag-friends-modal,
    .edit-feeling-modal,
    .edit-location-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .feeling-grid {
        grid-template-columns: 1fr;
    }
    
    .post-options-buttons {
        flex-wrap: wrap;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .modal-footer button {
        width: 100%;
        padding: 12px;
    }
}

/* ===========================
   ENHANCED EDIT POST STYLING
   =========================== */

/* Enhanced Edit Post Modal Multi-Feeling Styles */
.selected-feelings-preview {
    background: #f8f9fa;
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: none;
}

.selected-feelings-header {
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 8px;
}

.selected-feelings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.selected-feeling-item {
    background: #e3f2fd;
    border: 1px solid #1877f2;
    border-radius: 16px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    position: relative;
}

.selected-feeling-emoji-image {
    width: 18px;
    height: 18px;
    border-radius: 2px;
}

.selected-feeling-emoji {
    font-size: 16px;
}

.selected-feeling-text {
    color: #1c1e21;
    font-weight: 500;
}

.remove-feeling-btn {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    transition: background-color 0.2s;
}

.remove-feeling-btn:hover {
    background: #166fe5;
}

.selected-feelings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.clear-all-feelings {
    background: none;
    border: none;
    color: #1877f2;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.clear-all-feelings:hover {
    background: #f0f2f5;
    text-decoration: none;
}

/* Edit Post Feelings Display */
.edit-post-feelings {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.edit-post-feeling {
    background: #f0f2f5;
    border: 1px solid #e4e6ea;
    border-radius: 16px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    position: relative;
    transition: all 0.2s;
}

.edit-post-feeling:hover {
    border-color: #1877f2;
    background: #f0f8ff;
}

.edit-post-feeling .feeling-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.edit-post-feeling .feeling-emoji-img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

.edit-post-feeling .feeling-emoji {
    font-size: 18px;
}

.edit-post-feeling .feeling-text {
    color: #1c1e21;
    font-weight: 500;
}

.remove-edit-feeling-btn {
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-edit-feeling-btn:hover {
    background: #f0f2f5;
    color: #1877f2;
}

/* Enhanced Edit Post Modal Animations */
@keyframes editModalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.edit-post-modal {
    animation: editModalSlideIn 0.3s ease-out;
}

.edit-post-modal-overlay {
    backdrop-filter: blur(2px);
}

/* Enhanced Edit Post Options Styling */
.edit-post-options {
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    margin: 16px 0;
    padding: 12px;
    background: #fafbfc;
}

.edit-post-options .post-options-header {
    font-size: 14px;
    font-weight: 600;
    color: #65676b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edit-post-options .post-options-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edit-post-options .post-option-btn {
    background: white;
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.edit-post-options .post-option-btn:hover {
    background: #f0f2f5;
    border-color: #1877f2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.1);
}

.edit-post-options .post-option-btn i {
    font-size: 16px;
    color: #1877f2;
}

.edit-post-options .post-option-btn[title*="Photo"] i {
    color: #45bd62;
}

.edit-post-options .post-option-btn[title*="Tag"] i {
    color: #1877f2;
}

.edit-post-options .post-option-btn[title*="Feeling"] i {
    color: #f7b928;
}

.edit-post-options .post-option-btn[title*="Location"] i {
    color: #e41e3f;
}

/* Edit Post Modal Responsive Design */
@media (max-width: 768px) {
    .edit-post-modal {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    
    .edit-post-modal-header {
        padding: 12px 16px;
    }
    
    .edit-post-modal-content {
        padding: 16px;
    }
    
    .edit-post-options .post-options-buttons {
        justify-content: center;
    }
    
    .edit-post-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .edit-post-actions button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .edit-post-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .edit-post-modal-header {
        border-radius: 0;
        padding: 10px 12px;
    }
    
    .edit-post-modal-content {
        padding: 12px;
        height: calc(100% - 60px);
        overflow-y: auto;
    }
}

/* Enhanced Feeling Item Styling in Modal */
.edit-feeling-modal .feeling-item {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.edit-feeling-modal .feeling-item:hover {
    background: #f0f8ff !important;
    border-color: #1877f2 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.15);
}

.edit-feeling-modal .feeling-item.selected {
    background: #e3f2fd !important;
    border-color: #1877f2 !important;
    box-shadow: 0 2px 12px rgba(24, 119, 242, 0.2);
}

/* Loading Animation for Better UX */
.edit-post-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1877f2;
    border-radius: 50%;
    animation: editPostSpin 1s linear infinite;
    margin-right: 8px;
}

@keyframes editPostSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================
   INFINITE SCROLL FEED STYLING
   =========================== */

/* Feed Loading Indicator */
.feed-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 16px 0;
}

.feed-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1877f2;
    border-radius: 50%;
    animation: feedSpin 1s linear infinite;
}

@keyframes feedSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feed-loading-text {
    margin-left: 12px;
    color: #65676b;
    font-size: 14px;
    font-weight: 500;
}

/* Feed End Indicator */
.feed-end {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 16px 0;
    color: #65676b;
    font-size: 14px;
}

.feed-end i {
    margin-right: 8px;
    font-size: 16px;
}

/* New Post Animation for Infinite Scroll */
@keyframes newPostFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post.new-post {
    animation: newPostFadeIn 0.4s ease-out;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Feed Styling */
.center-feed {
    padding-bottom: 40px; /* Extra space for loading indicator */
}

/* Feed Error State */
.feed-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    color: #65676b;
}

.feed-error i {
    font-size: 48px;
    color: #e4e6ea;
    margin-bottom: 16px;
}

.feed-error h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 8px;
}

.feed-error p {
    font-size: 14px;
    margin-bottom: 16px;
    max-width: 300px;
}

.feed-retry-btn {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.feed-retry-btn:hover {
    background: #166fe5;
}

/* Enhanced Post Interactions */
.action-btn.liked {
    color: #1877f2 !important;
    background: rgba(24, 119, 242, 0.1);
}

.action-btn.active {
    color: #1877f2 !important;
    background: rgba(24, 119, 242, 0.1);
}

.action-btn:hover {
    background: #f0f2f5;
    color: #1877f2;
}

/* Enhanced Comment Section */
.comment-section {
    border-top: 1px solid #e4e6ea;
    padding: 12px 16px;
    margin-top: 8px;
    background: #f8f9fa;
}

.comment-input-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.comment-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e4e6ea;
    border-radius: 20px;
    padding: 8px 12px;
    transition: border-color 0.2s;
}

.comment-input-container:focus-within {
    border-color: #1877f2;
}

.comment-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0;
    font-size: 14px;
    background: transparent;
}

.comment-submit-btn {
    background: none;
    border: none;
    color: #1877f2;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.comment-submit-btn:hover {
    background: rgba(24, 119, 242, 0.1);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.comment .comment-profile-pic {
    width: 28px;
    height: 28px;
}

.comment-content {
    flex: 1;
    background: #f0f2f5;
    border-radius: 16px;
    padding: 8px 12px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
    color: #1c1e21;
}

.comment-time {
    font-size: 12px;
    color: #65676b;
}

.comment-text {
    margin: 0;
    font-size: 14px;
    color: #1c1e21;
    line-height: 1.3;
}

/* Reaction Emojis */
.reaction-emoji {
    font-size: 14px;
    margin-right: 2px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.reaction-emoji:not(:first-child) {
    margin-left: -4px;
}

/* Post Stats Enhancement */
.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    color: #65676b;
    font-size: 13px;
}

.post-reactions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reaction-icons {
    display: flex;
    align-items: center;
}

.post-comments-shares {
    display: flex;
    gap: 12px;
}

.post-comments-shares span {
    cursor: pointer;
    transition: color 0.2s;
}

.post-comments-shares span:hover {
    color: #1877f2;
    text-decoration: underline;
}

/* Lazy Loading Image Enhancement */
.post-image[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

.post-image[loading="lazy"].loaded {
    opacity: 1;
}

/* Toast Notification Styling */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1c1e21;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 300px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: #42b883;
}

.toast-error {
    background: #e74c3c;
}

.toast-warning {
    background: #f39c12;
}

.toast-info {
    background: #1877f2;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .comment-section {
        padding: 8px 12px;
    }
    
    .comment-input-container {
        padding: 6px 10px;
    }
    
    .comment-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .post-stats {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .toast {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .feed-loading {
        padding: 15px;
    }
    
    .feed-loading-text {
        font-size: 13px;
    }
    
    .feed-error {
        padding: 30px 15px;
    }
    
    .feed-retry-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}