/*
Theme Name: VDO Industrial Equipment
Theme URI: https://vdo-equipment.com
Author: VDO International Trade Co., Ltd
Author URI: https://vdo-equipment.com
Description: Professional WordPress Block Theme for industrial car wash equipment manufacturer. Features AI-powered product recommendation, solution generator, and customer service chatbot. Built with FSE (Full Site Editing) and Block API v3.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vdo-theme
Tags: full-site-editing, block-patterns, block-styles, custom-colors, custom-menu, featured-images, wide-blocks, industrial, manufacturing, e-commerce

VDO Industrial Equipment Theme - Professional B2B industrial equipment theme
with AI-powered features for product selection and customer support.
*/

/* Base Reset & Typography */
:root {
    --vdo-primary: #1a2b4a;
    --vdo-primary-light: #2d4a7c;
    --vdo-secondary: #0066cc;
    --vdo-accent: #ff6600;
    --vdo-accent-yellow: #ffc107;
    --vdo-success: #28a745;
    --vdo-text: #333333;
    --vdo-text-light: #666666;
    --vdo-bg-light: #f8f9fa;
    --vdo-bg-dark: #1a2b4a;
    --vdo-white: #ffffff;
    --vdo-border: #e0e0e0;
    --vdo-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --vdo-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --vdo-radius: 8px;
    --vdo-radius-lg: 16px;
    --vdo-transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--vdo-text);
    line-height: 1.6;
}

.wp-site-blocks {
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--vdo-primary);
}

/* Button Styles */
.wp-block-button__link {
    border-radius: var(--vdo-radius);
    padding: 12px 28px;
    font-weight: 600;
    transition: var(--vdo-transition);
}

.wp-block-button.is-style-vdo-primary .wp-block-button__link {
    background: var(--vdo-accent);
    color: var(--vdo-white);
    border: none;
}

.wp-block-button.is-style-vdo-primary .wp-block-button__link:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: var(--vdo-shadow);
}

.wp-block-button.is-style-vdo-secondary .wp-block-button__link {
    background: transparent;
    color: var(--vdo-white);
    border: 2px solid var(--vdo-white);
}

.wp-block-button.is-style-vdo-secondary .wp-block-button__link:hover {
    background: var(--vdo-white);
    color: var(--vdo-primary);
}

/* Section Titles */
.vdo-section-title {
    text-align: center;
    margin-bottom: 48px;
}

.vdo-section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.vdo-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--vdo-accent), var(--vdo-accent-yellow));
    border-radius: 2px;
}

/* Product Cards */
.vdo-product-card {
    background: var(--vdo-white);
    border-radius: var(--vdo-radius-lg);
    overflow: hidden;
    transition: var(--vdo-transition);
    box-shadow: var(--vdo-shadow);
}

.vdo-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--vdo-shadow-lg);
}

.vdo-product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vdo-product-card-content {
    padding: 20px;
}

.vdo-product-card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Category Grid */
.vdo-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.vdo-category-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--vdo-white);
    border-radius: var(--vdo-radius-lg);
    transition: var(--vdo-transition);
    border: 2px solid transparent;
}

.vdo-category-item:hover {
    border-color: var(--vdo-secondary);
    transform: translateY(-4px);
}

.vdo-category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.vdo-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.vdo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 43, 74, 0.9) 0%, rgba(26, 43, 74, 0.7) 100%);
}

.vdo-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.vdo-hero h1 {
    font-size: 3rem;
    color: var(--vdo-white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.vdo-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* Country Flags Bar */
.vdo-flags-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--vdo-secondary);
    flex-wrap: wrap;
}

.vdo-flags-bar img {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 2px;
    transition: var(--vdo-transition);
}

.vdo-flags-bar img:hover {
    transform: scale(1.2);
}

/* About Section */
.vdo-about-section {
    background: linear-gradient(135deg, var(--vdo-bg-light) 0%, var(--vdo-white) 100%);
}

.vdo-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Gallery Grid */
.vdo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.vdo-gallery-item {
    overflow: hidden;
    border-radius: var(--vdo-radius);
}

.vdo-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--vdo-transition);
}

.vdo-gallery-item:hover img {
    transform: scale(1.1);
}

/* Why Choose Us */
.vdo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.vdo-feature-item {
    text-align: center;
    padding: 40px 24px;
    background: var(--vdo-white);
    border-radius: var(--vdo-radius-lg);
    box-shadow: var(--vdo-shadow);
}

.vdo-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--vdo-secondary), var(--vdo-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vdo-white);
    font-size: 2rem;
}

