/* Post Modal */
.post-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    animation: fadeIn 0.2s ease;
    padding: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.post-modal-content {
    background: #1f2329;
    border: 1px solid #3a3f47;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #3a3f47;
}

.post-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #d1d2d3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.post-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.post-modal-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.post-modal-title {
    color: #d1d2d3;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-full-content {
    color: #d1d2d3;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 1rem;
}

.post-modal-image {
    width: 100%;
    border-radius: 12px;
    margin-top: 0.75rem;
}

.post-modal-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #3a3f47;
}

.post-modal-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #3a3f47;
    background: #1a1d21;
    position: relative;
}

.post-modal-footer .post-reactions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.post-modal-content .reaction-picker {
    position: absolute;
    bottom: 60px;
    left: 1rem;
    z-index: 100000;
}

/* Scrollbar for modal */
.post-modal-body::-webkit-scrollbar {
    width: 8px;
}

.post-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.post-modal-body::-webkit-scrollbar-thumb {
    background: rgba(18, 100, 163, 0.5);
    border-radius: 4px;
}

.post-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(18, 100, 163, 0.7);
}