/* The Redemption Series - Custom Styles */

:root {
    --redemption-blue: #1e3a8a;
    --redemption-red: #dc2626;
    --redemption-gold: #d97706;
}

body {
    font-family: 'EB Garamond', serif;
}

/* Typography refinements */
.prose p {
    text-align: justify;
    hyphens: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--redemption-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Print styles */
@media print {
    header, nav, footer, button {
        display: none;
    }
    
    body {
        background: white;
    }
    
    article {
        box-shadow: none;
        border: none;
    }
}

/* Radio button styling */
input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--redemption-blue);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--redemption-blue);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Text input focus states */
input[type="text"]:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Book-like reading experience */
.prose {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section headers with decorative underline */
section h3 {
    position: relative;
    padding-bottom: 0.5rem;
}

section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--redemption-red), transparent);
}

/* Quiz feedback animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[x-transition] {
    animation: slideIn 0.3s ease-out;
}

/* Success/Error state styling */
.border-green-500 {
    animation: pulse 0.5s ease-out;
}

.border-red-500 {
    animation: shake 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prose {
        font-size: 1rem;
    }
    
    section h3 {
        font-size: 1.5rem;
    }
}