/* Faith Connect Website Custom Styles */

:root {
    --faith-gold: #FFD700;
    --faith-light-blue: #87CEEB;
    --peace-green: #90EE90;
    --warm-white: #FAFAFA;
}

/* Beta Banner Styles */
.alert.beta-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-left: 4px solid #ffd700;
    margin-bottom: 0;
}

.alert.beta-banner .btn-warning {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #1e3c72;
    font-weight: 600;
}

.alert.beta-banner .btn-warning:hover {
    background-color: #ffed4a;
    border-color: #ffed4a;
    color: #1e3c72;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.alert.beta-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
}

.alert.beta-banner .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Override some dark theme elements for warmth */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section Styling */
.hero-section {
    background: linear-gradient(135deg, var(--bs-dark) 0%, var(--bs-primary) 100%);
    color: white;
    min-height: 100vh;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.faith-symbol {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Enhanced Readability Styles */
.alert {
    font-size: 1.1rem;
    line-height: 1.7;
    border-radius: 12px;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.15);
    border-color: rgba(13, 202, 240, 0.5);
    color: #0a58ca;
    font-weight: 500;
}

.alert-light {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(13, 110, 253, 0.4);
    color: #212529;
    font-weight: 600;
    text-shadow: none;
}

/* Text Readability Improvements */
.text-muted {
    color: #adb5bd !important;
    font-weight: 500;
}

.small {
    font-size: 0.95rem !important;
    font-weight: 500;
}

/* List styling for better readability */
.list-unstyled li {
    font-size: 1.05rem;
    font-weight: 500;
    color: #f8f9fa;
    margin-bottom: 0.5rem;
}

/* Bible Verse Styling */
.bible-verse {
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(135,206,235,0.1) 100%);
    border-left: 4px solid var(--faith-gold);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-size: 1.15rem;
    line-height: 1.8;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bible-verse .verse-text {
    font-size: 1.2rem;
    color: #e9ecef;
    margin-bottom: 0.8rem;
}

.bible-verse .verse-reference {
    font-size: 0.95rem;
    color: var(--faith-gold);
    font-weight: 600;
    text-align: right;
    font-style: normal;
}

/* Form Elements - Enhanced Readability */
.form-control, .form-select {
    font-size: 1.15rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border-width: 2px;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 123, 255, 0.3);
    color: #212529;
    font-weight: 500;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.3rem rgba(13, 110, 253, 0.25);
    background-color: rgba(255, 255, 255, 1);
    color: #212529;
}

.form-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #f8f9fa;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.form-text {
    font-size: 1rem;
    color: #f8f9fa;
    line-height: 1.6;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Card Enhancements */
.card {
    border-radius: 12px;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom-width: 2px;
}

/* Button Enhancements */
.btn {
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056d6 100%);
    border-color: #0d6efd;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056d6 0%, #004bb3 100%);
    border-color: #0056d6;
}

