/* Enhanced Modal Styles for Comments and Reactions */

/* Modal improvements */
.modal-content {
    max-width: 1000px !important;
    width: 95vw !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.modal-header {
    padding: 1.5rem !important;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
}

.modal-close {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    width: 40px !important;
    height: 40px !important;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    transform: scale(1.1) !important;
}

.modal-image-section {
    flex: 1.2 !important;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
}

.modal-image {
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.modal-sidebar {
    width: 400px !important;
}

.modal-post-header {
    padding: 1.5rem !important;
    gap: 1rem !important;
    background: #fafafa !important;
}

.modal-post-content {
    padding: 1.5rem !important;
}

/* Enhanced Reactions */
.modal-reactions {
    padding: 1rem 1.5rem !important;
    background: #f8fafc !important;
    justify-content: center !important;
    gap: 0.75rem !important;
}

.reaction-btn {
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.reaction-btn:hover {
    transform: scale(1.2) !important;
    border-color: #ff6b6b !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3) !important;
}

.reaction-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ff5252) !important;
    border-color: #ff6b6b !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
}

.reaction-btn.active:hover {
    transform: scale(1.3) !important;
}

.reaction-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #ff6b6b !important;
    color: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced Comments */
.modal-comments {
    padding: 1rem 1.5rem !important;
}

.comment-item {
    margin-bottom: 1.5rem !important;
    padding: 1rem !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border-left: 4px solid #ff6b6b !important;
    transition: all 0.2s ease !important;
}

.comment-item:hover {
    background: #f1f5f9 !important;
    transform: translateX(4px) !important;
}

.comment-author {
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.comment-author::before {
    content: "💬" !important;
    font-size: 0.8rem !important;
}

.comment-text {
    font-size: 0.9rem !important;
    color: #374151 !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
    padding-left: 1.5rem !important;
}

.comment-time {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
    font-style: italic !important;
    padding-left: 1.5rem !important;
}

/* Enhanced Comment Form */
.comment-form {
    padding: 1.5rem !important;
    border-top: 2px solid #e5e7eb !important;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
}

.comment-input-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.comment-input {
    padding: 1rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    background: white !important;
    transition: all 0.2s ease !important;
}

.comment-input:focus {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
    transform: translateY(-1px) !important;
}

.comment-input::placeholder {
    color: #9ca3af !important;
    font-style: italic !important;
}

.comment-submit-row {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 0.75rem !important;
}

.comment-submit {
    background: linear-gradient(135deg, #ff6b6b, #ff5252) !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 0.75rem 2rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3) !important;
    width: auto !important;
    height: auto !important;
}

.comment-submit:hover {
    background: linear-gradient(135deg, #ff5252, #ff4444) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
}

.comment-submit:active {
    transform: translateY(0) !important;
}

.comment-submit:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.comment-submit::before {
    content: "💌" !important;
    font-size: 1rem !important;
}

/* Empty state */
.comments-empty {
    text-align: center !important;
    padding: 3rem 1rem !important;
    color: #9ca3af !important;
}

.comments-empty::before {
    content: "💭" !important;
    font-size: 3rem !important;
    display: block !important;
    margin-bottom: 1rem !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .modal-body {
        flex-direction: column !important;
    }

    .modal-image-section {
        height: 60vh !important;
        flex: none !important;
    }

    .modal-sidebar {
        width: 100% !important;
        height: 40vh !important;
        flex: none !important;
    }

    .modal-comments {
        max-height: 200px !important;
    }
    
    .reaction-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
    
    .comment-input {
        padding: 0.75rem !important;
        font-size: 0.85rem !important;
    }
    
    .comment-submit {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.85rem !important;
    }
}