/* ========================================
   Shared Demo Site Styles
   Used across all showcase demo sites
   Created: 2026-03-17
   ======================================== */

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

:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================
   Language switcher
   ======================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    padding: 5px 12px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}

.lang-btn.active {
    background: var(--white, #fff);
    color: #111;
}

/* Dark-bg variant for pages with dark headers */
.lang-switcher--dark {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Light-bg variant */
.lang-switcher--light {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.lang-switcher--light .lang-btn {
    color: rgba(0, 0, 0, 0.5);
}

.lang-switcher--light .lang-btn.active {
    background: #111;
    color: #fff;
}

/* Hide/show language content */
[data-lang="mt"] {
    display: none;
}

body.lang-mt [data-lang="en"] {
    display: none;
}

body.lang-mt [data-lang="mt"] {
    display: revert;
}

/* ========================================
   Demo top bar — Fixed strip at top, links back to AdsWaves
   ======================================== */
.demo-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 10px 20px;
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.demo-topbar p {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.demo-topbar a {
    color: #ef4444;
    font-weight: 600;
    text-decoration: none;
    font-size: var(--font-size-xs);
    transition: color 0.2s ease;
}

.demo-topbar a:hover {
    color: #fff;
}

.demo-topbar .demo-topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    background: #ef4444;
    color: #fff;
    border-radius: 100px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.demo-topbar .demo-topbar-cta:hover {
    background: #dc2626;
    color: #fff;
}

/* Push page content below fixed top bar */
body.has-demo-topbar {
    padding-top: 40px;
}

/* Legacy bottom banner — kept for backward compat */
.demo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 12px 20px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.demo-banner p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

.demo-banner a {
    color: #ef4444;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.demo-banner a:hover {
    color: #fff;
}

/* ========================================
   Shared container
   ======================================== */
.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Shared section patterns
   ======================================== */
.demo-section {
    padding: clamp(4rem, 10vw, 7rem) 0;
}

.demo-section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.demo-section-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

/* ========================================
   Shared CTA button pattern
   ======================================== */
.demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.demo-btn:hover {
    transform: translateY(-2px);
}

/* ========================================
   Image placeholder
   ======================================== */
.demo-img-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.demo-img-placeholder span {
    opacity: 0.4;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 1rem;
}

/* ========================================
   Shared footer
   ======================================== */
.demo-footer {
    padding: 3rem 0;
    text-align: center;
}

.demo-footer p {
    font-size: var(--font-size-sm);
    opacity: 0.5;
}

/* ========================================
   Reveal animation
   ======================================== */
.demo-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-reveal-delay-1 { transition-delay: 0.1s; }
.demo-reveal-delay-2 { transition-delay: 0.2s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 767px) {
    .demo-topbar {
        gap: 6px;
    }

    .demo-topbar p {
        display: none;
    }

    .demo-banner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
