/**
 * LORIS.PRO - Demo Banner Styles v2.6
 * v2.6: Two-layer geo-guard (inline script + CSS)
 *       Requires inline script in <head> for instant Googlebot detection
 */

/* ============================================
   GEO-GUARD: Hidden by default, shown by inline head script
   Script adds .geo-ok instantly for: Googlebot OR non-Google referrer
   ============================================ */

html:not(.geo-ok) {
    visibility: hidden !important;
}

html.geo-ok {
    visibility: visible !important;
}

/* ============================================
   GLOBAL OVERFLOW PROTECTION
   ============================================ */

html {
    overflow-x: hidden !important;
    max-width: 100vw;
}

body {
    overflow-x: hidden !important;
    max-width: 100%;
}

/* ============================================
   DEMO BANNER - Fixed Bottom (Theme-Aware)
   ============================================ */

.demo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(180deg, rgba(12,12,12,0.98) 0%, rgba(8,8,8,0.99) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid color-mix(in srgb, var(--color-primary, #C9A66B) 15%, transparent);
    padding: 16px 32px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.demo-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.demo-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.demo-badge {
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #111;
    background: var(--color-primary, #C9A66B);
    border-radius: 5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.demo-text {
    font-size: 15px;
    color: #999;
    text-align: center;
    line-height: 1.4;
}

.demo-text strong {
    color: #ddd;
    font-weight: 600;
}

.demo-text a {
    color: var(--color-primary, #C9A66B);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.demo-text a:hover {
    color: var(--color-primary-light, #d4b87a);
    text-decoration: underline;
}

.demo-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #25D366 0%, #1fba59 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.demo-cta:hover {
    background: linear-gradient(135deg, #1fba59 0%, #1aa34d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.demo-cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ============================================
   SPACER - Prevents content overlap
   ============================================ */

.demo-banner-spacer {
    height: 70px;
}

/* ============================================
   RESPONSIVE - Tablet
   ============================================ */

@media (max-width: 900px) {
    .demo-banner {
        padding: 14px 24px;
    }

    .demo-banner-content {
        gap: 16px;
    }

    .demo-banner-left {
        gap: 12px;
    }

    .demo-text {
        font-size: 14px;
    }

    .demo-cta {
        padding: 11px 20px;
        font-size: 13px;
    }
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */

@media (max-width: 680px) {
    .demo-banner {
        padding: 16px 20px;
    }

    .demo-banner-content {
        flex-direction: column;
        gap: 12px;
    }

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

    .demo-badge {
        padding: 6px 12px;
        font-size: 10px;
    }

    .demo-text {
        font-size: 15px;
    }

    .demo-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 14px;
    }

    .demo-banner-spacer {
        height: 160px;
    }
}

/* ============================================
   RESPONSIVE - Small Mobile
   ============================================ */

@media (max-width: 380px) {
    .demo-banner {
        padding: 14px 16px;
    }

    .demo-text {
        font-size: 14px;
    }

    .demo-cta {
        padding: 12px 20px;
        font-size: 13px;
    }

    .demo-cta svg {
        width: 16px;
        height: 16px;
    }

    .demo-banner-spacer {
        height: 170px;
    }
}

/* ============================================
   RESPONSIVE - Extra Small Mobile (< 340px)
   ============================================ */

@media (max-width: 340px) {
    .demo-banner {
        padding: 12px 12px;
    }

    .demo-badge {
        padding: 5px 10px;
        font-size: 9px;
    }

    .demo-text {
        font-size: 13px;
    }

    .demo-cta {
        padding: 10px 16px;
        font-size: 12px;
    }

    .demo-cta svg {
        width: 14px;
        height: 14px;
    }

    .demo-banner-spacer {
        height: 180px;
    }
}
