/* Resume Post Nimbus - Frontend Styles */

/* Resumo base */
.rpn-summary {
    position: relative;
    margin: 30px auto 40px auto;
    transition: all 0.3s ease;
}

/* Resumo retrátil */
.rpn-collapsible h3 {
    cursor: pointer;
    user-select: none;
    position: relative;
    text-align: justify;
    padding-right: 30px;
    font-weight: bold;

}

.rpn-toggle-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.rpn-collapsible .rpn-summary-content {
    margin-top: 15px;
    text-align: justify;
}

/* Tópicos */
.rpn-topics .topicText {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.rpn-topics .topicText:before {
    content: "•";
    position: absolute;
    left: 0;
    color: inherit;
    font-size: 1.2em;
}

/* Rodapé do resumo */
.rpn-summary-footer {
    margin-top: 15px;
    padding-top: 10px;
    font-size: 0.85em;
    opacity: 0.7;
    text-align: center;
}

.rpn-summary-footer .dashicons {
    font-size: 14px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Drag and Drop */
.rpn-draggable {
    position: relative !important;
}

.rpn-drag-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.rpn-summary:hover .rpn-drag-indicator {
    opacity: 1;
}

.rpn-drag-indicator:hover {
    background: #f0f0f0;
    border-color: #999;
}

.rpn-drag-indicator .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #666;
}

.rpn-dragging {
    opacity: 0.8 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
    transform: rotate(2deg);
}

/* Drop Zones */
.rpn-drop-zone {
    min-height: 60px;
    margin: 20px 0;
    border: 2px dashed transparent;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.rpn-drop-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.rpn-drop-zone:hover .rpn-drop-indicator {
    opacity: 1;
}

.rpn-drop-hover {
    border-color: #3498db !important;
    background: rgba(52, 152, 219, 0.1) !important;
}

.rpn-drop-hover .rpn-drop-indicator {
    opacity: 1 !important;
    color: #3498db !important;
    font-weight: bold;
}

/* Botão de reset */
.rpn-reset-position {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpn-summary:hover .rpn-reset-position {
    opacity: 0.7;
}

.rpn-reset-position:hover {
    opacity: 1 !important;
    background: #f0f0f0;
    transform: rotate(180deg);
}

/* Responsivo */
@media (max-width: 768px) {
    .rpn-drag-indicator,
    .rpn-reset-position {
        opacity: 0.5;
    }
    
    .rpn-summary {
        width: 95% !important;
    }
}

/* Animações */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.rpn-summary {
    animation: fadeInScale 0.5s ease-out;
}

/* Compatibilidade com temas */
.entry-content .rpn-summary,
.post-content .rpn-summary,
article .content .rpn-summary {
    clear: both;
}