/* Extracted from index.html */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-card h3 {
    margin: 10px 0 5px;
    font-size: 1.1em;
    color: #000;
}

.product-card p {
    margin: 0;
    font-size: 1em;
    color: #333;
}

.featured-carousel {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #F97316 #f0f0f0;
    
    /* WebKit (Chrome, Safari, newer Edge) handled by pseudo-elements below */
}

.featured-carousel::-webkit-scrollbar {
    height: 8px;
}

.featured-carousel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.featured-carousel::-webkit-scrollbar-thumb {
    background: #F97316;
    border-radius: 4px;
}

.featured-carousel::-webkit-scrollbar-thumb:hover {
    background: #FBBF24;
}

.featured-card {
    min-width: 250px;
    max-width: 250px;
    background: linear-gradient(135deg, #FBBF24 0%, #F97316 100%);
    border: 2px solid #F97316;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    scroll-snap-align: start;
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.5);
}

.featured-card img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.featured-card h3 {
    margin: 15px 0 10px;
    font-size: 1.1em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.featured-card p {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbars for chat */
.chat-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.chat-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.chat-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(107, 114, 128, 0.8);
    border-radius: 9999px;
}

/* Fullscreen mode for chat */
#chat-window.fullscreen {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    z-index: 9999;
}

/* --- Gold Cross --- */
#gold-cross {
    position: absolute;
    width: 60px;
    height: 120px;
    z-index: 1;
    pointer-events: none;
    background: #FFF8DC; /* Core color of the cross */
    /* The glow effect */
    box-shadow:
        0 0 10px var(--gold),
        0 0 20px var(--gold),
        0 0 40px #FFD700,
        0 0 60px #FFA500;
    /* Create the cross shape using clip-path */
    clip-path: polygon(
        24px 0, 36px 0, 36px 30px, 60px 30px, 60px 42px, 36px 42px,
        36px 120px, 24px 120px, 24px 42px, 0 42px, 0 30px, 24px 30px
    );
}

/* Blog subtab hover effects */
.blog-subtab:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
}

/* Active blog subtab */
.blog-subtab.active {
    background: #FBBF24 !important;
    color: #000000 !important;
}

/* Seek Eternity (Bible Study) Section Styling */
#BibleStudy h2, 
#BibleStudy h3, 
#BibleStudy h4,
.study-header {
    color: #FBBF24 !important; /* Yellow */
}

#BibleStudy p,
#BibleStudy div {
    color: #F97316; /* Orange */
}

#BibleStudy strong {
    color: #FBBF24; /* Yellow for emphasis within paragraphs */
}

.verse-section {
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Contacts Section Styling */
.contacts-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.contacts-container {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
}

.contacts-container h3 {
    color: #666;
    margin-bottom: 15px;
}

.contacts-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contacts-card p {
    color: #333;
    margin-bottom: 10px;
}

.legal-grid {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-item p {
    color: #333;
    margin: 0;
}

/* --- CONTACTS SECTION ENHANCEMENTS --- */
.contacts-section {
    position: relative;
    z-index: 5;
}

.contact-form-panel input:focus, 
.contact-form-panel textarea:focus {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.contact-form-panel input::placeholder, 
.contact-form-panel textarea::placeholder {
    color: #52525b;
}

/* Custom Checkbox Styling if needed beyond standard tailwind classes */
.contacts-section input[type="checkbox"] {
    cursor: pointer;
    appearance: none;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    padding: 9px;
    border-radius: 6px;
    display: inline-block;
    position: relative;
}

.contacts-section input[type="checkbox"]:checked {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.contacts-section input[type="checkbox"]:checked::after {
    content: '\2714';
    font-size: 14px;
    position: absolute;
    top: 0px;
    left: 4px;
    color: #000;
}

.contact-form-panel {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.8) 0%, rgba(9, 9, 11, 0.9) 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contacts-info-panel {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.6) 0%, rgba(9, 9, 11, 0.7) 100%);
}

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* --- Hero Slideshow --- */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #111;
}

.slide {
    display: none;
    position: relative;
}

.slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    opacity: 0.8;
}

.slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 8px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-left: 4px solid #FBBF24;
}

.slide-text h3 {
    margin: 0;
    color: #FBBF24;
    font-family: 'Orbitron', sans-serif;
}

.slide-text p {
    margin: 5px 0 0;
    color: #f97316;
}

