/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* CSS para o menu do usuário */
.user-menu {
    position: relative;
}

.user-menu .sub-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    min-width: 200px;
    z-index: 1000;
}

.user-menu:hover .sub-menu {
    display: block;
}

.user-menu .sub-menu li {
    border-bottom: 1px solid #eee;
}

.user-menu .sub-menu li:last-child {
    border-bottom: none;
}

.user-menu .sub-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.user-menu .sub-menu a:hover {
    background: #f8f9fa;
}

/* Sistema de Anotações Bíblicas */
.bible-notes-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.notes-header {
    text-align: center;
    margin-bottom: 30px;
}

.notes-header h2 {
    color: #2e86c1;
    margin-bottom: 10px;
    font-size: 2rem;
}

.notes-header p {
    color: #666;
    font-size: 1.1rem;
}

.notes-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #2e86c1;
    color: white;
}

.btn-primary:hover {
    background: #1a5276;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: #c82333;
}

.search-box {
    flex: 1;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: #2e86c1;
    box-shadow: 0 0 0 2px rgba(46, 134, 193, 0.2);
}

.notes-editor {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    gap: 15px;
    flex-wrap: wrap;
}

.editor-header input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 200px;
}

.editor-header input:focus {
    outline: none;
    border-color: #2e86c1;
}

.editor-actions {
    display: flex;
    gap: 10px;
}

#noteContent {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: none;
    resize: vertical;
    font-size: 1rem;
    line-height: 1.6;
    font-family: inherit;
}

#noteContent:focus {
    outline: none;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 0.9rem;
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2e86c1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.note-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid #2e86c1;
    position: relative;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.note-card h3 {
    color: #2e86c1;
    margin-bottom: 10px;
    font-size: 1.2rem;
    padding-right: 30px;
}

.note-card p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.note-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-actions button {
    background: none;
    border: none;
    color: #2e86c1;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 0;
}

.note-actions button:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.bible-notes-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

.bible-notes-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bible-notes-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .bible-notes-container {
        padding: 15px;
    }
    
    .notes-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .editor-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .editor-actions {
        justify-content: center;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
    }
}