/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #faf5ff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.highlight {
    color: #2563eb;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    width: 2rem;
    height: 2rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.logo-text p {
    font-size: 0.875rem;
    color: #6b7280;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.header-badge i {
    color: #eab308;
    width: 1.25rem;
    height: 1.25rem;
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Question Form */
.question-form {
    max-width: 64rem;
    margin: 0 auto 2rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    position: relative;
    min-width: 300px;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 1.25rem;
    height: 1.25rem;
}

.question-input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    font-size: 1.125rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    transition: all 0.2s;
}

.question-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.submit-button:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Info Alert */
.info-alert {
    max-width: 64rem;
    margin: 0 auto;
    padding: 1rem;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e40af;
}

.info-alert i {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.info-alert p {
    font-size: 0.875rem;
}

/* Loading State */
.loading-state {
    max-width: 64rem;
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    margin-bottom: 1rem;
}

.spinner {
    width: 2rem;
    height: 2rem;
    color: #2563eb;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    max-width: 64rem;
    margin: 3rem auto;
}

.error-content {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.error-header i {
    width: 1.25rem;
    height: 1.25rem;
}

.error-header h3 {
    font-weight: 600;
}

.error-content p {
    color: #dc2626;
}

/* Answer Section */
.answer-section {
    max-width: 64rem;
    margin: 3rem auto;
}

.answer-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 2rem;
}

.answer-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.answer-icon {
    background: #dcfce7;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.answer-icon i {
    width: 1.25rem;
    height: 1.25rem;
    color: #16a34a;
}

.answer-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.answer-content {
    margin-bottom: 1.5rem;
}

.answer-text {
    color: #374151;
    line-height: 1.7;
    white-space: pre-line;
}

/* Verses Section */
.verses-section {
    margin-bottom: 1.5rem;
}

.verses-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.verses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.verse-card {
    background: #eff6ff;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #2563eb;
}

.verse-text {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.verse-reference {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563eb;
}

/* Analysis Section */
.analysis-section {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
}

.analysis-section h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.analysis-content {
    font-size: 0.75rem;
    color: #6b7280;
}

.analysis-item {
    margin-bottom: 0.25rem;
}

/* Suggestions Section */
.suggestions-section {
    max-width: 64rem;
    margin: 3rem auto;
}

.suggestions-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 1.5rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.suggestion-card {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.suggestion-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.suggestion-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.suggestion-icon {
    background: #dbeafe;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.suggestion-card:hover .suggestion-icon {
    background: #bfdbfe;
}

.suggestion-icon i {
    width: 1rem;
    height: 1rem;
    color: #2563eb;
}

.suggestion-text {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* About Section */
.about-section {
    max-width: 64rem;
    margin: 3rem auto;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    text-align: center;
}

.about-icon {
    background: #dbeafe;
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.about-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
}

.about-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.about-card p {
    color: #6b7280;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-icon {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.footer-icon i {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-logo h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.heart-icon {
    color: #ef4444;
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .input-wrapper {
        min-width: auto;
    }
    
    .submit-button {
        justify-content: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .answer-card {
        padding: 1.5rem;
    }
    
    .footer-logo {
        flex-direction: column;
        gap: 0.5rem;
    }
}