.slide-dots {
    text-align: center;
    padding: 10px;
    position: absolute;
    bottom: 5px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot-active, .dot:hover, .dot-active {
    background-color: #FBBF24;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* --- Extracted from index.html --- */
.brand-link { text-decoration: none; display: inline-block; }
.text-gold { color: #FBBF24; }
.text-gray { color: #9CA3AF; }
.text-shadow-white { text-shadow: 0 0 2px white; }
.header-buttons { display: flex; align-items: center; gap: 15px; }
.avatar-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.avatar-ring { width: 40px; height: 40px; border-radius: 50%; background: #FBBF24; padding: 2px; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #1F2937; }
.auth-container { display: flex; gap: 15px; align-items: center; }

/* Utility Classes for JS Toggles */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }

/* Chat Section Styles moved to chatbot.css */

/* Section Styles */
.search-results-section { display: none; }
.server-section { display: none; } 
.featured-header { margin-bottom: 15px; color: #F97316; }
.featured-carousel-flex { display: flex; gap: 15px; overflow-x: auto; padding: 10px 0; scroll-snap-type: x mandatory; }

/* API Keys Section Styles */
.api-keys-container { padding-bottom: 300px; margin-bottom: 100px; }
.api-config-box { background: #f5f5f5; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.api-config-header { color: #666; margin-bottom: 15px; }
.api-inner-box { background: white; padding: 15px; border-radius: 8px; margin-bottom: 10px; }
.api-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.api-label { font-weight: 600; color: #666; }
.api-btn { padding: 8px 16px; background: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; }
.api-value-box { background: #000; color: #00ff00; padding: 15px; border-radius: 5px; font-family: monospace; word-break: break-all; }
.api-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.api-log-box { background: #000; color: #0f0; padding: 15px; border-radius: 8px; max-height: 400px; overflow-y: auto; font-family: monospace; font-size: 0.9em; }
.app-store-link { text-decoration: none; color: inherit; }

/* Bible Study Styles moved to biblestudy.css */

/* --- Legal Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container {
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-sidebar {
    width: 200px;
    background: #27272a;
    border-right: 1px solid #3f3f46;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.legal-nav-item {
    padding: 12px 20px;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.legal-nav-item:hover {
    background: #3f3f46;
    color: #fff;
}

.legal-nav-item.active {
    background: #FBBF24;
    color: #000;
    font-weight: 600;
}

.modal-close-sidebar {
    margin-top: auto;
    padding: 15px 20px;
    color: #ef4444;
    cursor: pointer;
    border-top: 1px solid #3f3f46;
    font-weight: 600;
}

.modal-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #18181b;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    color: #d4d4d8;
    line-height: 1.6;
}

.modal-body h2 {
    color: #FBBF24;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.modal-body h4 {
    color: #fff;
    margin: 20px 0 10px;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #3f3f46;
    display: flex;
    justify-content: flex-end;
}
.api-btn-active { background-color: #007bff; }

/* --- Bible Study Enhancements moved to biblestudy.css --- */

/* --- Mobile Rolling Tabs --- */
@media (max-width: 768px) {
        .tabs-container {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            justify-content: flex-start;
            padding: 10px 15px 10px;
            margin-bottom: 1rem;
            margin-top: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
        pointer-events: none;
    }
    .tabs-container > * {
        pointer-events: auto;
    }
    .tabs-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
        width: 0;
        height: 0;
        background: transparent;
    }
    .tab-dropdown {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

/* --- Save Shimmer Animation --- */
.save-shimmer {
    position: relative;
    overflow: hidden;
}
.save-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(251, 191, 36, 0.05) 45%,
        rgba(251, 191, 36, 0.2) 50%,
        rgba(251, 191, 36, 0.05) 55%,
        transparent 100%
    );
    transform: rotate(25deg);
    animation: shimmer-light 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 50;
}

@keyframes shimmer-light {
    from { transform: translate(-30%, -30%) rotate(25deg); }
    to { transform: translate(30%, 30%) rotate(25deg); }
}

/* --- Deep Dive Reports --- */
.deep-dive-btn {
    padding: 8px 16px;
    background: rgba(31, 58, 95, 0.4);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #9ca3af;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deep-dive-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fff;
}

.deep-dive-btn.active {
    background: #fbbf24;
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.deep-dive-content-area {
    animation: fadeIn 0.4s ease-out;
}

.scholarly-panel {
    transition: transform 0.2s ease;
}

.scholarly-panel:hover {
    transform: translateX(5px);
    background: rgba(31, 58, 95, 0.2);
}

/* Timeline Styles */
.timeline-container {
    padding-top: 10px;
}

.timeline-node {
    padding-bottom: 25px;
}

.timeline-node:last-child {
    padding-bottom: 0;
}

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

.fade-in {
    animation: fadeIn 0.4s ease-out;
}