/**
 * Religion-Specific Themes
 * Custom styling for each religion's confession interface
 */

/* Christianity Theme */
.theme-christianity {
    --primary-color: #8B4513;
    --secondary-color: #DAA520;
    --accent-color: #F5DEB3;
    --text-color: #2F1B14;
    --bg-gradient: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(218, 165, 32, 0.8));
    --card-bg: rgba(245, 222, 179, 0.95);
}

.theme-christianity .hero {
    background: var(--bg-gradient);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 248, 220, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(218, 165, 32, 0.1) 0%, transparent 50%);
}

.theme-christianity .card {
    background: var(--card-bg);
    border: 2px solid rgba(139, 69, 19, 0.2);
    color: var(--text-color);
}

.theme-christianity .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
}

.theme-christianity .form-input:focus, .theme-christianity .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Judaism Theme */
.theme-judaism {
    --primary-color: #0F4C81;
    --secondary-color: #1E90FF;
    --accent-color: #E6F3FF;
    --text-color: #0A3A66;
    --bg-gradient: linear-gradient(135deg, rgba(15, 76, 129, 0.9), rgba(30, 144, 255, 0.8));
    --card-bg: rgba(230, 243, 255, 0.95);
}

.theme-judaism .hero {
    background: var(--bg-gradient);
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(30, 144, 255, 0.2) 0%, transparent 50%);
}

.theme-judaism .card {
    background: var(--card-bg);
    border: 2px solid rgba(15, 76, 129, 0.2);
    color: var(--text-color);
}

.theme-judaism .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(15, 76, 129, 0.4);
}

.theme-judaism .form-input:focus, .theme-judaism .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

/* Islam Theme */
.theme-islam {
    --primary-color: #006A4E;
    --secondary-color: #228B22;
    --accent-color: #E8F5E8;
    --text-color: #004D35;
    --bg-gradient: linear-gradient(135deg, rgba(0, 106, 78, 0.9), rgba(34, 139, 34, 0.8));
    --card-bg: rgba(232, 245, 232, 0.95);
}

.theme-islam .hero {
    background: var(--bg-gradient);
    background-image: 
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(34, 139, 34, 0.2) 0%, transparent 50%);
}

.theme-islam .card {
    background: var(--card-bg);
    border: 2px solid rgba(0, 106, 78, 0.2);
    color: var(--text-color);
}

.theme-islam .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.4);
}

.theme-islam .form-input:focus, .theme-islam .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.1);
}

/* Buddhism Theme */
.theme-buddhism {
    --primary-color: #FF6B35;
    --secondary-color: #FFD700;
    --accent-color: #FFF8DC;
    --text-color: #CC4500;
    --bg-gradient: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(255, 215, 0, 0.8));
    --card-bg: rgba(255, 248, 220, 0.95);
}

.theme-buddhism .hero {
    background: var(--bg-gradient);
    background-image: 
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(255, 215, 0, 0.2) 0%, transparent 50%);
}

.theme-buddhism .card {
    background: var(--card-bg);
    border: 2px solid rgba(255, 107, 53, 0.2);
    color: var(--text-color);
}

.theme-buddhism .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.theme-buddhism .form-input:focus, .theme-buddhism .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Hinduism Theme */
.theme-hinduism {
    --primary-color: #FF8C00;
    --secondary-color: #DC143C;
    --accent-color: #FFF5EE;
    --text-color: #8B4500;
    --bg-gradient: linear-gradient(135deg, rgba(255, 140, 0, 0.9), rgba(220, 20, 60, 0.8));
    --card-bg: rgba(255, 245, 238, 0.95);
}

.theme-hinduism .hero {
    background: var(--bg-gradient);
    background-image: 
        radial-gradient(circle at 35% 65%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 65% 35%, rgba(220, 20, 60, 0.2) 0%, transparent 50%);
}

.theme-hinduism .card {
    background: var(--card-bg);
    border: 2px solid rgba(255, 140, 0, 0.2);
    color: var(--text-color);
}

.theme-hinduism .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.theme-hinduism .form-input:focus, .theme-hinduism .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* Common Theme Elements */
.religion-theme .confession-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(var(--primary-color), 0.2);
}

.religion-theme .steps-container {
    margin-top: 2rem;
}

.religion-theme .step-item {
    background: rgba(255, 255, 255, 0.8);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.religion-theme .step-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.religion-theme .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 1rem;
}

.religion-theme .step-description {
    flex: 1;
    color: var(--text-color);
    line-height: 1.6;
}

/* Background Patterns for Each Religion */
.theme-christianity::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(218, 165, 32, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.theme-judaism::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(30, 144, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(15, 76, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.theme-islam::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 75%, rgba(34, 139, 34, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(0, 106, 78, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.theme-buddhism::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 40% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.theme-hinduism::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 35% 65%, rgba(220, 20, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 65% 35%, rgba(255, 140, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Speech Recognition Styles */
.speech-button {
    position: relative;
    background: var(--primary-color, #667eea);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speech-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.speech-button.active {
    animation: pulse 2s infinite;
    background: #e53e3e;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

.speech-status {
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.speech-status.listening {
    background: #fed7d7;
    color: #742a2a;
}

.speech-status.processing {
    background: #faf089;
    color: #744210;
}

/* Responsive adjustments for religion themes */
@media (max-width: 768px) {
    .religion-theme .confession-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .religion-theme .step-item {
        padding: 1rem;
    }
    
    .speech-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Premium Religion Indicator */
.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #744210;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .religion-theme .step-item {
        background: rgba(0, 0, 0, 0.3);
        color: #f7fafc;
    }
    
    .religion-theme .confession-container {
        background: rgba(0, 0, 0, 0.4);
        color: #f7fafc;
    }
}