/* Modern Bible Plugin Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Amiri:wght@400;700&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --background-light: #ffffff;
    --background-gray: #f8fafc;
    --background-dark: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Base Styles */
.bible-content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    background: var(--background-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Modern Controls Container */
.bible-controls {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--background-gray) 0%, var(--background-dark) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

/* Modern Button Styles */
.bible-control-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.bible-control-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
}

.bible-control-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Selection Controls */
.bible-selection-controls {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--background-gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.bible-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.bible-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.bible-select:hover {
    border-color: var(--border-hover);
}

/* Verses Container */
.verses-text-container {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem; /* تم تغيير هذه القيمة من 1rem إلى 0.5rem */
}

/* Modern Verse Styling */
.verse-text {
    padding: 1.5rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    line-height: 1.8;
    font-family: 'Amiri', Georgia, serif;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
}

.verse-text:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.verse-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    background: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    margin-left: 0.75rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.verse-number:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}

.verse-reference-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.verse-reference-link:hover {
    color: var(--primary-color);
    background: var(--background-gray);
    text-decoration: none;
}

/* Chapter Navigation */
.chapter-navigation {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.chapter-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.chapter-navigation a:hover {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* Search Form */
.bible-search-form {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--background-gray) 0%, var(--background-dark) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.bible-search-controls {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.bible-search-input {
    flex: 1;
    min-width: 300px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.bible-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.bible-search-input::placeholder {
    color: var(--text-muted);
}

.bible-search-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent-color) 0%, #d97706 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.bible-search-button:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Search Results */
.bible-search-results {
    margin-top: 2rem;
}

.search-result-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.search-result-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: #92400e;
}

/* Status Messages */
.bible-loading-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--background-gray);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.bible-error-message {
    text-align: center;
    padding: 1.5rem;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.bible-select-prompt {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    background: var(--background-gray);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bible-content-area {
        max-width: 100%;
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .bible-content-area {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: var(--radius-md);
    }
    
    .bible-controls {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .bible-control-button {
        justify-content: center;
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .bible-selection-controls {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .bible-search-controls {
        flex-direction: column;
    }
    
    .bible-search-input {
        min-width: 100%;
    }
    
    .bible-search-button {
        width: 100%;
        padding: 1rem;
    }
    
    .chapter-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .chapter-navigation a {
        width: 100%;
        justify-content: center;
    }
    
    .verse-text {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .bible-content-area {
        margin: 0;
        border-radius: 0;
    }
    
    .verse-number {
        min-width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .bible-controls,
    .bible-selection-controls,
    .chapter-navigation,
    .bible-search-form {
        display: none;
    }
    
    .bible-content-area {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
    }
    
    .verse-text {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0.5rem 0;
        break-inside: avoid;
    }
    
    .verse-number {
        background: transparent;
        color: #000;
        box-shadow: none;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}