/*------------------------
--- css/style-demo.css ---
------------------------*/
/* === GLOBAL VARIABLES === */
/* Variables are now primarily defined in style-shared.css */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body { /* Apply base styles directly */
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-secondary); /* Use generic variable */
    background-color: var(--bg-primary); /* Use generic variable */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--theme-transition);
}

/* === DEMO PAGE LAYOUT === */
.container-demo {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.main-demo {
    flex-grow: 1;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

/* === SIMPLIFIED HEADER === */
.header-demo {
    background-color: rgba(var(--bg-secondary-rgb, 30, 30, 30), 0.85); /* Use RGB var */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color); /* Use generic variable */
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height-demo, 60px); /* Use var with fallback */
    display: flex;
    align-items: center;
    transition: var(--theme-transition);
}

.nav-demo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.logo-demo { display: flex; align-items: center; text-decoration: none; }
.logo-demo img { max-height: 35px; margin-right: 0.8rem; filter: brightness(1.1); transition: filter 0.3s ease; }
.logo-demo span { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); } /* Use generic variable */
.nav-demo-links { display: flex; gap: 1rem; }

/* Buttons use variables from shared */
.btn-primary-demo, .btn-secondary-demo {
    padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: 600;
    text-decoration: none; transition: all 0.3s ease, var(--theme-transition); display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-primary-demo { background-color: var(--primary-color); color: var(--bg-primary); }
.btn-primary-demo:hover { background-color: var(--secondary-color); transform: translateY(-2px); }
.btn-secondary-demo { background-color: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-secondary-demo:hover { background-color: var(--bg-tertiary); color: var(--text-primary); }


/* === DEMO PAGE CONTENT === */
.main-demo .container-demo { padding: 0 1rem; }

.demo-title {
    text-align: center; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5rem;
    color: var(--text-primary); /* Use generic variable */
    padding-top: 2rem;
}
.demo-title .text-glow {
    color: var(--primary-color); /* Use generic variable */
    text-shadow: 0 0 10px var(--glow-color), 0 0 15px var(--glow-color); /* Use generic variable */
}

.demo-subtitle {
    text-align: center; font-size: 1.1rem;
    color: var(--text-muted); /* Use generic variable */
    max-width: 650px; margin: 0 auto 2.5rem auto;
}

/* Guidance Tips */
.guidance-tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.tip-card {
    background-color: var(--bg-tertiary); /* Use generic variable */
    border: 1px solid var(--border-color); /* Use generic variable */
    border-radius: 8px; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, var(--theme-transition);
    flex-basis: calc(50% - 1rem); max-width: 350px;
}
@media (min-width: 992px) { .tip-card { flex-basis: calc(25% - 1rem); } }
@media (max-width: 600px) { .tip-card { flex-basis: 100%; } }

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0,0,0, 0.1); /* Adjust shadow for theme */
    border-color: var(--secondary-color); /* Use generic variable */
}
body.dark-theme .tip-card:hover { box-shadow: 0 4px 15px rgba(0,0,0, 0.2); }

.tip-icon { color: var(--secondary-color); font-size: 1.5rem; width: 30px; text-align: center; } /* Use generic variable */
.tip-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; } /* Use generic variable */
.tip-card p i.fa-microphone-alt { color: var(--primary-color); font-size: 1em; } /* Use generic variable */

/* Chatbot Container & Frame */
.chatbot-demo-container {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%); /* Use generic variables */
    border-radius: 15px; padding: 1.5rem; margin: 0 auto 3rem auto; max-width: 850px;
    border: 1px solid var(--border-color); /* Use generic variable */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* Adjust shadow for theme */
    position: relative; min-height: 600px; /* Or adjust as needed */ display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: var(--theme-transition);
}
body.dark-theme .chatbot-demo-container { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); }

/* Inner glow effect */
.chatbot-demo-container::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 15px;
    padding: 2px;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color)); /* Use generic variables */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0.6; z-index: 0; pointer-events: none;
    transition: background 0.3s ease;
}

/* --- Removed Loading Indicator Styles --- */
/*
.loading-indicator {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(var(--bg-secondary-rgb), 0.9);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 10; border-radius: 15px;
    transition: opacity 0.5s ease, background-color 0.3s ease;
}
.loading-indicator.hidden { opacity: 0; pointer-events: none; }

.spinner {
    width: 50px; height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-indicator p { font-size: 1rem; color: var(--text-secondary); }
*/
/* --- End Removed Styles --- */

