/* Base styles */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --primary-color-rgb: 99, 102, 241;
    --text-color: #1e293b;
    --text-light: #64748b;
    --background-color: #f8fafc;
    --card-color: #ffffff;
    --accent-color: #f59e0b;
    --border-radius: 16px;
    --shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* Dark theme variables */
.dark-theme {
    --primary-color: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #c7d2fe;
    --primary-color-rgb: 129, 140, 248;
    --text-color: #f1f5f9;
    --text-light: #cbd5e1;
    --background-color: #0f172a;
    --card-color: #1e293b;
    --shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color var(--transition-speed) ease, 
                color var(--transition-speed) ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(135deg, var(--primary-light) 0%, var(--background-color) 100%);
    background-attachment: fixed;
}

.page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Header styles */
header {
    margin-bottom: 30px;
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
    font-size: 3rem;
    color: var(--primary-color);
}

h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.subtitle {
    font-style: italic;
    color: var(--text-light);
    font-family: 'Playfair Display', serif;
}

/* Card Container */
.card-container {
    padding: 1.5rem;
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    position: relative;
    min-height: 250px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Verse container */
.verse-content {
    position: relative;
    padding: 1.5rem 0;
}

blockquote {
    font-size: 1.3rem;
    margin: 1.5rem 0;
    padding: 0.5rem 1.5rem;
    border-left: 4px solid var(--accent-color);
    text-align: left;
    font-family: 'Playfair Display', serif;
    line-height: 1.8;
}

#verse-reference {
    font-weight: bold;
    font-style: italic;
    margin-top: 15px;
    color: var(--primary-color);
    text-align: right;
    font-size: 1.1rem;
}

.quote-icon {
    color: var(--primary-light);
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 10px;
}

.daily-note {
    font-size: 0.875rem;
    margin-top: 30px;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.action-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.action-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary-button {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

.secondary-button:hover {
    background-color: var(--primary-light);
    color: var(--background-color);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-color);
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideInFromTop 0.3s ease;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 70vh;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal:hover {
    color: var(--primary-color);
}

.chapter-verses {
    line-height: 1.8;
}

.chapter-verse {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    text-indent: 0;
}

.verse-number {
    font-weight: bold;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    min-width: 25px;
    text-align: right;
}

.verse-text {
    display: inline-block;
    width: calc(100% - 25px);
}

.highlight-verse {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 4px;
}

.pulse-highlight {
    animation: pulse-verse 1.5s ease;
}

@keyframes pulse-verse {
    0% { background-color: rgba(var(--primary-color-rgb), 0.1); }
    50% { background-color: rgba(var(--primary-color-rgb), 0.3); }
    100% { background-color: rgba(var(--primary-color-rgb), 0.1); }
}

@keyframes slideInFromTop {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading spinner */
.loading-spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    margin-top: 30px;
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-toggle {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    transition: background-color 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--primary-light);
}

/* Animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s 0.3s forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s 0.2s forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    blockquote {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    
    .card-container {
        padding: 1rem;
    }
}