/* CSS para Compartilhamento Múltiplo de Versículos */

/* Controles de seleção */
.verse-selection-controls {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    position: sticky;
    top: 10px;
    z-index: 100;
}

.verse-selection-controls .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.verse-selection-controls .btn-primary {
    background-color: #007bff;
    color: white;
}

.verse-selection-controls .btn-primary:hover {
    background-color: #0056b3;
}

.verse-selection-controls .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.verse-selection-controls .btn-secondary:hover {
    background-color: #545b62;
}

.verse-selection-controls .btn-success {
    background-color: #28a745;
    color: white;
    font-weight: bold;
}

.verse-selection-controls .btn-success:hover {
    background-color: #1e7e34;
}

.verse-selection-controls .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.selected-count {
    background-color: #e9ecef;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    color: #495057;
}

/* Modificações nos versículos existentes */
.verse-item {
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.verse-item:hover {
    background-color: #f8f9fa;
}

.verse-item.selected {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.verse-checkbox {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    transform: scale(1.2);
    cursor: pointer;
    z-index: 10;
}

.verse-content {
    margin-left: 35px;
}

/* Modal de compartilhamento */
.share-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.share-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.share-modal-title {
    font-size: 1.5rem;
    color: #333;
}

.share-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.share-modal-close:hover {
    color: #000;
}

.share-format-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.share-format-option {
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.share-format-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.share-format-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.share-format-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.share-format-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.share-format-desc {
    font-size: 14px;
    color: #6c757d;
}

.share-preview-area {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    min-height: 200px;
}

.share-preview-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #495057;
}

.share-preview-content {
    white-space: pre-wrap;
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: #333;
}

.share-copy-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.share-copy-btn:hover {
    background-color: #138496;
}

.share-social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.share-social-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-social-btn.whatsapp { background-color: #25d366; }
.share-social-btn.telegram { background-color: #0088cc; }
.share-social-btn.facebook { background-color: #1877f2; }
.share-social-btn.twitter { background-color: #1da1f2; }

/* Responsividade */
@media (max-width: 768px) {
    .verse-selection-controls {
        flex-direction: column;
        align-items: stretch;
        position: relative;
        top: 0;
    }
    
    .verse-checkbox {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-bottom: 10px;
    }
    
    .verse-content {
        margin-left: 0;
    }
    
    .share-format-options {
        grid-template-columns: 1fr;
    }
}

/* Modo escuro (se o site já tiver) */
.dark-mode .verse-selection-controls {
    background: #2d3748;
    color: white;
}

.dark-mode .verse-item.selected {
    background-color: #2b6cb0;
    border-color: #3182ce;
}

.dark-mode .share-modal-content {
    background-color: #2d3748;
    color: white;
}

.dark-mode .share-preview-area {
    background-color: #4a5568;
    border-color: #718096;
}

.dark-mode .share-format-option {
    background-color: #4a5568;
    border-color: #718096;
    color: white;
}

.dark-mode .share-format-option:hover {
    border-color: #3182ce;
    background-color: #2b6cb0;
}