/* Hot Deal Banner */
.vdo-hot-deal {
    background: var(--vdo-primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.vdo-hot-deal::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--vdo-accent);
    opacity: 0.1;
    border-radius: 50%;
}

.vdo-hot-badge {
    display: inline-block;
    background: var(--vdo-accent);
    color: var(--vdo-white);
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

/* Product Line Sections */
.vdo-product-line {
    padding: 80px 0;
}

.vdo-product-line:nth-child(even) {
    background: var(--vdo-bg-light);
}

.vdo-star-rating {
    color: var(--vdo-accent-yellow);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.vdo-certifications {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}

.vdo-certification-badge {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Exhibition Section */
.vdo-exhibition {
    background: var(--vdo-primary);
    padding: 80px 0;
    color: var(--vdo-white);
}

.vdo-exhibition h2 {
    color: var(--vdo-white);
}

/* AI Chat Widget Styles */
.vdo-ai-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.vdo-ai-chat-trigger {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vdo-accent), var(--vdo-accent-yellow));
    border: none;
    cursor: pointer;
    box-shadow: var(--vdo-shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--vdo-transition);
}

.vdo-ai-chat-trigger:hover {
    transform: scale(1.1);
}

.vdo-ai-chat-trigger svg {
    width: 32px;
    height: 32px;
    fill: var(--vdo-white);
}

.vdo-ai-chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    background: var(--vdo-white);
    border-radius: var(--vdo-radius-lg);
    box-shadow: var(--vdo-shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.vdo-ai-chat-panel.is-open {
    display: flex;
}

.vdo-ai-chat-header {
    background: linear-gradient(135deg, var(--vdo-primary), var(--vdo-primary-light));
    color: var(--vdo-white);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vdo-ai-chat-avatar {
    width: 48px;
    height: 48px;
    background: var(--vdo-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vdo-ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vdo-ai-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--vdo-radius-lg);
    line-height: 1.5;
}

.vdo-ai-message.bot {
    background: var(--vdo-bg-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.vdo-ai-message.user {
    background: var(--vdo-secondary);
    color: var(--vdo-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.vdo-ai-chat-input {
    padding: 16px;
    border-top: 1px solid var(--vdo-border);
    display: flex;
    gap: 12px;
}

.vdo-ai-chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--vdo-border);
    border-radius: var(--vdo-radius);
    font-size: 14px;
    outline: none;
    transition: var(--vdo-transition);
}

.vdo-ai-chat-input input:focus {
    border-color: var(--vdo-secondary);
}

.vdo-ai-chat-input button {
    padding: 12px 20px;
    background: var(--vdo-accent);
    color: var(--vdo-white);
    border: none;
    border-radius: var(--vdo-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--vdo-transition);
}

.vdo-ai-chat-input button:hover {
    background: #e55a00;
}

/* AI Product Finder Styles */
.vdo-ai-product-finder {
    background: linear-gradient(135deg, var(--vdo-primary), var(--vdo-primary-light));
    padding: 60px;
    border-radius: var(--vdo-radius-lg);
    color: var(--vdo-white);
}

.vdo-ai-finder-steps {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

.vdo-ai-finder-step {
    flex: 1;
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--vdo-radius);
}

.vdo-ai-finder-step-number {
    width: 48px;
    height: 48px;
    background: var(--vdo-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer Styles */
.vdo-footer {
    background: var(--vdo-bg-dark);
    color: var(--vdo-white);
    padding: 80px 0 24px;
}

.vdo-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.vdo-footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.vdo-footer h4 {
    color: var(--vdo-white);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.vdo-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vdo-footer-links li {
    margin-bottom: 12px;
}

.vdo-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--vdo-transition);
}

.vdo-footer-links a:hover {
    color: var(--vdo-accent);
}

.vdo-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .vdo-about-grid {
        grid-template-columns: 1fr;
    }
    
    .vdo-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .vdo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vdo-hero h1 {
        font-size: 2rem;
    }
    
    .vdo-section-title h2 {
        font-size: 1.8rem;
    }
    
    .vdo-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .vdo-ai-chat-panel {
        width: 100%;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .vdo-ai-finder-steps {
        flex-direction: column;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vdo-animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.vdo-animate-pulse {
    animation: pulse 2s ease infinite;
}

/* Loading States */
.vdo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vdo-loading-dot {
    width: 8px;
    height: 8px;
    background: var(--vdo-secondary);
    border-radius: 50%;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.vdo-loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.vdo-loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}
