/*
Theme Name: Webtron Docs Theme
Theme URI: https://www.webtrononlineauction.com
Description: A documentation-focused WordPress Block Theme built for the Webtron Guidebase. Features Full Site Editing, dark mode support, EazyDocs integration, and optimized for technical documentation.
Author: Webtron Development Team
Author URI: https://www.webtrononlineauction.com
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
License URI: https://www.webtrononlineauction.com/license
Text Domain: webtron-docs
Tags: full-site-editing, block-editor, block-patterns, documentation, dark-mode, eazydocs, responsive

This is a Block Theme (FSE) for Documentation Sites.
Template editing: Appearance > Design > Site Editor
Block Patterns: /patterns/
Style Variations: /styles/
Custom Blocks: /blocks/
*/

/* ============================================================================
   CUSTOM PROPERTIES (CSS Variables)
   ============================================================================
   Most styling is handled by theme.json.
   These are for additional custom functionality.
   ============================================================================ */

:root {
    /* Z-Index Layer System */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    
    /* Animation Timing */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Dark Mode Variables - Light Mode Defaults */
    --bg-color: #ffffff;
    --text-color: #1d2327;
    --border-color: #e1e1e1;
    --card-bg: #f9f9f9;
    --code-bg: #f6f7f7;
}

/* Dark Mode Variables */
body.dark-mode,
body.body_dark {
    --bg-color: #0c0d0e;
    --text-color: #e0e0e0;
    --border-color: #3c4146;
    --card-bg: #242729;
    --code-bg: #1e1e1e;

    /* EazyDocs Dark Mode Variables */
    --ezd_brand_color: var(--ezd_brand_color_dark, #0866ff) !important;
    --bs-white: #2c303a !important;
    --black_700: #e1e1e1 !important;
    --black_800: #f1f1f1 !important;
    --black_900: #f8f8f8 !important;
    --black_600: #bebebe !important;
    --black_500: #b9b9b9 !important;
    --black_400: #a2a2a2 !important;
    --black_150: rgba(255, 255, 255, 0.3) !important;
    --black_100: #5e5e5e !important;
    --black_75: #535353 !important;
    --black_50: #494949 !important;
    --black_25: #383838 !important;
    --secondary_color: #8fa3c7 !important;
}

/* ============================================================================
   GLOBAL RESETS & BASE STYLES
   ============================================================================ */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary, #0073aa);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--wp--preset--color--primary, #0073aa);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: var(--z-tooltip);
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* ============================================================================
   BLOCK EDITOR ALIGNMENTS (Frontend Only)
   ============================================================================
   Note: These rules are scoped to frontend using :not(.editor-styles-wrapper)
   to prevent interference with the block editor canvas.
   ============================================================================ */

/* Full-width alignment - frontend only */
body:not(.block-editor-page):not(.wp-admin) .alignfull {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Wide alignment */
.alignwide {
    max-width: var(--wp--style--global--wide-size, 1170px);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */

/* Hide on mobile */
@media (max-width: 781px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 782px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* ============================================================================
   NAVIGATION ENHANCEMENTS
   ============================================================================ */

/* Header z-index hierarchy */
.site-header {
    position: relative;
    z-index: var(--z-fixed);
}

/* Navigation needs higher z-index than content below */
.site-navbar,
.wp-block-navigation {
    position: relative;
    z-index: var(--z-fixed);
}

/* Submenu dropdowns need highest z-index in navigation context */
.wp-block-navigation .wp-block-navigation__submenu-container {
    z-index: var(--z-popover);
}

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
    z-index: var(--z-modal);
}

/* Vertical alignment support for navigation in flex containers */
/* Note: Only apply flex to is-layout-flex, NOT is-layout-constrained
   is-layout-constrained should use WordPress default flow layout */
.wp-block-group.is-layout-flex {
    display: flex;
}

/* Ensure navigation centers vertically when min-height is set on parent */
.wp-block-group[style*="min-height"] {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navigation block vertical alignment */
.wp-block-navigation {
    align-items: center;
}

/* Support for vertical alignment classes */
.is-vertically-aligned-top {
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.is-vertically-aligned-center {
    align-items: center !important;
    justify-content: center !important;
}

.is-vertically-aligned-bottom {
    align-items: flex-end !important;
    justify-content: flex-end !important;
}

/* Flex layout vertical alignment support */
.is-layout-flex.is-vertical.is-content-justification-top {
    justify-content: flex-start;
}

.is-layout-flex.is-vertical.is-content-justification-center {
    justify-content: center;
}

.is-layout-flex.is-vertical.is-content-justification-bottom {
    justify-content: flex-end;
}

.is-layout-flex.is-vertical.is-content-justification-space-between {
    justify-content: space-between;
}

/* Mobile menu improvements */
.wp-block-navigation__responsive-container.is-menu-open {
    padding: 1rem;
}

/* ============================================================================
   BUTTON ENHANCEMENTS
   ============================================================================ */

/* Button hover effects */
.wp-block-button__link {
    transition: background-color var(--transition-fast), 
                border-color var(--transition-fast),
                color var(--transition-fast),
                transform var(--transition-fast);
}

.wp-block-button__link:hover {
    transform: translateY(-1px);
}

.wp-block-button__link:active {
    transform: translateY(0);
}

/* ============================================================================
   IMAGE & MEDIA ENHANCEMENTS
   ============================================================================ */

/* Smooth image loading */
img {
    transition: opacity var(--transition-base);
}

img.lazyload,
img.lazyloading {
    opacity: 0;
}

img.lazyloaded {
    opacity: 1;
}

/* Cover block video autoplay fix */
.wp-block-cover__video-background {
    object-fit: cover;
}

/* ============================================================================
   FORM STYLING
   ============================================================================ */

/* Basic form element styling */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 1px solid var(--wp--preset--color--contrast, #ccc);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--wp--preset--color--primary, #0073aa);
    box-shadow: 0 0 0 1px var(--wp--preset--color--primary, #0073aa);
    outline: none;
}

/* ============================================================================
   SCROLLBAR STYLING (Optional)
   ============================================================================ */

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--wp--preset--color--base, #f1f1f1);
}

::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--contrast, #888);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wp--preset--color--primary, #555);
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    /* Hide non-essential elements */
    .wp-block-navigation,
    .site-header,
    .site-footer,
    .wp-block-button,
    .skip-link {
        display: none !important;
    }
    
    /* Improve readability */
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    /* Show link URLs */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    /* Avoid page breaks inside elements */
    img, 
    .wp-block-image {
        page-break-inside: avoid;
    }
}

/* ============================================================================
   DARK MODE SUPPORT
   ============================================================================ */

/* Apply Dark Mode Background */
body.dark-mode,
body.body_dark {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Dark Mode Typography */
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6,
body.dark-mode p,
body.body_dark h1, body.body_dark h2, body.body_dark h3,
body.body_dark h4, body.body_dark h5, body.body_dark h6,
body.body_dark p {
    color: var(--text-color);
}

body.dark-mode a,
body.body_dark a {
    color: var(--ezd_brand_color, #0866ff);
}

/* Dark Mode Blocks */
body.dark-mode .wp-block-group,
body.dark-mode .wp-block-cover,
body.body_dark .wp-block-group,
body.body_dark .wp-block-cover {
    color: var(--text-color);
}

/* Dark Mode Tables */
body.dark-mode table,
body.body_dark table {
    border-color: var(--border-color);
    background-color: var(--card-bg);
}

body.dark-mode th,
body.dark-mode td,
body.body_dark th,
body.body_dark td {
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Dark Mode Code Blocks */
body.dark-mode code,
body.dark-mode pre,
body.body_dark code,
body.body_dark pre {
    background-color: var(--code-bg);
    color: #e6e6e6;
}

/* Exclude Media from Dark Mode Inversion */
body.dark-mode img,
body.dark-mode video,
body.dark-mode iframe,
body.body_dark img,
body.body_dark video,
body.body_dark iframe {
    filter: none !important;
}

/* Only apply opacity reset to non-logo images (logos use opacity for swap animation) */
body.dark-mode img:not(.wtn-logo),
body.dark-mode video,
body.dark-mode iframe,
body.body_dark img:not(.wtn-logo),
body.body_dark video,
body.body_dark iframe {
    opacity: 1 !important;
}

/* Preserve Highlighted/Colored Elements */
body.dark-mode mark,
body.dark-mode .has-background,
body.dark-mode [class*="highlight"],
body.body_dark mark,
body.body_dark .has-background,
body.body_dark [class*="highlight"] {
    filter: none !important;
}

/* Dark Mode Smooth Transitions */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body * {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Prevent transition on media */
body img,
body video,
body iframe {
    transition: none !important;
}

/* ============================================================================
   FLOATING ACTION BUTTONS (FAB) - Unified Container
   ============================================================================ */

.webtron-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    z-index: 9990;
}

/* Hide mobile-only docs toggle on desktop */
.webtron-fab-container .webtron-docs-mobile-toggle {
    display: none !important;
}

@media screen and (max-width: 768px) {
    /* Show docs toggle on mobile */
    .webtron-fab-container .webtron-docs-mobile-toggle {
        display: flex !important;
    }
}

/* Common FAB button styling - works for both .webtron-fab and .webtron-fab-button */
.webtron-fab-container .webtron-fab,
.webtron-fab-container .webtron-fab-button {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0;
}

body.dark-mode .webtron-fab-container .webtron-fab,
body.body_dark .webtron-fab-container .webtron-fab,
body.dark-mode .webtron-fab-container .webtron-fab-button,
body.body_dark .webtron-fab-container .webtron-fab-button {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.webtron-fab-container .webtron-fab:hover,
.webtron-fab-container .webtron-fab-button:hover {
    background: var(--ezd_brand_color, #0866ff);
    border-color: var(--ezd_brand_color, #0866ff);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.webtron-fab-container .webtron-fab i,
.webtron-fab-container .webtron-fab svg,
.webtron-fab-container .webtron-fab-button i,
.webtron-fab-container .webtron-fab-button svg {
    font-size: 20px;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
}

.webtron-fab-container .webtron-fab:hover i,
.webtron-fab-container .webtron-fab:hover svg,
.webtron-fab-container .webtron-fab-button:hover i,
.webtron-fab-container .webtron-fab-button:hover svg {
    transform: rotate(15deg);
}

/* Dark mode toggle icon visibility */
.webtron-fab-container .dark-mode-toggle .fa-sun {
    display: none;
}
body.dark-mode .webtron-fab-container .dark-mode-toggle .fa-moon,
body.body_dark .webtron-fab-container .dark-mode-toggle .fa-moon {
    display: none;
}
body.dark-mode .webtron-fab-container .dark-mode-toggle .fa-sun,
body.body_dark .webtron-fab-container .dark-mode-toggle .fa-sun {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   FAB Language Switcher
   ========================================================================== */
.webtron-fab-lang-wrapper {
    position: relative;
}

.webtron-fab-lang-toggle {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .webtron-fab-lang-toggle,
body.body_dark .webtron-fab-lang-toggle {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.webtron-fab-lang-toggle:hover {
    background: var(--docs-accent, #3b82f6);
    border-color: var(--docs-accent, #3b82f6);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.webtron-fab-lang-toggle.active {
    background: var(--docs-accent, #3b82f6);
    border-color: var(--docs-accent, #3b82f6);
}

.webtron-fab-lang-toggle i {
    font-size: 18px;
}

/* Language Dropdown */
.webtron-fab-lang-dropdown {
    position: absolute;
    right: 60px;
    bottom: 0;
    min-width: 160px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.dark-mode .webtron-fab-lang-dropdown,
body.body_dark .webtron-fab-lang-dropdown {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.webtron-fab-lang-wrapper.open .webtron-fab-lang-dropdown,
.webtron-fab-lang-toggle:focus + .webtron-fab-lang-dropdown,
.webtron-fab-lang-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.webtron-fab-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.webtron-fab-lang-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.webtron-fab-lang-option.active {
    background: var(--docs-accent, #3b82f6);
}

.webtron-fab-lang-option.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.webtron-fab-lang-flag {
    font-size: 18px;
    line-height: 1;
}

.webtron-fab-lang-name {
    flex: 1;
    white-space: nowrap;
}

.webtron-fab-lang-status {
    font-size: 11px;
    opacity: 0.7;
}

/* Webtron AI Chat Button */
.webtron-ai-chat-toggle-wrapper {
    order: 1; /* Bottom position in FAB stack */
}

.webtron-ai-chat-toggle {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.webtron-ai-chat-toggle i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

body.dark-mode .webtron-ai-chat-toggle,
body.body_dark .webtron-ai-chat-toggle {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.webtron-ai-chat-toggle:hover {
    background: var(--ezd_brand_color, #0866ff);
    border-color: var(--ezd_brand_color, #0866ff);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.webtron-ai-chat-toggle i,
.webtron-ai-chat-toggle svg {
    font-size: 20px;
    transition: all 0.3s ease;
}

.webtron-ai-chat-toggle:hover i,
.webtron-ai-chat-toggle:hover svg {
    transform: rotate(15deg);
}

/* Note: FAB container remains visible when mobile panel is open
   so users can click the toggle button to close it.
   Other floating elements are still hidden to reduce clutter. */
body.mobile-panel-open .dark-mode-toggle-wrapper,
body.mobile-panel-open .webtron-docs-mobile-toggle-wrapper,
body.mobile-panel-open .webtron-ai-chat-toggle-wrapper,
body.mobile-panel-open .mwai-chatbot-container {
    display: none !important;
}

/* Hide FAB container when AI chat popup is open */
body.ai-chat-open .webtron-fab-container {
    display: none !important;
}

/* ============================================================================
   AI CHAT POPUP PANEL
   ============================================================================ */

.webtron-ai-chat-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 420px;
    min-width: 320px;
    max-width: calc(100vw - 40px);
    max-height: 75vh;
    min-height: 400px;
    background: var(--bg-color, #ffffff);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive width adjustments for chat popup */
@media screen and (min-width: 768px) {
    .webtron-ai-chat-popup {
        width: 480px;
        resize: both;
        max-width: 700px;
    }
}

@media screen and (min-width: 1024px) {
    .webtron-ai-chat-popup {
        width: 520px;
    }
}

@media screen and (min-width: 1280px) {
    .webtron-ai-chat-popup {
        width: 560px;
    }
}

@media screen and (min-width: 1536px) {
    .webtron-ai-chat-popup {
        width: 600px;
    }
}

@media screen and (max-width: 480px) {
    .webtron-ai-chat-popup {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 80px;
        max-height: calc(100vh - 120px);
    }
}

/* Resize handle styling */
.webtron-ai-chat-popup::-webkit-resizer {
    background: transparent;
}

/* Custom resize handle at top-left of header */
.webtron-ai-popup-resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    cursor: nw-resize;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 8px 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Immediate tooltip for resize handle */
.webtron-ai-popup-resize-handle[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 9999;
    pointer-events: none;
}

.webtron-ai-popup-resize-handle::before {
    content: '';
    width: 10px;
    height: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.6);
    border-top: 2px solid rgba(255, 255, 255, 0.6);
}

.webtron-ai-popup-resize-handle:hover {
    background: rgba(255, 255, 255, 0.35);
}

@media screen and (min-width: 768px) {
    .webtron-ai-popup-resize-handle {
        display: flex;
    }
}

.webtron-ai-chat-popup.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.dark-mode .webtron-ai-chat-popup,
body.body_dark .webtron-ai-chat-popup {
    background: var(--card-bg, #242729);
    border: 1px solid var(--border-color, #3c4146);
}

.webtron-ai-chat-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--ezd_brand_color, #0866ff);
    color: #ffffff;
}

.webtron-ai-chat-popup-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.webtron-ai-chat-popup-title i {
    font-size: 20px;
}

.webtron-ai-chat-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: background 0.2s ease;
}

.webtron-ai-chat-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.webtron-ai-chat-popup-content {
    flex: 1;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.webtron-ai-chat-popup-content .webtron-ai-chat-container {
    height: 100%;
    border: none;
    border-radius: 0;
}

.webtron-ai-chat-popup-content .webtron-ai-chat-wrapper {
    height: 100% !important;
    max-height: none !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.webtron-ai-chat-popup-content .webtron-ai-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.webtron-ai-chat-popup-content .webtron-ai-chat-input-area {
    flex-shrink: 0;
}

.webtron-ai-chat-popup-content .webtron-ai-chat-header {
    display: none; /* Hide inner header since popup has its own */
}

/* AI Chat Popup Dark Mode */
body.dark-mode .webtron-ai-chat-popup .webtron-ai-chat-container,
body.body_dark .webtron-ai-chat-popup .webtron-ai-chat-container {
    --wai-bg: #1f2937;
    --wai-bg-light: #263244;
    --wai-text: #f1f5f9;
    --wai-text-light: #94a3b8;
    --wai-border: #3c4146;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-chat-wrapper,
body.body_dark .webtron-ai-chat-popup .webtron-ai-chat-wrapper {
    background: #1f2937;
    border-color: #3c4146;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-chat-messages,
body.body_dark .webtron-ai-chat-popup .webtron-ai-chat-messages {
    background: #1f2937;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-welcome-title,
body.body_dark .webtron-ai-chat-popup .webtron-ai-welcome-title {
    color: #f1f5f9;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-welcome-text,
body.body_dark .webtron-ai-chat-popup .webtron-ai-welcome-text {
    color: #94a3b8;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-suggestion,
body.body_dark .webtron-ai-chat-popup .webtron-ai-suggestion {
    background: #263244;
    border-color: #3c4146;
    color: #e2e8f0;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-suggestion:hover,
body.body_dark .webtron-ai-chat-popup .webtron-ai-suggestion:hover {
    background: #334155;
    border-color: #60a5fa;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-chat-input-area,
body.body_dark .webtron-ai-chat-popup .webtron-ai-chat-input-area {
    background: #1f2937;
    border-top-color: #3c4146;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-rich-toolbar,
body.body_dark .webtron-ai-chat-popup .webtron-ai-rich-toolbar {
    background: #263244;
    border-color: #3c4146;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-rich-toolbar-btn,
body.body_dark .webtron-ai-chat-popup .webtron-ai-rich-toolbar-btn {
    color: #94a3b8;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-rich-toolbar-btn:hover,
body.body_dark .webtron-ai-chat-popup .webtron-ai-rich-toolbar-btn:hover {
    background: #334155;
    color: #f1f5f9;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-toolkit-btn,
body.body_dark .webtron-ai-chat-popup .webtron-ai-toolkit-btn {
    background: #334155;
    color: #e2e8f0;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-chat-input,
body.body_dark .webtron-ai-chat-popup .webtron-ai-chat-input {
    background: #263244;
    border-color: #3c4146;
    color: #f1f5f9;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-chat-input::placeholder,
body.body_dark .webtron-ai-chat-popup .webtron-ai-chat-input::placeholder {
    color: #64748b;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-mic-btn,
body.dark-mode .webtron-ai-chat-popup .webtron-ai-upload-btn,
body.body_dark .webtron-ai-chat-popup .webtron-ai-mic-btn,
body.body_dark .webtron-ai-chat-popup .webtron-ai-upload-btn {
    color: #94a3b8;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-toolkit-popup,
body.body_dark .webtron-ai-chat-popup .webtron-ai-toolkit-popup {
    background: #1f2937;
    border-color: #3c4146;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-toolkit-header,
body.body_dark .webtron-ai-chat-popup .webtron-ai-toolkit-header {
    border-bottom-color: #3c4146;
    color: #f1f5f9;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-toolkit-option,
body.body_dark .webtron-ai-chat-popup .webtron-ai-toolkit-option {
    background: #263244;
    border-color: #3c4146;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-toolkit-option:hover,
body.body_dark .webtron-ai-chat-popup .webtron-ai-toolkit-option:hover {
    background: #334155;
    border-color: #60a5fa;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-toolkit-option-name,
body.body_dark .webtron-ai-chat-popup .webtron-ai-toolkit-option-name {
    color: #f1f5f9;
}

body.dark-mode .webtron-ai-chat-popup .webtron-ai-toolkit-option-desc,
body.body_dark .webtron-ai-chat-popup .webtron-ai-toolkit-option-desc {
    color: #94a3b8;
}

/* AI Chat Overlay - Disabled, using panel shadow instead */
.webtron-ai-chat-overlay {
    display: none !important;
}

/* Mobile responsive - up to 768px */
@media screen and (max-width: 768px) {
    .webtron-ai-chat-popup {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 70px); /* Stretch to just beneath .wtn-navigation */
        height: calc(100vh - 70px);
        border-radius: 16px 16px 0 0;
    }
    
    .webtron-ai-chat-popup.active {
        bottom: 0;
    }
    
    /* When sticky nav is scrolled, it's smaller */
    body.wtn-nav-scrolled .webtron-ai-chat-popup {
        max-height: calc(100vh - 56px);
        height: calc(100vh - 56px);
    }
}

/* ============================================================================
   DARK MODE TOGGLE BUTTON
   ============================================================================ */

.dark-mode-toggle-wrapper {
    position: fixed;
    bottom: 115px;
    right: 35px;
    z-index: var(--z-modal);
}

/* When inside FAB container, reset positioning */
.webtron-fab-container .dark-mode-toggle-wrapper {
    position: static;
    z-index: auto;
    order: 2; /* Middle position */
}

.dark-mode-toggle {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dark-mode-toggle,
body.body_dark .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.dark-mode-toggle:hover {
    background: var(--ezd_brand_color, #0866ff);
    border-color: var(--ezd_brand_color, #0866ff);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.dark-mode-toggle i {
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dark-mode-toggle:hover i {
    transform: rotate(20deg);
}

/* Toggle icon visibility */
body.dark-mode .fa-moon,
body.body_dark .fa-moon {
    display: none;
}

body.dark-mode .fa-sun,
body.body_dark .fa-sun {
    display: inline-flex;
}

body:not(.dark-mode):not(.body_dark) .fa-sun {
    display: none;
}

body:not(.dark-mode):not(.body_dark) .fa-moon {
    display: inline-block;
}

@media (max-width: 768px) {
    .dark-mode-toggle-wrapper {
        bottom: 100px;
        right: 25px;
    }

    .dark-mode-toggle {
        width: 45px;
        height: 45px;
    }

    .dark-mode-toggle i {
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
}

/* ============================================================================
   CALLOUT BOX STYLES
   ============================================================================ */

/* Legacy Callout Box Support */
.wp-coutb-callout-box.warning {
    border-left: 15px solid #78350f !important;
    border-radius: 0px;
    border: 0px;
    color: #78350f !important;
}

.wp-coutb-callout-box.success {
    border-left: 15px solid #15803d !important;
    border-radius: 0px;
    border: 0px;
    color: #15803d !important;
}

.wp-coutb-callout-box.primary {
    border-left: 15px solid #1e40af !important;
    border-radius: 0px;
    border: 0px;
    color: #1e40af !important;
}

.wp-coutb-callout-box.danger {
    border-left: 15px solid #b91c1c !important;
    border-radius: 0px;
    border: 0px;
    color: #b91c1c !important;
}

.wp-coutb-callout-box.warning strong { color: #78350f !important; }
.wp-coutb-callout-box.success strong { color: #15803d !important; }
.wp-coutb-callout-box.primary strong { color: #1e40af !important; }
.wp-coutb-callout-box.danger strong { color: #b91c1c !important; }

/* Dark mode callout boxes */
body.dark-mode .wp-coutb-callout-box,
body.body_dark .wp-coutb-callout-box {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .wp-coutb-callout-box.primary,
body.body_dark .wp-coutb-callout-box.primary {
    border-left-color: #60a5fa !important;
    color: #93c5fd !important;
}

body.dark-mode .wp-coutb-callout-box.primary strong,
body.body_dark .wp-coutb-callout-box.primary strong {
    color: #93c5fd !important;
}

body.dark-mode .wp-coutb-callout-box.success,
body.body_dark .wp-coutb-callout-box.success {
    border-left-color: #4ade80 !important;
    color: #86efac !important;
}

body.dark-mode .wp-coutb-callout-box.success strong,
body.body_dark .wp-coutb-callout-box.success strong {
    color: #86efac !important;
}

body.dark-mode .wp-coutb-callout-box.warning,
body.body_dark .wp-coutb-callout-box.warning {
    border-left-color: #fbbf24 !important;
    color: #fcd34d !important;
}

body.dark-mode .wp-coutb-callout-box.warning strong,
body.body_dark .wp-coutb-callout-box.warning strong {
    color: #fcd34d !important;
}

body.dark-mode .wp-coutb-callout-box.danger,
body.body_dark .wp-coutb-callout-box.danger {
    border-left-color: #f87171 !important;
    color: #fca5a5 !important;
}

body.dark-mode .wp-coutb-callout-box.danger strong,
body.body_dark .wp-coutb-callout-box.danger strong {
    color: #fca5a5 !important;
}

/* ============================================================================
   HOVER-PLAY VIDEO BLOCK
   ============================================================================ */

.wp-block-video.hover-play {
    position: relative;
    cursor: pointer;
}

.wp-block-video.hover-play video {
    display: block;
    width: 100%;
}

.wp-block-video.hover-play .video-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.wp-block-video.hover-play.is-playing .video-hover-overlay {
    opacity: 0;
}

.wp-block-video.hover-play .video-hover-overlay .play-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wp-block-video.hover-play .video-hover-overlay .play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wp-block-video.hover-play .video-hover-overlay .play-button::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent var(--ezd_brand_color, #3e57da);
    margin-left: 5px;
}

.wp-block-video.hover-play:hover .video-hover-overlay .play-button {
    transform: scale(1.1);
    background: #fff;
}

.wp-block-video.hover-play .video-hover-overlay .play-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Dark mode hover-play */
body.dark-mode .wp-block-video.hover-play .video-hover-overlay,
body.body_dark .wp-block-video.hover-play .video-hover-overlay {
    background: rgba(0, 0, 0, 0.6);
}

body.dark-mode .wp-block-video.hover-play .video-hover-overlay .play-button,
body.body_dark .wp-block-video.hover-play .video-hover-overlay .play-button {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .wp-block-video.hover-play:hover .video-hover-overlay .play-button,
body.body_dark .wp-block-video.hover-play:hover .video-hover-overlay .play-button {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .wp-block-video.hover-play .video-hover-overlay .play-button {
        width: 60px;
        height: 60px;
    }

    .wp-block-video.hover-play .video-hover-overlay .play-button::before {
        border-width: 12px 0 12px 20px;
    }

    .wp-block-video.hover-play .video-hover-overlay .play-text {
        font-size: 14px;
    }
}

/* ============================================================================
   DOCUMENTATION-SPECIFIC STYLES
   ============================================================================ */

/* Improve code readability in docs */
.wp-block-code,
pre.wp-block-code {
    border-radius: 6px;
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Inline code styling */
:not(pre) > code {
    background: var(--code-bg, #f6f7f7);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

body.dark-mode :not(pre) > code,
body.body_dark :not(pre) > code {
    background: var(--code-bg);
}

/* Table of Contents styling for documentation */
.wp-block-table-of-contents {
    background: var(--card-bg, #f9f9f9);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

body.dark-mode .wp-block-table-of-contents,
body.body_dark .wp-block-table-of-contents {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Documentation sidebar improvements */
.docs-sidebar,
.ezd-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* ============================================================================
   AI DOCS SEARCH BLOCK - MOBILE RESPONSIVE OVERRIDES
   ============================================================================ */

/* Mobile (768px and below) */
@media screen and (max-width: 768px) {
    .wp-block-webtron-ai-docs-search {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search {
        display: block !important;
        width: calc(100% - 2rem) !important;
        max-width: none !important;
        margin: 1rem !important;
        padding: 1.5rem !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search *,
    .wp-block-webtron-ai-docs-search .webtron-ai-search *::before,
    .wp-block-webtron-ai-docs-search .webtron-ai-search *::after {
        box-sizing: border-box !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__heading {
        margin-bottom: 1.25rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__heading h2 {
        font-size: 1.375rem !important;
        line-height: 1.3 !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__rotating {
        display: block !important;
        min-width: 0 !important;
        text-align: center !important;
        margin-top: 0.25rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__section-title {
        font-size: 1.125rem !important;
        margin-bottom: 1rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tags--primary {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tag {
        flex: 1 1 calc(50% - 0.25rem) !important;
        min-width: 0 !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        justify-content: center !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tags--secondary,
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tags--tertiary {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__alternative {
        margin-top: 1.25rem !important;
        width: 100% !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__alternative-divider {
        margin-bottom: 0.75rem !important;
        font-size: 0.8125rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__search-bar,
    .wp-block-webtron-ai-docs-search .webtron-ai-search__search-bar--inline {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 1rem !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__search-icon {
        display: none !important;
    }
    
    /* Critical input fix for mobile */
    .wp-block-webtron-ai-docs-search .webtron-ai-search__input,
    .wp-block-webtron-ai-docs-search input.webtron-ai-search__input,
    .wp-block-webtron-ai-docs-search input.webtron-ai-search__input--inline,
    .wp-block-webtron-ai-docs-search .webtron-ai-search input[type="text"],
    .wp-block-webtron-ai-docs-search .webtron-ai-search input[type="search"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        padding: 1rem !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        font-size: 1rem !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__submit {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        padding: 1rem !important;
        border: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.125) !important;
        border-radius: 0 0 11px 11px !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__path {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__step-header {
        flex-wrap: wrap !important;
    }
}

/* Small Mobile (480px and below - iPhone 14 Pro Max is 430px) */
@media screen and (max-width: 480px) {
    .wp-block-webtron-ai-docs-search .webtron-ai-search {
        width: calc(100% - 1.5rem) !important;
        margin: 0.75rem !important;
        padding: 1.25rem 1rem !important;
        border-radius: 12px !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__heading h2 {
        font-size: 1.25rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__section-title {
        font-size: 1rem !important;
        margin-bottom: 0.875rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tags,
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tags--primary {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tag {
        flex: none !important;
        width: 100% !important;
        padding: 0.875rem 1rem !important;
        font-size: 0.8125rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tags--secondary,
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tags--tertiary {
        grid-template-columns: 1fr !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__alternative-divider {
        font-size: 0.75rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__input,
    .wp-block-webtron-ai-docs-search input.webtron-ai-search__input,
    .wp-block-webtron-ai-docs-search input.webtron-ai-search__input--inline,
    .wp-block-webtron-ai-docs-search .webtron-ai-search input[type="text"],
    .wp-block-webtron-ai-docs-search .webtron-ai-search input[type="search"] {
        padding: 0.875rem !important;
        font-size: 0.9375rem !important;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__submit {
        padding: 0.875rem !important;
        font-size: 0.875rem !important;
    }
}

/* ============================================================================
   ULTRAWIDE MONITOR RESPONSIVE STYLES - CUSTOM BLOCKS
   ============================================================================ */

/* QHD / 2K Monitors (2560px) */
@media screen and (min-width: 2560px) {
    /* AI Docs Search Block */
    .wp-block-webtron-ai-docs-search .webtron-ai-search {
        max-width: 900px;
        padding: 3.5rem 3rem;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__heading h2 {
        font-size: clamp(2rem, 3vw, 3rem);
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tag {
        padding: 1.25rem 2rem;
        font-size: 1.0625rem;
        min-width: 260px;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__input {
        font-size: 1.125rem;
        padding: 1.25rem 1rem;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__submit {
        font-size: 1rem;
        padding: 1.25rem 2rem;
    }
    
    /* Callout Block */
    .webtron-callout {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .webtron-callout-title {
        font-size: 1.125rem;
    }
    
    .webtron-callout-content {
        font-size: 1.0625rem;
    }
    
    /* Tabs Block */
    .wp-block-webtron-tabs .tab-button {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .wp-block-webtron-tabs .tab-content {
        padding: 1.75rem;
        font-size: 1.0625rem;
    }
    
    /* Code Highlight Block */
    .wp-block-webtron-code-highlight pre {
        padding: 1.75rem;
        font-size: 1rem;
    }
    
    /* Changelog Block */
    .webtron-changelog-version {
        padding: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .webtron-changelog-version-number {
        font-size: 1.75rem;
    }
    
    .webtron-changelog-item {
        font-size: 1.0625rem;
        padding: 0.75rem 1rem;
    }
    
    /* API Reference Block */
    .webtron-api-endpoint {
        padding: 2rem;
    }
    
    .webtron-api-method {
        font-size: 1rem;
        padding: 0.625rem 1rem;
    }
    
    .webtron-api-path {
        font-size: 1.125rem;
    }
    
    /* Before/After Block */
    .wp-block-webtron-before-after {
        max-width: 1000px;
    }
    
    /* Comparison Table Block */
    .webtron-comparison-table th,
    .webtron-comparison-table td {
        padding: 1.25rem 1.5rem;
        font-size: 1.0625rem;
    }
    
    /* Tutorials Block */
    .webtron-tutorials-card-title {
        font-size: 1.25rem;
    }
    
    .webtron-tutorials-card-description {
        font-size: 1rem;
    }
    
    /* Navigation Block */
    .wtn-navigation {
        padding: 1rem 3rem;
    }
    
    .wtn-menu-item > a {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    /* Feedback Widget */
    .webtron-feedback-form {
        max-width: 800px;
    }
    
    .webtron-feedback-title {
        font-size: 1.5rem;
    }
}

/* 4K / Ultra-wide Monitors (3440px+) */
@media screen and (min-width: 3440px) {
    /* AI Docs Search Block */
    .wp-block-webtron-ai-docs-search .webtron-ai-search {
        max-width: 1100px;
        padding: 4rem 3.5rem;
        border-radius: 28px;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__heading h2 {
        font-size: clamp(2.5rem, 3.5vw, 3.5rem);
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__section-title {
        font-size: 1.375rem;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__tag {
        padding: 1.5rem 2.5rem;
        font-size: 1.125rem;
        min-width: 300px;
        border-radius: 16px;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__input {
        font-size: 1.25rem;
        padding: 1.5rem 1.25rem;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__submit {
        font-size: 1.125rem;
        padding: 1.5rem 2.5rem;
    }
    
    .wp-block-webtron-ai-docs-search .webtron-ai-search__privacy-notice {
        font-size: 0.9375rem;
    }
    
    /* Callout Block */
    .webtron-callout {
        padding: 2.5rem;
        border-radius: 16px;
    }
    
    .webtron-callout-icon {
        width: 28px;
        height: 28px;
    }
    
    .webtron-callout-title {
        font-size: 1.25rem;
    }
    
    .webtron-callout-content {
        font-size: 1.125rem;
        line-height: 1.75;
    }
    
    /* Tabs Block */
    .wp-block-webtron-tabs .tab-button {
        font-size: 1.125rem;
        padding: 1.25rem 2rem;
    }
    
    .wp-block-webtron-tabs .tab-content {
        padding: 2.5rem;
        font-size: 1.125rem;
    }
    
    /* Code Highlight Block */
    .wp-block-webtron-code-highlight pre {
        padding: 2rem;
        font-size: 1.0625rem;
        border-radius: 12px;
    }
    
    .wp-block-webtron-code-highlight .copy-button {
        font-size: 0.9375rem;
        padding: 0.625rem 1rem;
    }
    
    /* Changelog Block */
    .webtron-changelog-version {
        padding: 3rem;
        border-radius: 16px;
    }
    
    .webtron-changelog-version-number {
        font-size: 2rem;
    }
    
    .webtron-changelog-version-date {
        font-size: 1rem;
    }
    
    .webtron-changelog-item {
        font-size: 1.125rem;
        padding: 1rem 1.25rem;
    }
    
    /* API Reference Block */
    .webtron-api-endpoint {
        padding: 2.5rem;
        border-radius: 16px;
    }
    
    .webtron-api-method {
        font-size: 1.0625rem;
        padding: 0.75rem 1.25rem;
    }
    
    .webtron-api-path {
        font-size: 1.25rem;
    }
    
    .webtron-api-description {
        font-size: 1.0625rem;
    }
    
    /* Before/After Block */
    .wp-block-webtron-before-after {
        max-width: 1200px;
    }
    
    /* Comparison Table Block */
    .webtron-comparison-table th,
    .webtron-comparison-table td {
        padding: 1.5rem 2rem;
        font-size: 1.125rem;
    }
    
    /* Timeline Block */
    .webtron-timeline-item {
        padding-left: 2.5rem;
    }
    
    .webtron-timeline-title {
        font-size: 1.375rem;
    }
    
    .webtron-timeline-content {
        font-size: 1.0625rem;
    }
    
    /* Tutorials Block */
    .webtron-tutorials-card {
        padding: 2rem;
    }
    
    .webtron-tutorials-card-title {
        font-size: 1.5rem;
    }
    
    .webtron-tutorials-card-description {
        font-size: 1.0625rem;
    }
    
    /* Checklist Block */
    .webtron-checklist-item {
        font-size: 1.0625rem;
        padding: 1rem 0;
    }
    
    /* Navigation Block */
    .wtn-navigation {
        padding: 1.25rem 4rem;
    }
    
    .wtn-menu-item > a {
        font-size: 1.0625rem;
        padding: 1rem 1.25rem;
    }
    
    .wtn-logo img {
        max-height: 50px;
    }
    
    /* Video Banner Block */
    .wp-block-webtron-video-banner .video-banner-content h1,
    .wp-block-webtron-video-banner .video-banner-content h2 {
        font-size: 4rem;
    }
    
    .wp-block-webtron-video-banner .video-banner-content p {
        font-size: 1.5rem;
    }
    
    /* Feedback Widget */
    .webtron-feedback-form {
        max-width: 1000px;
        padding: 3rem;
    }
    
    .webtron-feedback-title {
        font-size: 1.75rem;
    }
    
    .webtron-feedback-button {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}

