   
body{
    margin-top: 40px;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.like-btn .fa-heart {
    color: #ccc; /* Default color for unliked heart */
    transition: color 0.3s;
}

.like-btn .fa-heart.liked {
    color: #00FF00; /* Color for liked heart */
}
/* Like and Share Button Container */
.like-share-buttons {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between like and share buttons */
}

.like-btn, .share-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px; /* Adjust size as needed */
    color: #333; /* Icon color */
    transition: color 0.3s;
}

.like-btn .liked, .share-btn:hover {
    color: #00FF00; /* Change color when liked or hovered */
}

.like-btn i, .share-btn i {
    font-size: 24px; /* Icon size */
}

.like-count {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Description and Date Styling */
/* The Modal (background) - Desktop Facebook Style */
.comment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Modal Content - Desktop Facebook Style */
.comment-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Close Button - Desktop */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Comments and Form Styling - Desktop Facebook Style */
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e4e6eb;
}

.comment-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.comment-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #e4e6eb;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

/* Facebook-style comment item - Desktop */
.comment-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.comment-item:hover {
    background-color: #f0f2f5;
}

.comment-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-item > div {
    flex-grow: 1;
    min-width: 0;
}

.comment-item p {
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-item strong {
    color: #050505;
    font-weight: 600;
    margin-right: 5px;
}

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

.comment-form {
    display: flex;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e4e6eb;
}

.input-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

/* User Avatar in Comment Input - Desktop Facebook Style */
.comment-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ccd0d5;
}

.input-container input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccd0d5;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
    background-color: #f0f2f5;
}

.input-container input[type="text"]:focus {
    border-color: #1877f2;
    background-color: #fff;
}

.input-container input[type="text"]::placeholder {
    color: #8a8d91;
}

.input-container button {
    padding: 8px 16px;
    border: none;
    background-color: #1877f2;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-container button:hover {
    background-color: #166fe5;
}

.input-container button ion-icon {
    font-size: 18px;
}

.options-container {
    position: relative;
    margin-left: 8px;
}

.options-container i {
    cursor: pointer;
    color: #65676b;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.options-container i:hover {
    background-color: #e4e6eb;
}

.options-dropdown {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccd0d5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 4px 0;
    right: 0;
    top: 100%;
    z-index: 100;
    min-width: 120px;
    margin-top: 4px;
}

.options-dropdown button {
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #050505;
    transition: background-color 0.2s;
}

.options-dropdown button:hover {
    background-color: #f0f2f5;
}

.options-dropdown button:first-child {
    border-bottom: 1px solid #e4e6eb;
}

/* Fade in animation for new comments */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-toast {
  display: none;
}
.feed-container .card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
    margin-bottom: 20px;
    overflow: hidden;
}

.feed-container .card .profile {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.feed-container .card .profile .avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

.feed-container .card .media {
    width: 100%;
    height: 300px; /* Set a fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflow to maintain aspect ratio */
}

.feed-container .card .media video,
.feed-container .card .media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Maintain aspect ratio, avoiding distortion */
}


.feed-container .card .details {
    padding: 10px;
    border-top: 1px solid #ddd;
}

.feed-container .card .details .text-description {
    font-size: 14px;
    margin: 0;
}

.feed-container .card .details .text-date {
    font-size: 12px;
    color: #888;
    margin: 5px 0;
}

.feed-container .card .interactions {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
}