/* Modal and Pop-up Enhancements */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.modal-header {
    border-radius: 16px 16px 0 0;
    border-bottom-width: 2px;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.modal-footer {
    border-top-width: 2px;
    padding: 1.5rem;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    border-radius: 15px;
    background: var(--bs-dark);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.feature-icon {
    animation: pulse 2s infinite;
}

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

/* Chat Interface Styling */
.chat-container {
    max-height: calc(100vh - 76px); /* Account for navbar */
}

.messages-container {
    max-height: 60vh;
    overflow-y: auto;
    background: var(--bs-body-bg);
    border-left: 3px solid var(--bs-primary);
}

.message {
    margin-bottom: 1rem;
}

/* Floating Donation Button */
.floating-donation {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1050;
    animation: gentle-pulse 3s ease-in-out infinite;
}

.floating-donation .btn {
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-donation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.6);
}

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

/* Hide floating button on donation page */
body.donation-page .floating-donation {
    display: none;
}

/* AdSense Placeholder Styles */
.adsense-placeholder {
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9em;
    text-align: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.adsense-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0.3;
}

.adsense-placeholder .placeholder-text {
    position: relative;
    z-index: 1;
    background: rgba(248, 249, 250, 0.8);
    padding: 8px 12px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-donation {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-donation .btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    .adsense-placeholder {
        min-height: 80px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .floating-donation {
        bottom: 10px;
        right: 10px;
    }
    
    .floating-donation .btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
}

.message.own-message .message-content {
    background: var(--bs-primary);
    color: white;
    border-radius: 18px 18px 5px 18px;
    padding: 10px 15px;
    margin-left: 20%;
    text-align: right;
}

.message:not(.own-message):not(.system-message) .message-content {
    background: var(--bs-secondary);
    color: white;
    border-radius: 18px 18px 18px 5px;
    padding: 10px 15px;
    margin-right: 20%;
}

.message-header {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.message-text {
    word-wrap: break-word;
}

.system-message {
    text-align: center;
}

/* Sidebar Styling */
.sidebar-content {
    height: calc(100vh - 76px);
    overflow-y: auto;
}

.info-item {
    padding: 0.5rem 0;
}

/* Contact Form */
.contact-form {
    background: var(--bs-dark);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Scripture Styling */
blockquote {
    position: relative;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border-left: 4px solid var(--faith-gold);
}

blockquote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--faith-gold);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-info));
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-success {
    background: linear-gradient(45deg, var(--bs-success), var(--peace-green));
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Navigation Enhancements */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--faith-gold) !important;
}

/* Alert Customizations */
.alert-info {
    background: linear-gradient(45deg, rgba(13, 202, 240, 0.1), rgba(13, 202, 240, 0.05));
    border-color: var(--bs-info);
}

.alert-success {
    background: linear-gradient(45deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
    border-color: var(--bs-success);
}

.alert-warning {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-color: var(--bs-warning);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .chat-container {
        max-height: calc(100vh - 56px);
    }
    
    .sidebar-content {
        height: auto;
        max-height: 400px;
    }
    
    .message.own-message .message-content,
    .message:not(.own-message):not(.system-message) .message-content {
        margin-left: 5%;
        margin-right: 5%;
    }
}

/* Accessibility Enhancements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

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

/* Animation for new messages */
.message-enter {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for webkit browsers */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: var(--bs-dark);
}

.messages-container::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: var(--bs-info);
}

/* Advertisement Styling */
.ad-banner {
    min-height: 90px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-square {
    min-height: 250px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-vertical {
    min-height: 300px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-ads {
    position: sticky;
    top: 20px;
}

.ad-small {
    min-height: 60px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

/* Ad placeholder styling when AdSense is not loaded */
.ad-banner:empty::before,
.ad-square:empty::before,
.ad-vertical:empty::before,
.ad-small:empty::before {
    content: "Ad Space";
    color: var(--bs-secondary);
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Responsive ad adjustments */
@media (max-width: 768px) {
    .sidebar-ads {
        position: static;
        margin-top: 2rem;
    }
    
    .ad-vertical {
        min-height: 200px;
    }
    
    .ad-square {
        min-height: 200px;
    }
    
    .ad-banner {
        min-height: 70px;
    }
}

/* Accessibility for ads */
.ad-banner,
.ad-square,
.ad-vertical,
.ad-small {
    overflow: hidden;
}

/* Make sure ads don't interfere with main content */
.ad-banner ins,
.ad-square ins,
.ad-vertical ins,
.ad-small ins {
    display: block !important;
    max-width: 100%;
    height: auto;
}

/* Moderation System Styling */
.moderation-warning {
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    border-left: 4px solid #ffc107;
    animation: slideInRight 0.4s ease-out;
}

.moderation-warning .fas.fa-shield-alt {
    color: #ffc107;
}

.content-moderated {
    background: linear-gradient(135deg, #ffe6e6, #ffcccc) !important;
    border: 2px solid #dc3545;
    position: relative;
}

.content-moderated::before {
    content: "🛡️ MODERATED";
    position: absolute;
    top: -10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

.violation-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.violation-badge.profanity { background: #dc3545; color: white; }
.violation-badge.sexual_content { background: #fd7e14; color: white; }
.violation-badge.hate_speech { background: #6f42c1; color: white; }
.violation-badge.violence { background: #e83e8c; color: white; }
.violation-badge.drug_alcohol { background: #20c997; color: white; }
.violation-badge.personal_info { background: #ffc107; color: black; }
.violation-badge.spam { background: #6c757d; color: white; }

/* Moderation Dashboard Styling */
.moderation-stats .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.moderation-stats .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content-preview {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #6c757d;
    word-break: break-word;
}

.flagged-message-row.high-confidence {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
}

.flagged-message-row.medium-confidence {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
}

.flagged-message-row.low-confidence {
    background: rgba(108, 117, 125, 0.1);
    border-left: 3px solid #6c757d;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
