.feed-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

.post-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
    position: relative;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.post-admin-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.post-card:hover .post-admin-actions {
    opacity: 1;
}

.admin-action-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s;
}

.admin-action-btn:hover {
    background: #f5f5f5;
}

.admin-action-btn.delete {
    color: #d9534f;
    border-color: #d9534f;
}

.admin-action-btn.delete:hover {
    background: #d9534f;
    color: white;
}

.post-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f9f9f9;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    margin-right: 12px;
}

.post-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Source Serif Pro', serif;
}

.post-info span {
    font-size: 0.8rem;
    color: #999;
    display: block;
}

.post-content {
    padding: 20px;
}

.post-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: normal;
}

.read-more-btn {
    color: #65676b;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    font-size: 0.95em;
    border: none;
    background: none;
    padding: 0;
    font-family: 'Source Serif Pro', serif;
    transition: color 0.2s;
}

.read-more-btn:hover {
    color: #1a1a1a;
}

.post-image {
    width: 100%;
    display: block;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}

.post-actions {
    padding: 10px 20px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    gap: 20px;
    color: #666;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.action-btn:hover {
    color: #1a1a1a;
}

.action-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-icon-container {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.like-icon-container svg {
    position: absolute;
    transition: all 0.2s ease;
}

.like-btn .like-filled {
    opacity: 0;
    transform: scale(0.5);
    fill: #1a1a1a;
    stroke: none;
}

.like-btn .like-outline {
    opacity: 1;
    transform: scale(1);
}

.like-btn.liked .like-filled {
    opacity: 1;
    transform: scale(1);
}

.like-btn.liked .like-outline {
    opacity: 0;
    transform: scale(0.5);
}

.like-btn.guest-mode {
    opacity: 0.6;
}

.like-btn.guest-mode:hover {
    color: #666;
    /* Prevent hover color change */
}


.reference-link-btn {
    display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #ddd;
    margin-top: 15px;
    margin-bottom: 5px;
}

.reference-link-btn:hover {
    background: #e5e5e5;
    border-color: #ccc;
}

.comments-section {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eef0f2;
    margin-top: 15px;
    border-radius: 0 0 8px 8px;
    animation: fadeIn 0.4s ease-out;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.comment-item {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
    animation: slideIn 0.3s ease-out;
}

.comment-item:last-child {
    margin-bottom: 12px;
}

.comment-avatar {
    flex-shrink: 0;
    margin-right: 14px;
}

.comment-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #fff;
}

.comment-content-wrapper {
    flex-grow: 1;
    background: #ffffff;
    padding: 12px 16px;
    padding-right: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    position: relative;
    max-width: 90%;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.comment-user {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    font-family: 'Source Serif Pro', serif;
    letter-spacing: -0.01em;
}

.verified-badge {
    width: 14px;
    height: 14px;
    fill: #1a1a1a;
    display: inline-block;
}

.comment-date {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #2c2c2c;
    word-break: break-word;
}

.comment-input-area {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef0f2;
    gap: 12px;
    position: relative;
}

.comment-input {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 12px 20px;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.comment-input:focus {
    border-color: #1a1a1a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

.comment-input::placeholder {
    color: #aaa;
}

.send-comment-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px;
    transition: transform 0.1s ease, background 0.2s;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.send-comment-btn:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.send-comment-btn:active {
    transform: translateY(0);
}

.loading-comments,
.no-comments,
.error-comments {
    text-align: center;
    padding: 30px;
    color: #777;
    font-family: 'Source Serif Pro', serif;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-menu {
    position: absolute;
    top: 12px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
}

.comment-content-wrapper:hover .comment-menu,
.comment-menu-dropdown.active {
    opacity: 1;
}

.comment-menu-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #65676b;
    padding: 0 4px;
    line-height: 1;
}

.comment-menu-trigger:hover {
    color: #1a1a1a;
}

.comment-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    min-width: 100px;
    overflow: hidden;
}

.comment-menu-dropdown.active {
    display: block;
    animation: fadeIn 0.1s ease;
}

.comment-menu-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    color: #333;
    transition: background 0.1s;
}

.comment-menu-dropdown button:hover {
    background: #f5f5f5;
}

.comment-menu-dropdown button.delete-btn {
    color: #dc3545;
}

.comment-menu-dropdown button.delete-btn:hover {
    background: #fff5f5;
}

.edited-label {
    font-size: 0.7rem;
    color: #999;
    font-style: italic;
    margin-left: 4px;
}

.edit-comment-area {
    margin-top: 4px;
}

.edit-comment-input {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 8px;
    outline: none;
}

.edit-comment-input:focus {
    border-color: #1a1a1a;
}

.edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.edit-actions button {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
}

.edit-actions button.save-btn {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.edit-actions button:hover {
    opacity: 0.9;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirmation-modal {
    background: #fff;
    padding: 24px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.modal-overlay.active .confirmation-modal {
    transform: scale(1);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-family: 'Source Serif Pro', serif;
}

.modal-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.1s;
}

.modal-btn:hover {
    transform: translateY(-2px);
}

.modal-btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.modal-btn-confirm {
    background: #dc3545;
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.post-carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 0px;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f8f8;
}

.post-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    aspect-ratio: 4/3;
    scrollbar-width: none;
}

.post-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.post-carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.post-single-image-43 {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0px;
    display: block;
}