/* Chatbot Embed Wrapper */
.chatbot-embed-wrapper {
   width: 100%; height: 100%; position: relative; z-index: 1;
   min-height: calc(600px - 3rem); /* Adjust if container min-height changed */ border-radius: 10px; overflow: hidden;
}
/* Styles for content inside the wrapper (shortcode output) */
.chatbot-embed-wrapper > div,
.chatbot-embed-wrapper > iframe /* Add iframe if shortcode outputs one directly */ {
    border-radius: 10px;
    background: var(--bg-primary); /* Ensure chatbot background matches */
    height: 100%;
    width: 100%;
    border: none; /* Remove placeholder border if any */
    color: var(--text-primary); /* Reset text color if needed */
    transition: var(--theme-transition);
}

/* Requirements Notice */
.requirements-notice-demo {
    max-width: 850px; margin: 0 auto 3rem auto; padding: 1.5rem;
    background-color: var(--bg-secondary); /* Use generic variable */
    border: 1px solid var(--border-color); /* Use generic variable */
    border-left: 4px solid var(--primary-color); /* Use generic variable */
    border-radius: 8px; text-align: center;
    transition: var(--theme-transition);
}
.requirements-notice-demo h4 {
    color: var(--primary-color); margin-bottom: 1rem; font-size: 1.15rem; /* Use generic variable */
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.requirements-notice-demo p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 1rem; } /* Use generic variable */
.requirements-notice-demo ul { list-style: none; padding: 0; margin-bottom: 1.5rem; display: inline-block; text-align: left; }
.requirements-notice-demo li { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.6rem; color: var(--text-secondary); } /* Use generic variable */
.requirements-notice-demo li i { color: var(--secondary-color); width: 18px; text-align: center; } /* Use generic variable */
.requirements-notice-demo strong { color: var(--text-primary); } /* Use generic variable */

.btn-link-demo { color: var(--secondary-color); text-decoration: none; font-weight: 600; } /* Use generic variable */
.btn-link-demo:hover { color: var(--primary-color); text-decoration: underline; } /* Use generic variable */
.btn-link-demo i { font-size: 0.8em; margin-left: 3px; }


/* Background Shapes */
.demo-background-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; }
.shape { position: absolute; border-radius: 50%; opacity: 0.08; filter: blur(30px); animation: shape-float 20s infinite ease-in-out alternate; pointer-events: none; transition: background-color 0.3s ease; }
.shape-1 { width: 400px; height: 400px; background-color: var(--primary-color); top: 10%; left: 5%; animation-duration: 22s; } /* Use generic variable */
.shape-2 { width: 300px; height: 300px; background-color: var(--secondary-color); bottom: 15%; right: 10%; animation-duration: 18s; animation-direction: alternate-reverse; } /* Use generic variable */
.shape-3 { width: 200px; height: 200px; background-color: var(--primary-color); top: 60%; left: 15%; animation-duration: 25s; } /* Use generic variable */
body.light-theme .shape { opacity: 0.05; filter: blur(50px); } /* Adjust for light theme */


@keyframes shape-float { 0% { transform: translateY(0px) rotate(0deg) scale(1); } 100% { transform: translateY(-30px) rotate(20deg) scale(1.1); } }


/* === DEMO FOOTER - Uses Shared Footer Styles === */

/* === RESPONSIVE (Demo Page) === */
@media screen and (max-width: 768px) {
    .header-demo { position: static; height: auto; }
    .nav-demo { flex-direction: column; gap: 1rem; padding: 0.8rem 1rem; }
    .nav-demo-links { width: 100%; justify-content: center;}
    .main-demo { padding: 2rem 0; }
    .demo-title { font-size: 1.8rem; padding-top: 1rem; }
    .demo-subtitle { font-size: 1rem; }
    .guidance-tips { gap: 0.8rem; }
    .tip-card { flex-basis: 100%; max-width: none; }
    .chatbot-demo-container { min-height: 500px; padding: 1rem; }
    .chatbot-embed-wrapper { min-height: calc(500px - 2rem); }
    .requirements-notice-demo { padding: 1rem; margin-bottom: 2rem; }
}