/*
Theme Name: OAN
Theme URI: https://oappsnet.com
Author: OAN Team
Author URI: https://oappsnet.com
Description: AI-Native Finance Operations Platform - Custom WordPress theme converted from React
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oan
*/

/* ============================================
   WordPress Admin Bar Fix
   ============================================ */
.admin-bar #oan-nav {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar #oan-nav {
        top: 46px;
    }
}

/* ============================================
   Hero V4 Animations
   ============================================ */
@keyframes hero-pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* hero-v4-fadein animations handled by JS (hero-v4-frontend.js) */

/* ============================================
   Base resets for OAN theme
   ============================================ */
/* Body styles handled by tailwind-compiled.css — do not override font-family or color here */

/* Remove WordPress default content width constraints */
.entry-content,
.site-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Logo carousel in editor — match frontend size */
.editor-styles-wrapper .oan-logo-carousel-img,
.editor-styles-wrapper img.oan-logo-carousel-img,
.block-editor-block-list__layout .oan-logo-carousel-img {
    height: 40px !important;
    width: auto !important;
    max-height: 48px !important;
    max-width: 160px !important;
    display: inline-block !important;
    object-fit: contain !important;
}
/* Carousel scroll container in editor — single row */
.editor-styles-wrapper [style*="oan-scroll-logos"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}
.editor-styles-wrapper .oan-logo-carousel-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 40px !important;
    overflow: hidden !important;
    max-height: 60px !important;
    align-items: center !important;
}

/* Screen reader only — SEO content visible to crawlers but hidden visually */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Tailwind CDN arbitrary value fallbacks */
.max-w-\[1240px\] { max-width: 1240px; }
.bg-\[size\:64px_64px\] { background-size: 64px 64px; }
.bg-\[linear-gradient\(rgba\(59\,130\,246\,0\.02\)_1px\,transparent_1px\)\,linear-gradient\(90deg\,rgba\(59\,130\,246\,0\.02\)_1px\,transparent_1px\)\] {
    background-image: linear-gradient(rgba(59,130,246,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.02) 1px, transparent 1px);
}
.w-\[280px\] { width: 280px; }
.h-\[280px\] { height: 280px; }
.min-w-\[160px\] { min-width: 160px; }
@media (min-width: 768px) {
    .md\:w-\[320px\] { width: 320px; }
    .md\:h-\[320px\] { height: 320px; }
}

/* Benefit cards - ensure proper width */
.hero-benefit-card {
    white-space: nowrap;
}

/* OAN gradient button — used on contact page bottom CTA */
/* className goes on the wrapper div, so target the link via parent */
.wp-block-button.oan-gradient-btn .wp-block-button__link {
    background: linear-gradient(to right, #3B82F6, #06B6D4) !important;
    color: #fff !important;
    padding: 16px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3) !important;
    transition: box-shadow 0.2s, transform 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
/* ============================================
   Blog single post — article prose styles
   Scoped to .oan-prose so they don't bleed out
   ============================================ */
.oan-prose { color: #374151; font-size: 1.0625rem; line-height: 1.75; }

.oan-prose p { margin: 0 0 1.5em; }

.oan-prose h2 {
    font-size: 1.625rem; font-weight: 700; color: #111827;
    margin: 2.5em 0 0.75em; line-height: 1.3;
}
.oan-prose h3 {
    font-size: 1.25rem; font-weight: 700; color: #111827;
    margin: 2em 0 0.6em; line-height: 1.4;
}
.oan-prose h4 {
    font-size: 1.0625rem; font-weight: 700; color: #1F2937;
    margin: 1.75em 0 0.5em;
}

.oan-prose ul, .oan-prose ol {
    margin: 0 0 1.5em 1.5em; padding: 0;
}
.oan-prose ul { list-style: disc; }
.oan-prose ol { list-style: decimal; }
.oan-prose li { margin-bottom: 0.5em; }

.oan-prose strong { font-weight: 700; color: #111827; }
.oan-prose em { font-style: italic; }

.oan-prose a {
    color: #2563EB; text-decoration: underline; text-underline-offset: 3px;
}
.oan-prose a:hover { color: #1D4ED8; }

.oan-prose blockquote {
    margin: 2em 0;
    padding: 1.25em 1.5em;
    border-left: 4px solid #3B82F6;
    background: linear-gradient(135deg, #EFF6FF, #ECFEFF);
    border-radius: 0 12px 12px 0;
    font-size: 1.125rem;
    font-style: italic;
    color: #1E40AF;
}
.oan-prose blockquote p { margin: 0; }

.oan-prose code {
    background: #F3F4F6; color: #1F2937;
    padding: 2px 6px; border-radius: 4px;
    font-size: 0.875em; font-family: ui-monospace, monospace;
}
.oan-prose pre {
    background: #1E293B; color: #E2E8F0;
    padding: 1.25em 1.5em; border-radius: 12px;
    overflow-x: auto; margin: 2em 0;
    font-size: 0.875rem; line-height: 1.7;
}
.oan-prose pre code { background: none; color: inherit; padding: 0; }

.oan-prose img {
    max-width: 100%; height: auto; border-radius: 12px;
    margin: 2em auto; display: block;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.oan-prose table {
    width: 100%; border-collapse: collapse; margin: 2em 0;
    font-size: 0.9375rem;
}
.oan-prose th {
    background: linear-gradient(135deg, #EFF6FF, #ECFEFF);
    color: #1E40AF; font-weight: 700; text-align: left;
    padding: 12px 16px; border-bottom: 2px solid #BFDBFE;
}
.oan-prose td {
    padding: 11px 16px; border-bottom: 1px solid #F3F4F6; color: #374151;
}
.oan-prose tr:last-child td { border-bottom: none; }

.oan-prose hr {
    border: none; height: 1px; background: #F3F4F6; margin: 3em 0;
}

/* WordPress caption */
.oan-prose .wp-caption { max-width: 100%; }
.oan-prose .wp-caption-text {
    font-size: 0.8125rem; color: #9CA3AF; text-align: center; margin-top: 8px;
}

.wp-block-button.oan-gradient-btn .wp-block-button__link:hover {
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3) !important;
    transform: scale(1.05) !important;
}

/* OAN Video Player — hide controls and pause indicator before JS initializes */
.oan-vp-controls,
.oan-vp-pause-ind { display: none; }
