 /* CSS Variables & Dark Mode */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 0.5rem;
    --max-width: 72rem;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-main);
    transition: var(--transition);
}

/* Typography */
h1 {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
    line-height: 1.3;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: var(--text-primary);
    position: relative;
}

h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
    line-height: 1.4;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--primary);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* Navigation */
nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

nav ul {
    display: flex;
    gap: 0rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    white-space: nowrap;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* Main Content */
main {
    min-height: 100vh;
    padding: 3rem 0;
}

main > header {
    text-align: center;
    padding: 2rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

section {
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease-out;
}

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

/* Cards & Boxes */
.info-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-left: 4px solid var(--accent);
    color: #92400e;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

@media (prefers-color-scheme: dark) {
    .warning-box {
        background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
        color: #fbbf24;
    }
}

.success-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid var(--secondary);
    color: #065f46;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

@media (prefers-color-scheme: dark) {
    .success-box {
        background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
        color: #6ee7b7;
    }
}

/* Lists */
ul, ol {
    margin: 1.5rem 0 1.5rem 2rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.75rem;
    position: relative;
}

ul li::before {
    content: '▸';
    position: absolute;
    left: 0.5rem;
    color: var(--primary);
    font-weight: bold;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

tr:hover {
    background: var(--bg-tertiary);
}

/* FAQ */
details {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin: 1.5rem 0;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

details[open] {
    box-shadow: var(--shadow-md);
}

summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem;
    transition: var(--transition);
    color: var(--text-primary);
}

summary:hover {
    color: var(--primary);
}

summary::marker {
    color: var(--primary);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(1);
    transition: var(--transition);
}

.cta:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
}

.cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
}

.button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Quote Block */
.quote-block {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: var(--radius);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        padding: 0;
        width: 100%;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* Print */
@media print {
    nav, .cta, footer {
        display: none;
    }
    
    main {
        padding: 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    :root {
        --primary: #0040ff;
        --text-primary: #000;
        --bg-main: #fff;
        --border: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
/* ===================================
    IMAGES & MEDIA STYLES
=================================== */

/* Lazy Loading Placeholder */
.lazy-image {
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
background-size: 200% 100%;
animation: loading 1.5s ease-in-out infinite;
min-height: 200px;
position: relative;
overflow: hidden;
}

@keyframes loading {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}

/* Hero Banner */
.hero-banner {
width: 100%;
height: auto;
max-height: 500px;
object-fit: cover;
border-radius: var(--radius);
box-shadow: var(--shadow-lg);
margin-bottom: 2rem;
}

/* Logo Styles */
.site-logo {
height: 55px;
width: auto;
transition: transform 0.3s ease;
}

.site-logo:hover {
transform: scale(1.05);
}

/* Content Images */
.content-image {
width: 100%;
max-width: 600px;
height: auto;
border-radius: var(--radius);
box-shadow: var(--shadow-md);
margin: 2rem 0;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
}

/* Infographic Images */
.infographic {
background: var(--bg-secondary);
padding: 1rem;
border-radius: var(--radius);
margin: 2rem 0;
}

.infographic img {
width: 100%;
max-width: 600px;
height: auto;
display: block;
margin: 0 auto;
}

/* Mobile App Screenshot */
.mobile-screenshot {
max-width: 300px;
margin: 2rem auto;
display: block;
filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
transition: transform 0.3s ease;
}

.mobile-screenshot:hover {
transform: scale(1.02) rotate(-1deg);
}

/* Comparison Chart */
.comparison-image {
width: 100%;
max-width: 800px;
margin: 2rem auto;
display: block;
background: white;
padding: 1rem;
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
}

/* Section Icons */
.section-icon {
width: 24px;
height: 24px;
display: inline-block;
vertical-align: middle;
margin-right: 0.5rem;
opacity: 0.8;
transition: opacity 0.3s ease;
}

.section-icon:hover {
opacity: 1;
}

/* Floating Images Container */
.image-with-caption {
margin: 2rem 0;
text-align: center;
}

.image-with-caption img {
width: 100%;
height: auto;
border-radius: var(--radius);
margin-bottom: 0.5rem;
}

.image-caption {
font-size: 0.875rem;
color: var(--text-muted);
font-style: italic;
}

/* Side-by-side Images */
.image-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin: 2rem 0;
}

.image-grid img {
width: 100%;
height: auto;
border-radius: var(--radius);
transition: transform 0.3s ease;
}

.image-grid img:hover {
transform: scale(1.05);
}

/* Responsive Images */
.responsive-image {
max-width: 100%;
height: auto;
display: block;
}

/* Image with Overlay */
.image-overlay-container {
position: relative;
overflow: hidden;
border-radius: var(--radius);
margin: 2rem 0;
}

.image-overlay-container img {
width: 100%;
height: auto;
display: block;
transition: transform 0.3s ease;
}

.image-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
color: white;
padding: 2rem 1rem 1rem;
transform: translateY(100%);
transition: transform 0.3s ease;
}

.image-overlay-container:hover .image-overlay {
transform: translateY(0);
}

.image-overlay-container:hover img {
transform: scale(1.05);
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
.comparison-image {
    background: var(--bg-secondary);
    filter: brightness(0.9);
}

.infographic {
    background: var(--bg-tertiary);
}

.content-image {
    filter: brightness(0.95);
}
}

/* Mobile Optimizations */
@media (max-width: 768px) {
.hero-banner {
    max-height: 300px;
}

.mobile-screenshot {
    max-width: 200px;
}

.image-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.content-image {
    margin: 1rem 0;
}
}

/* Print Styles */
@media print {
.hero-banner,
.mobile-screenshot,
.image-overlay-container {
    display: none;
}

.content-image,
.comparison-image {
    max-width: 100%;
    page-break-inside: avoid;
}
}

/* Loading States */
.image-loading {
position: relative;
background: var(--bg-secondary);
min-height: 200px;
}

.image-loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 40px;
height: 40px;
border: 4px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {
to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Aspect Ratio Containers */
.aspect-16-9 {
position: relative;
padding-bottom: 40%;
height: 0;
overflow: hidden;
}

.aspect-16-9 img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}

/* Zoom Effect */
.zoom-container {
overflow: hidden;
border-radius: var(--radius);
margin: 2rem 0;
}

.zoom-container img {
width: 100%;
height: auto;
transition: transform 0.5s ease;
transform-origin: center;
}

.zoom-container:hover img {
transform: scale(1.1);
}

/* Blur Load Effect */
.blur-load {
filter: blur(5px);
transition: filter 0.3s ease;
}

.blur-load.loaded {
filter: blur(0);
}

/* WebP Fallback */
.webp-support .webp-image {
display: block;
}

.no-webp .png-fallback {
display: block;
}

/* Retina Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.site-logo {
    content: url('/wp-content/uploads/wett-portal-logo.webp');
}
}