.feed-container .card .interactions button {
   
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.feed-container .card .interactions .like {
    color: #333; /* Default color for the like button */
    transition: color 0.3s;
}

.feed-container .card .interactions .like.liked ion-icon {
    color: #28a745; /* Green color for the liked state */
}


.feed-container .card .interactions .like ion-icon {
    font-size: 24px;
    margin-right: 5px;
}

.feed-container .card .interactions .comment {
    background-color: #00FF00; /* Original background color */
    transition: background-color 0.3s, background-image 0.3s; /* Smooth transition effect */
}

.feed-container .card .interactions .comment:hover {
    background-image: linear-gradient(to right, #4caf50, #81c784); /* Green gradient */
    background-color: transparent; /* Ensure the solid color is overridden by the gradient */
    color: #fff; /* Change text color to white for better contrast on gradient */
}


.feed-container .card .interactions .share {
    background-color: #17a2b8;
}

.feed-container .card .interactions .share:hover {
    background-color: #117a8b;
}
/* CSS for Comment Input Text Box and Send Icon ************************************************************/

/* Responsive Styles */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it is above other content */
}

.fullscreen img, .fullscreen video {
    max-width: 90%; /* Allow the media to be responsive */
    max-height: 90%; /* Keep the media within the viewport */
    object-fit: contain; /* Maintain aspect ratio */
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1001; /* Ensure the close button is above the media */
}

/* For mobile devices (portrait and landscape) - All mobile sizes */
@media (max-width: 768px) {
    body {
        margin-top: 0;
        overflow-x: hidden;
        background-color: rgba(150, 222, 234);
        background-attachment: fixed;
    }

    .feed-container {
        display: block;
        margin: 0;
        padding: 0;
        overflow: visible;
        scroll-behavior: smooth;
        background: transparent;
    }

    .feed-container .card {
        width: 100%;
        min-height: 100vh;
        max-height: 100vh;
        margin: 0 auto 10px auto;
        border-radius: 20;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        background-color: rgba(255, 255, 255, 0.95);
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
    }

    .feed-container .card .profile {
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        z-index: 1;
        display: flex;
        align-items: center;
        padding: 10px 15px;
        pointer-events: auto;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
        backdrop-filter: blur(15px);
        border-radius: 50px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .feed-container .card .profile .avatar {
        width: 45px;
        height: 45px;
        margin-right: 12px;
        border-radius: 50%;
        cursor: pointer;
        transition: transform 0.3s ease;
        border: 3px solid #fff;
        object-fit: cover;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .feed-container .card .profile .avatar:hover {
        transform: scale(1.05);
    }

    .feed-container .card .profile a {
        display: inline-block;
        text-decoration: none;
        color: inherit;
    }

    .feed-container .card .profile .username {
        color: #333 !important;
        font-weight: 700;
        font-size: 16px;
        margin: 0;
        text-decoration: none;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .feed-container .card .media {
        width: 100%;
        height: calc(100vh - 230px);
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: transparent;
        position: absolute;
        top: 75px;
        bottom: 160px;
        left: 0;
        right: 0;
        z-index: 1;
    }

    .feed-container .card .media video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        z-index: 1;
        pointer-events: auto;
        background-color: transparent;
    }

    .feed-container .card .media video::-webkit-media-controls {
        z-index: 1000;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .feed-container .card .media video::-webkit-media-controls-panel {
        background: rgba(0, 0, 0, 0.75) !important;
        display: flex !important;
    }

    .feed-container .card .media video::-webkit-media-controls-play-button,
    .feed-container .card .media video::-webkit-media-controls-mute-button,
    .feed-container .card .media video::-webkit-media-controls-volume-slider,
    .feed-container .card .media video::-webkit-media-controls-timeline {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .feed-container .card .media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        pointer-events: auto;
        background-color: transparent;
    }

    .feed-container .card .media-comments-container {
        width: 100%;
        height: calc(100vh - 180px);
        top: 50px;
        bottom: 130px;
        left: 0;
        right: 0;
        z-index: 1;
    }

    .feed-container .card .interactions {
        display: none;
    }

    .feed-container .card .interactions button {
        background: transparent !important;
        backdrop-filter: none;
        border: none !important;
        border-radius: 0;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        transition: all 0.3s ease;
        cursor: pointer;
        pointer-events: auto;
        box-shadow: none;
    }

    .feed-container .card .interactions button:hover {
        transform: scale(1.1);
    }

    /* Transparent Neon Glow Effect for Like Button */
    .feed-container .card .interactions .like-btn {
        position: relative;
        background: rgba(0, 255, 0, 0.1) !important;
        backdrop-filter: blur(10px);
        border-radius: 50px;
        padding: 8px 16px;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.4),
                    0 0 40px rgba(0, 255, 0, 0.2),
                    inset 0 0 20px rgba(0, 255, 0, 0.1);
        border: 1px solid rgba(0, 255, 0, 0.3);
    }

    .feed-container .card .interactions .like-btn:hover {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.6),
                    0 0 50px rgba(0, 255, 0, 0.3),
                    inset 0 0 25px rgba(0, 255, 0, 0.15);
    }

    /* Transparent Neon Glow Effect for Share Button */
    .feed-container .card .interactions .share-btn {
        position: relative;
        background: rgba(0, 150, 255, 0.1) !important;
        backdrop-filter: blur(10px);
        border-radius: 50px;
        padding: 8px 16px;
        box-shadow: 0 0 20px rgba(0, 150, 255, 0.4),
                    0 0 40px rgba(0, 150, 255, 0.2),
                    inset 0 0 20px rgba(0, 150, 255, 0.1);
        border: 1px solid rgba(0, 150, 255, 0.3);
    }

    .feed-container .card .interactions .share-btn:hover {
        box-shadow: 0 0 30px rgba(0, 150, 255, 0.6),
                    0 0 50px rgba(0, 150, 255, 0.3),
                    inset 0 0 25px rgba(0, 150, 255, 0.15);
    }

    /* Transparent Neon Glow Effect for Comment Button */
    .feed-container .card .interactions .comment-btn {
        position: relative;
        background: rgba(255, 100, 255, 0.1) !important;
        backdrop-filter: blur(10px);
        border-radius: 50px;
        padding: 8px 16px;
        box-shadow: 0 0 20px rgba(255, 100, 255, 0.4),
                    0 0 40px rgba(255, 100, 255, 0.2),
                    inset 0 0 20px rgba(255, 100, 255, 0.1);
        border: 1px solid rgba(255, 100, 255, 0.3);
    }

    .feed-container .card .interactions .comment-btn:hover {
        box-shadow: 0 0 30px rgba(255, 100, 255, 0.6),
                    0 0 50px rgba(255, 100, 255, 0.3),
                    inset 0 0 25px rgba(255, 100, 255, 0.15);
    }

    .feed-container .card .interactions .like-btn i {
        font-size: 32px;
        color: #333333 !important;
        pointer-events: none;
        filter: none;
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.3),
                     0 0 20px rgba(0, 255, 0, 0.2);
    }

    .feed-container .card .interactions .like-btn .liked,
    .feed-container .card .interactions .like-btn i.liked {
        color: #00FF00 !important;
        font-size: 32px !important;
        text-shadow: 0 0 15px rgba(0, 255, 0, 0.6),
                     0 0 30px rgba(0, 255, 0, 0.4),
                     0 0 45px rgba(0, 255, 0, 0.2);
    }

    .feed-container .card .interactions .share-btn i {
        font-size: 32px;
        color: #333333 !important;
        pointer-events: none;
        text-shadow: 0 0 10px rgba(0, 150, 255, 0.3),
                     0 0 20px rgba(0, 150, 255, 0.2);
    }

    .feed-container .card .interactions .comment-btn i {
        font-size: 32px;
        color: #333333 !important;
        pointer-events: none;
        text-shadow: 0 0 10px rgba(255, 100, 255, 0.3),
                     0 0 20px rgba(255, 100, 255, 0.2);
    }

    /* Ensure all buttons are visible with white icons */
    .feed-container .card .interactions .share-btn,
    .feed-container .card .interactions .comment-btn {
        display: flex !important;
        visibility: visible !important;
    }

    .feed-container .card .interactions .share-btn i,
    .feed-container .card .interactions .comment-btn i {
        color: #333333 !important;
        display: block !important;
        filter: none !important;
        font-size: 32px !important;
    }

    /* Like button icon styling */
    .feed-container .card .interactions .like-btn i.fa-solid {
        color: #333333 !important;
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.3),
                     0 0 20px rgba(0, 255, 0, 0.2);
    }

    /* Share and Comment buttons have dark icons */
    .feed-container .card .interactions .share-btn i.fa-share,
    .feed-container .card .interactions .share-btn i.fa-solid {
        color: #333333 !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        text-shadow: 0 0 10px rgba(0, 150, 255, 0.3),
                     0 0 20px rgba(0, 150, 255, 0.2);
    }

    .feed-container .card .interactions .comment-btn i.fa-pen-to-square,
    .feed-container .card .interactions .comment-btn i.fa-solid {
        color: #333333 !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        text-shadow: 0 0 10px rgba(255, 100, 255, 0.3),
                     0 0 20px rgba(255, 100, 255, 0.2);
    }

    /* Make sure share and comment icons have glow effects */
    .feed-container .card .interactions button.share-btn i {
        color: #333333 !important;
        text-shadow: 0 0 10px rgba(0, 150, 255, 0.3),
                     0 0 20px rgba(0, 150, 255, 0.2);
    }

    .feed-container .card .interactions button.comment-btn i {
        color: #333333 !important;
        text-shadow: 0 0 10px rgba(255, 100, 255, 0.3),
                     0 0 20px rgba(255, 100, 255, 0.2);
    }

    .feed-container .card .details {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
        backdrop-filter: blur(10px);
        padding: 15px 20px 60px 20px;
        z-index: 1;
        pointer-events: none;
        min-height: 150px;
        max-height: 180px;
        display: block;
    }

    .feed-container .card .details * {
        pointer-events: auto;
    }

    .feed-container .card .details .like-count {
        color: #333333;
        font-weight: 700;
        margin-bottom: 8px;
        font-size: 15px;
        display: block;
    }

    .feed-container .card .details .text-description {
        color: #333333;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .feed-container .card .details .text-date {
        color: #666666;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Instagram-style smooth scrolling */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .feed-container .card {
        scroll-snap-align: start;
    }

    /* Add smooth snap scrolling effect */
    @supports (-webkit-overflow-scrolling: touch) {
        .feed-container {
            -webkit-overflow-scrolling: touch;
        }
    }

    /* Ensure buttons are always visible */
    .feed-container .card .interactions {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .feed-container .card .interactions button {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }

    /* Make sure all icons inside buttons are visible */
    .feed-container .card .interactions button i {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 32px !important;
    }

    /* Share and Comment button icons are BLACK */
    .feed-container .card .interactions .share-btn i.fa,
    .feed-container .card .interactions .share-btn i.fa-solid,
    .feed-container .card .interactions .comment-btn i.fa,
    .feed-container .card .interactions .comment-btn i.fa-solid {
        color: #000000 !important;
        font-size: 32px !important;
    }

    /* Ensure video controls are always accessible */
    .feed-container .card .media video::-webkit-media-controls-panel {
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 9999;
    }

    .feed-container .card .media video::-webkit-media-controls-play-button {
        z-index: 9999;
    }

    .feed-container .card .media video::-webkit-media-controls-volume-slider {
        z-index: 9999;
    }

    /* Instagram-style Comment Section for Mobile */
    .comment-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0);
        z-index: 10000;
        display: none;
        align-items: flex-end;
        justify-content: center;
        transition: background-color 0.3s ease-out;
    }

    .comment-modal.active {
        display: flex;
        background-color: rgba(0, 0, 0, 0.5);
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .comment-modal-content {
        display: flex;
        flex-direction: column;
        height: 85vh;
        max-height: 85vh;
        width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        position: relative;
        overflow: hidden;
        background-color: #fff;
        animation: slideUp 0.3s ease-out;
    }

    /* Instagram-style Header */
    .comment-modal-content .comment-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        border-bottom: 1px solid #efefef;
        position: relative;
        background-color: #fff;
        flex-shrink: 0;
    }

    .comment-modal-content h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #262626;
        text-align: center;
        flex: 1;
        padding-bottom: 0;
        border-bottom: none;
    }

    .close {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: #262626;
        font-weight: normal;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 10;
    }

    /* Instagram-style Comments List */
    .comments-list {
        flex: 1;
        overflow-y: auto;
        padding: 12px 16px;
        margin-bottom: 0;
        background-color: #fff;
        -webkit-overflow-scrolling: touch;
    }

    /* Instagram-style Comment Item */
    .comment-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 16px;
        padding: 0;
        background-color: transparent;
    }

    .comment-item:hover {
        background-color: transparent;
    }

    .comment-item img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        margin-right: 12px;
        object-fit: cover;
        flex-shrink: 0;
        border: 1px solid #dbdbdb;
    }

    .comment-item > div {
        flex: 1;
        min-width: 0;
    }

    .comment-item p {
        margin: 0 0 4px 0;
        line-height: 1.4;
        font-size: 14px;
        color: #262626;
    }

    .comment-item strong {
        color: #262626;
        font-weight: 600;
        margin-right: 4px;
    }

    .comment-date {
        font-size: 12px;
        color: #8e8e8e;
        margin-top: 4px;
    }

    /* Instagram-style Options */
    .options-container {
        margin-left: auto;
    }

    .options-container i {
        color: #262626;
        font-size: 16px;
    }

    .options-dropdown {
        background-color: #fff;
        border: 1px solid #dbdbdb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 8px 0;
        right: 0;
        top: 100%;
        min-width: 160px;
        margin-top: 8px;
    }

    .options-dropdown button {
        padding: 12px 16px;
        font-size: 14px;
        color: #262626;
        text-align: left;
    }

    .options-dropdown button:first-child {
        border-bottom: 1px solid #dbdbdb;
    }

    /* Instagram-style Comment Form */
    .comment-form {
        padding: 12px 16px;
        border-top: 1px solid #efefef;
        background-color: #fff;
        flex-shrink: 0;
    }

    .input-container {
        flex-direction: row;
        width: 100%;
        align-items: center;
        gap: 8px;
    }

    /* User Avatar in Comment Input - Mobile Instagram Style */
    .comment-user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
        border: 1px solid #dbdbdb;
    }

    .input-container input[type="text"] {
        flex: 1;
        padding: 12px 16px;
        border: 1px solid #dbdbdb;
        border-radius: 22px;
        font-size: 14px;
        background-color: #fff;
        outline: none;
        color: #262626;
    }

    .input-container input[type="text"]:focus {
        border-color: #a8a8a8;
        background-color: #fff;
    }

    .input-container input[type="text"]::placeholder {
        color: #8e8e8e;
    }

    .input-container button {
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #0095f6;
        border: none;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background-color 0.2s;
    }

    .input-container button:hover,
    .input-container button:active {
        background-color: #1877f2;
    }

    .input-container button ion-icon {
        font-size: 20px;
    }


    .send-icon {
        font-size: 20px;
        margin-left: 0;
    }

    .send-icon ion-icon {
        font-size: 20px;
    }

    /* Ensure comment modal takes full screen on very small devices */
    @media (max-height: 600px) {
        .comment-modal {
            height: 90vh;
            max-height: 90vh;
        }
    }
}

