/* Custom Styles for Jesus for Nones */

/* CSS Custom Properties */
:root {
    --primary-blue: 29 78 216; /* blue-700 */
    --primary-blue-light: 59 130 246; /* blue-500 */
    --primary-blue-dark: 30 58 138; /* blue-800 */
    --secondary-gray: 75 85 99; /* gray-600 */
    --background-light: 249 250 251; /* gray-50 */
    --border-gray: 229 231 235; /* gray-200 */
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Navigation Styles */
.nav-link {
    color: rgb(var(--secondary-gray));
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: rgb(var(--primary-blue));
}

/* Button Styles */
.btn-primary {
    background-color: rgb(var(--primary-blue));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: rgb(var(--primary-blue-dark));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-blue), 0.3);
}

.btn-primary:disabled {
    background-color: rgb(156 163 175); /* gray-400 */
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: white;
    color: rgb(var(--secondary-gray));
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgb(var(--border-gray));
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: rgb(var(--background-light));
    border-color: rgb(var(--primary-blue));
    color: rgb(var(--primary-blue));
    transform: translateY(-1px);
}

.btn-secondary:disabled {
    background-color: rgb(243 244 246); /* gray-100 */
    color: rgb(156 163 175); /* gray-400 */
    cursor: not-allowed;
    transform: none;
}

/* Book Cover Animation */
.book-cover-container {
    perspective: 1000px;
}

.book-cover-container img {
    transition: transform 0.3s ease;
}

.book-cover-container:hover img {
    transform: rotateY(-5deg) rotateX(2deg);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgb(var(--border-gray));
}

.modal-body {
    padding: 2rem;
}

/* Quiz Styles */
.quiz-section {
    min-height: 400px;
}

.question-card {
    background-color: rgb(var(--background-light));
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.question-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(31 41 55); /* gray-800 */
    margin-bottom: 1rem;
}

.answer-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 2px solid rgb(var(--border-gray));
    border-radius: 0.5rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.answer-option:hover {
    border-color: rgb(var(--primary-blue-light));
    background-color: rgb(239 246 255); /* blue-50 */
}

.answer-option.selected {
    border-color: rgb(var(--primary-blue));
    background-color: rgb(219 234 254); /* blue-100 */
    color: rgb(var(--primary-blue-dark));
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(var(--border-gray));
}

.quiz-progress {
    font-weight: 600;
    color: rgb(var(--secondary-gray));
}

/* Result Styles */
.result-card {
    background: linear-gradient(135deg, rgb(239 246 255), rgb(219 234 254));
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.result-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(var(--primary-blue-dark));
    margin-bottom: 1rem;
}

.result-description {
    color: rgb(var(--secondary-gray));
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.resource-list {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgb(var(--border-gray));
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgb(239 246 255);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Form Styles */
input[type="text"],
input[type="email"],
select,
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-blue), 0.1);
}

/* Contact Form Enhancements */
.contact-info-card {
    background: linear-gradient(135deg, rgb(239 246 255), white);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quiz-navigation > div {
        order: -1;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid rgb(var(--primary-blue));
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Better Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgb(var(--primary-blue));
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .modal,
    nav,
    footer,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
}
