/* ═══════════════════════════════════════════════════════════
   AXONBOX PAGE — Global Dark Theme for Hello Elementor
   Applied when body has .axonbox-dark-theme class
   ═══════════════════════════════════════════════════════════ */

body.axonbox-dark-theme {
    background: #0f172a !important;
    color: #f8fafc;
}

body.axonbox-dark-theme .site-header,
body.axonbox-dark-theme header {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b;
}

body.axonbox-dark-theme .site-footer,
body.axonbox-dark-theme footer {
    background: #0f172a !important;
}

/* Override Elementor section backgrounds */
body.axonbox-dark-theme .elementor-section {
    --e-global-color-primary: #6366f1;
    --e-global-color-secondary: #818cf8;
    --e-global-color-text: #f8fafc;
    --e-global-color-accent: #06b6d4;
}

/* Make all text light by default */
body.axonbox-dark-theme .elementor-widget-heading .elementor-heading-title {
    color: #f8fafc;
}

body.axonbox-dark-theme .elementor-widget-text-editor {
    color: #94a3b8;
}

/* Dark backgrounds for feature icon-boxes */
body.axonbox-dark-theme .elementor-widget-icon-box {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

body.axonbox-dark-theme .elementor-widget-icon-box:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body.axonbox-dark-theme .elementor-widget-icon-box .elementor-icon-box-title {
    color: #f8fafc !important;
}

body.axonbox-dark-theme .elementor-widget-icon-box .elementor-icon-box-description {
    color: #94a3b8 !important;
}

/* Counter widget styling */
body.axonbox-dark-theme .elementor-widget-counter {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
}

body.axonbox-dark-theme .elementor-counter-number-wrapper {
    color: #818cf8 !important;
}

body.axonbox-dark-theme .elementor-counter-title {
    color: #475569 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem !important;
}

/* Subtle animated background grid */
body.axonbox-dark-theme::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body.axonbox-dark-theme::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

body.axonbox-dark-theme .elementor {
    position: relative;
    z-index: 1;
}

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body.axonbox-dark-theme {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Divider styling */
body.axonbox-dark-theme .elementor-widget-divider .elementor-divider-separator {
    border-color: #1e293b !important;
}

/* Remove default Elementor margins that may conflict */
body.axonbox-dark-theme .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   BLOG & ARCHIVE PAGES — Dark Theme for WordPress templates
   (Non-Elementor pages rendered by Hello Elementor theme)
   ═══════════════════════════════════════════════════════════ */

/* Global dark theme for ALL pages on the site */
body {
    background: #0f172a !important;
    color: #cbd5e1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Site Header ── */
.site-header {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b;
    padding: 16px 40px;
    position: relative;
    z-index: 10;
}

.site-header .site-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-header .site-title a {
    color: #f8fafc !important;
    text-decoration: none;
}

.site-header .site-description {
    color: #475569 !important;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Nav links */
.site-header nav a,
.site-navigation a {
    color: #94a3b8 !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.site-header nav a:hover,
.site-navigation a:hover {
    color: #818cf8 !important;
}

/* ── Main Content Area ── */
.site-main,
.page-content,
.entry-content {
    position: relative;
    z-index: 1;
}

/* ── Blog Archive / Post List ── */
.page-header .page-title,
.archive-title {
    color: #f8fafc !important;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1e293b;
}

/* Blog post cards */
article.post,
article.type-post {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

article.post:hover,
article.type-post:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Post titles */
article .entry-title,
article .entry-title a {
    color: #818cf8 !important;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s;
}

article .entry-title a:hover {
    color: #a5b4fc !important;
}

/* Post excerpt / content */
article .entry-summary,
article .entry-content,
article .entry-summary p,
article .entry-content p {
    color: #94a3b8 !important;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-top: 12px;
}

/* Post meta (date, author, categories) */
article .entry-meta,
article .post-meta,
article .entry-footer {
    color: #475569;
    font-size: 0.78rem;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(30, 41, 59, 0.6);
}

article .entry-meta a,
article .post-meta a,
article .entry-footer a {
    color: #6366f1 !important;
    text-decoration: none;
}

article .entry-meta a:hover,
article .post-meta a:hover {
    color: #818cf8 !important;
}

/* Read More links */
article .more-link,
article a.more-link {
    display: inline-block;
    color: #6366f1 !important;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 12px;
    transition: color 0.2s;
}

article .more-link:hover {
    color: #818cf8 !important;
}

/* ── Single Post Page ── */
.single article .entry-title {
    font-size: 2.2rem;
    color: #f8fafc !important;
    margin-bottom: 16px;
}

.single article .entry-content {
    color: #cbd5e1;
}

.single article .entry-content h2 {
    color: #f8fafc;
    font-size: 1.5rem;
    margin-top: 32px;
}

.single article .entry-content h3 {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-top: 24px;
}

.single article .entry-content a {
    color: #818cf8;
}

.single article .entry-content blockquote {
    border-left: 3px solid #6366f1;
    background: rgba(99, 102, 241, 0.08);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
}

.single article .entry-content code {
    background: rgba(30, 41, 59, 0.6);
    color: #06b6d4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.single article .entry-content pre {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

/* ── Pagination ── */
.pagination,
.nav-links {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
}

.pagination a,
.nav-links a {
    color: #818cf8 !important;
    text-decoration: none;
}

/* ── Sidebar ── */
.widget-area,
.sidebar {
    color: #94a3b8;
}

.widget-area .widget-title {
    color: #f8fafc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget-area a {
    color: #818cf8 !important;
}

/* ── Site Footer ── */
.site-footer,
footer.site-footer {
    background: #0f172a !important;
    border-top: 1px solid #1e293b;
    padding: 24px 40px;
    color: #475569;
    font-size: 0.78rem;
    position: relative;
    z-index: 1;
}

.site-footer a {
    color: #94a3b8 !important;
    text-decoration: none;
}

/* ── Comments ── */
.comments-area {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

.comments-area .comment-reply-title {
    color: #f8fafc;
}

.comments-area input,
.comments-area textarea {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    border-radius: 8px;
    padding: 10px 14px;
}

.comments-area input:focus,
.comments-area textarea:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ── Background effects for non-Elementor pages ── */
body:not(.axonbox-dark-theme)::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body:not(.axonbox-dark-theme)::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above background effects */
.site-header,
.site-main,
.site-footer,
#content,
#page {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   BLOG PAGE LOGO HEADER
   Replaces plain text site title with AXONBOS logo
   ═══════════════════════════════════════════════════════════ */

.site-header .site-title {
    margin: 0;
    padding: 0;
}

.site-header .site-title a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0;
    text-decoration: none;
    color: transparent;
}

/* Hide original text content */
.site-header .site-title a::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23f8fafc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="3"/><path d="M12 3v18M3 12h18" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.site-header .site-title a::after {
    content: 'AXON\A BOS';
    white-space: pre;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #f8fafc;
}

/* Make the entire header link go to homepage */
.site-header .site-title a {
    margin-bottom: 40px;
    display: inline-block;
}

.site-header .site-title a:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* Add spacing between header and main content */
.site-header {
    margin-bottom: 40px;
}

/* ═══════════════════════════════════════════════════════════
   STICKY WHATSAPP/PHONE CTA BUTTON
   Floating button for contact via WhatsApp
   ═══════════════════════════════════════════════════════════ */

.axb-whatsapp-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    font-size: 28px;
}

.axb-whatsapp-cta::before {
    content: '💬';
    display: inline-block;
    font-size: 24px;
}

.axb-whatsapp-cta:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.axb-whatsapp-cta:active {
    transform: scale(0.95);
}

/* Pulse animation for the button */
@keyframes axb-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.6);
    }
}

.axb-whatsapp-cta {
    animation: axb-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.axb-whatsapp-cta:hover {
    animation: none;
}

/* Mobile: slightly smaller button */
@media (max-width: 768px) {
    .axb-whatsapp-cta {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }

    .axb-whatsapp-cta::before {
        font-size: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════
   FALLBACK CTA STYLING
   Static contact card displayed if chatbot JS fails to load
   ═══════════════════════════════════════════════════════════ */

.axb-fallback-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    animation: slideInUp 0.4s ease-out;
}

.axb-fallback-cta h3 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.axb-fallback-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.axb-fallback-cta a {
    display: inline-block;
    background: white;
    color: #6366f1;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.axb-fallback-cta a:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

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

@media (max-width: 768px) {
    .axb-fallback-cta {
        bottom: 80px;
        right: 16px;
        max-width: 260px;
        padding: 16px 20px;
    }

    .axb-fallback-cta h3 {
        font-size: 0.95rem;
    }
}