/* For desktops and larger screens */
@media (min-width: 769px) {
    .feed-container .card {
        width: 80%;
        margin-bottom: 20px;
    }

    .feed-container .card .media {
        height: 300px;
    }

    .feed-container .card .details .text-description {
        font-size: 14px;
    }

    .feed-container .card .details .text-date {
        font-size: 12px;
    }

    .feed-container .card .interactions button {
        font-size: 14px;
        padding: 8px 15px;
    }

    .feed-container .card .interactions .like ion-icon {
        font-size: 24px;
    }

    .feed-container .card .interactions .comment {
        font-size: 14px;
    }

    .feed-container .card .interactions .share {
        font-size: 14px;
    }



    .input-container {
        width: 100%;
    }


    .send-icon {
        font-size: 24px;
    }

    .send-icon ion-icon {
        font-size: 24px;
    }

    /* Z-index for mobile bottom navigation (home and grid buttons) - Always on top */
    .mobile-bottom-navigation {
        z-index: 99999 !important;
        position: fixed !important;
        pointer-events: auto !important;
        isolation: isolate;
    }

    /* Ensure all card content is below navigation - max z-index of 100 */
    .feed-container .card .profile {
        z-index: 1 !important;
    }

    .feed-container .card .media {
        z-index: 1 !important;
    }

    .feed-container .card .details {
        z-index: 1 !important;
    }

    .feed-container .card .interactions,
    .feed-container .card .interactions * {
        z-index: 1 !important;
    }

    /* Video controls stay functional but below navigation */
    .feed-container .card .media video::-webkit-media-controls {
        z-index: 100 !important;
    }

    /* Ensure feed container itself doesn't interfere */
    .feed-container {
        position: relative;
        z-index: 1;
    }

    .mobile-bottom-navigation .action-btn,
    .mobile-bottom-navigation .action-bn {
        position: relative !important;
        z-index: 99999 !important;
    }

    /* Ensure home and grid button icons are always visible */
    .mobile-bottom-navigation .action-btn img,
    .mobile-bottom-navigation .action-btn ion-icon {
        position: relative;
        z-index: 99999 !important;
        pointer-events: auto !important;
    }

    /* Ensure links inside navigation are also on top */
    .mobile-bottom-navigation a {
        position: relative;
        z-index: 99999 !important;
        pointer-events: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-bottom-navigation a .action-btn {
        z-index: 99999 !important;
        pointer-events: auto !important;
    }

}

