/* Styles for AI Interface Evolution Infographic */

/* Body font */
body {
    font-family: 'Inter', sans-serif;
}

/* Dissolve gradient effect */
.dissolve-gradient {
    background: linear-gradient(to right, #06b6d4, #06b6d4 50%, transparent 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Tailwind replacements for CSP compliance */
/* Background colors */
.bg-\\[\\#202124\\] { background-color: #202124; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900\\/50 { background-color: rgba(15, 23, 42, 0.5); }
.bg-cyan-900\\/50 { background-color: rgba(22, 78, 99, 0.5); }
.bg-white\\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-red-900\\/30 { background-color: rgba(127, 29, 29, 0.3); }
.bg-green-900\\/30 { background-color: rgba(20, 83, 45, 0.3); }
.bg-green-900\\/20 { background-color: rgba(20, 83, 45, 0.2); }
.bg-yellow-900\\/30 { background-color: rgba(113, 63, 18, 0.3); }
.bg-blue-900\\/30 { background-color: rgba(30, 58, 138, 0.3); }
.bg-gray-900 { background-color: #111827; }
.bg-cyan-600 { background-color: #0891b2; }
.bg-slate-600 { background-color: #475569; }

/* Text colors */
.text-gray-200 { color: #e5e7eb; }
.text-white { color: #ffffff; }
.text-cyan-400 { color: #22d3ee; }
.text-cyan-300 { color: #67e8f9; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-cyan-500 { color: #06b6d4; }
.text-red-400 { color: #f87171; }
.text-red-300 { color: #fca5a5; }
.text-green-400 { color: #4ade80; }
.text-green-300 { color: #86efac; }
.text-green-200 { color: #bbf7d0; }
.text-yellow-300 { color: #fde047; }
.text-blue-300 { color: #93c5fd; }

/* Typography */
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.italic { font-style: italic; }

/* Spacing */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-4 { margin-top: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-8 { gap: 2rem; }

/* Layout */
.container { width: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-initial { flex: 0 1 auto; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.h-10 { height: 2.5rem; }
.w-10 { width: 2.5rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }

/* Borders and Effects */
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-white\\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-slate-700 { border-color: #334155; }
.border-gray-700 { border-color: #374151; }
.border-cyan-700 { border-color: #0e7490; }
.border-red-700 { border-color: #b91c1c; }
.border-green-700 { border-color: #15803d; }
.border-green-600\\/30 { border-color: rgba(22, 163, 74, 0.3); }
.border-yellow-700 { border-color: #a16207; }
.border-blue-700 { border-color: #1d4ed8; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* Lists */
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* Position */
.fixed { position: fixed; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-cyan-600 { --tw-gradient-from: #0891b2; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-slate-600 { --tw-gradient-to: #475569; }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Hover states */
.hover\\:bg-white\\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\\:bg-cyan-700:hover { background-color: #0e7490; }
.hover\\:bg-slate-700:hover { background-color: #334155; }
.hover\\:from-cyan-700:hover { --tw-gradient-from: #0e7490; }
.hover\\:to-slate-700:hover { --tw-gradient-to: #334155; }

/* Text */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }

/* Display */
.inline { display: inline; }

/* Responsive */
@media (min-width: 640px) {
    .sm\\:p-4 { padding: 1rem; }
    .sm\\:p-8 { padding: 2rem; }
    .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .sm\\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\\:inline { display: inline; }
    .sm\\:flex-row { flex-direction: row; }
    .sm\\:flex-initial { flex: 0 1 auto; }
}

@media (max-width: 639px) {
    .hidden.sm\\:inline { display: none; }
}

@media (min-width: 768px) {
    .md\\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\\:flex-row { flex-direction: row; }
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Body styles */
body.ai-interface-body {
    background-color: #202124;
}

/* Main container */
#infographic-content {
    padding-bottom: 120px;
    background-color: #1e293b;
    color: #e2e8f0;
}

/* UX to AX boxes container */
.ux-ax-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    justify-content: center;
}

@media (min-width: 768px) {
    .ux-ax-container {
        flex-direction: row;
    }
}

/* UX box */
.ux-box {
    background-color: rgba(15, 23, 42, 0.5);
    border-color: #475569;
    max-width: 300px;
    padding: 1.5rem;
}

/* AX box */
.ax-box {
    background-color: rgba(22, 78, 99, 0.5);
    border-color: #0e7490;
    max-width: 300px;
    padding: 1.5rem;
}

/* AI Re-org boxes */
.frontend-layer-box {
    background-color: rgba(127, 29, 29, 0.4);
    border-color: #b91c1c;
}

.middle-management-box {
    background-color: rgba(113, 63, 18, 0.4);
    border-color: #a16207;
}

.core-backend-box {
    background-color: rgba(20, 83, 45, 0.4);
    border-color: #15803d;
}

/* AI Empowers the Core section */
.ai-empowers-core {
    background-color: #1e293b;
    border-color: #06b6d4;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
    padding: 2rem;
}

.pdf-generation .ai-empowers-core {
    padding: 2rem !important;
    margin-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: auto !important;
}

.pdf-generation .ai-empowers-core svg {
    height: 3rem !important;
    width: 3rem !important;
    margin: 0 auto 0.5rem auto !important;
    display: block !important;
}

.pdf-generation .ai-empowers-core h2 {
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
}

.pdf-generation .ai-empowers-core .core-paragraph {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.pdf-generation .ai-empowers-core .mt-4 {
    margin-top: 1rem !important;
}

/* Core paragraph */
.core-paragraph {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #cbd5e1;
    max-width: 48rem;
    margin: 0 auto;
    white-space: normal;
    word-spacing: 0.1em;
    letter-spacing: 0.01em;
}

/* Footer styles */
.infographic-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #475569;
}

.footer-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    word-spacing: 0.1em;
}

/* New section styles */
.traditional-model-box {
    background-color: rgba(127, 29, 29, 0.3);
    border-color: #b91c1c;
}

.ai-agent-model-box {
    background-color: rgba(20, 83, 45, 0.3);
    border-color: #15803d;
}

.model-note {
    background-color: rgba(20, 83, 45, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

/* PDF-specific styles */
@media print {
    #infographic-content {
        max-width: 1000px !important;
    }
    
    .ux-ax-container {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 2rem !important;
    }
    
    .ux-box,
    .ax-box {
        width: 300px !important;
        max-width: 300px !important;
        flex: none !important;
    }
    
    .w-full {
        width: auto !important;
    }
}

/* Ensure side-by-side layout in PDF generation */
.pdf-generation .ux-ax-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 2rem !important;
}

.pdf-generation .ux-box,
.pdf-generation .ax-box {
    width: 300px !important;
    max-width: 300px !important;
    flex: none !important;
}

/* Fix text spacing in PDF generation */
.pdf-generation p,
.pdf-generation li,
.pdf-generation h1,
.pdf-generation h2,
.pdf-generation h3,
.pdf-generation span {
    white-space: normal !important;
    word-spacing: 0.05em !important;
    letter-spacing: 0.01em !important;
}

.pdf-generation p {
    margin-bottom: 1rem !important;
}

.pdf-generation li {
    margin-bottom: 0.5rem !important;
}

.pdf-generation ul,
.pdf-generation ol {
    padding-left: 1.5rem !important;
}

.pdf-generation .space-y-1 > * + * {
    margin-top: 0.25rem !important;
}

.pdf-generation .space-y-2 > * + * {
    margin-top: 0.5rem !important;
}

.pdf-generation .space-y-3 > * + * {
    margin-top: 0.75rem !important;
}