/* --- Extended Base Variables --- */
:root {
    --bg-color: #ffffff;
    --bg-image: none;
    --text-color: #111111;
    --primary-color: #000000;
    --primary-text: #ffffff;
    --accent-color: #e0e0e0;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --btn-radius: 12px;
    --panel-bg: transparent;
    --panel-border: transparent;
    --panel-blur: blur(0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    padding-top: 60px; /* Offset for demo bar */
}

#app-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* --- Dynamic Panel Wrapper for Image Backgrounds --- */
.glass-wrapper {
    background: var(--panel-bg);
    backdrop-filter: var(--panel-blur);
    -webkit-backdrop-filter: var(--panel-blur);
    border: 1px solid var(--panel-border);
    border-radius: var(--btn-radius);
    padding: 24px;
    margin-bottom: 20px;
}

#brand-header { text-align: center; padding: 10px 0 30px 0; }
#brand-logo { max-width: 180px; max-height: 80px; object-fit: contain; }

.view { display: none; flex-direction: column; animation: fadeIn 0.4s ease forwards; }
.view.active { display: flex; }

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

h1 { font-size: 2rem; margin-bottom: 15px; line-height: 1.2; }
h2 { font-size: 1.5rem; margin-bottom: 25px; line-height: 1.3; }
p { font-size: 1.1rem; line-height: 1.5; color: inherit; opacity: 0.9; margin-bottom: 30px; }

button { font-family: inherit; cursor: pointer; border: none; transition: all 0.2s ease; }

.btn-primary {
    background-color: var(--primary-color);
    color: var(--primary-text);
    padding: 18px 24px;
    border-radius: var(--btn-radius);
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
}

.options-grid { display: flex; flex-direction: column; gap: 12px; }

.btn-option {
    background-color: var(--panel-bg);
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    padding: 20px;
    border-radius: var(--btn-radius);
    font-size: 1.1rem;
    text-align: left;
    font-weight: 600;
}

.btn-option:active { background-color: var(--primary-color); color: var(--primary-text); }

.btn-text {
    background: none; color: var(--text-color); text-decoration: underline; opacity: 0.8; font-weight: bold;
}

.progress-bar { width: 100%; height: 6px; background-color: var(--accent-color); border-radius: 3px; margin-bottom: 30px; overflow: hidden; }
#progress-fill { height: 100%; background-color: var(--primary-color); width: 0%; transition: width 0.3s ease; }

.result-kicker { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; margin-bottom: 5px; color: var(--primary-color); opacity: 1; text-align: center; }
#result-title { text-align: center; }

#result-image { width: 100%; height: 220px; object-fit: cover; border-radius: calc(var(--btn-radius) - 4px); margin-bottom: 20px; }

.result-meta { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.meta-tag { background-color: var(--primary-color); color: var(--primary-text); padding: 8px 16px; border-radius: var(--btn-radius); font-size: 0.9rem; font-weight: 700; }

.spinner { border: 4px solid var(--accent-color); border-top: 4px solid var(--primary-color); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#secondary-links { text-align: center; margin-top: 10px; }
.social-row { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
