@import url('base.css');

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.post-content {
    white-space: pre-wrap;
    word-break: normal;
    overflow-wrap: anywhere;
}

.post-container {
    position: relative;
    z-index: 1;
}

.close-button {
    position: fixed;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.interaction-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    color: #6B7280;
    background-color: #E5E7EB;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
}

.interaction-button:hover:not(.active) {
    background-color: #DBEAFE;
    color: #3B82F6;
}

.interaction-button.active {
    background-color: #3B82F6;
    color: white;
}

.interaction-button.active .fa-thumbs-up,
.interaction-button.active .fa-thumbs-down {
    color: white; 
}

.interaction-button i {
    font-size: 1.125rem;
}

.comment-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-textarea {
    flex-grow: 1;
    resize: none;
    height: 2.5rem;
    overflow: hidden;
}

.comment-button {
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    background-color: #E0E7FF;
    color: #6366F1;
    pointer-events: none;
    opacity: 0.6;
}

.comment-button.active {
    background-color: #3B82F6;
    color: white;
    pointer-events: auto;
    opacity: 1;
}

.comment-button:hover:not(.active) {
    background-color: #BFDBFE; 
    color: #2563EB; 
}

.share-context-menu {
    position: absolute;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 12;
    min-width: 180px;
    right: 0; 
    top: 100%;
    transform: translateY(0.5rem);
}

.share-context-menu button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #374151;
}

.share-context-menu button:hover {
    background-color: #F3F4F6;
}

.modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #0000003b;
    backdrop-filter: blur(4px) brightness(0.9) contrast(1.1) saturate(1.2);
    animation: fadeIn 0.3s ease-out;
}

.modal.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-modal-content {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    position: relative;
    max-width: 700px;
    width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    animation: zoomIn 0.3s ease-out;
    margin: auto;
    display: flex;
    flex-direction: column;
}

#postModal {
    z-index: 10;
}

.post-close-button {
    position: fixed;
    top: 18px;
    right: 30px;
    color: #6B7280;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 11;
    transition: color 0.2s;
}

.post-close-button:hover {
    color: #2563EB;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease-out;
}

#replyModal {
	z-index: 150;
}

.reply-modal-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    position: relative;
    width: 90%;
    max-width: 500px;
	max-height: 70%;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out;
	overflow-y: auto;
}

.reply-modal-content .comment-input-container {
    margin-top: 1.5rem;
}

.reply-modal-content .close-button-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.2s;
}
.reply-modal-content .close-button-modal:hover {
    color: #4B5563;
}

.comment-profile-pic {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.comment-reply {
    margin-left: 3rem;
    border-left: 2px solid #E5E7EB;
    padding-left: 1rem;
    margin-top: 1rem;
}

.tilt-box {
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease;
    transition: transform 0.01s ease;
}

.tilt-box:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}