/* ==========================================================================
   PublicidadeNFC - Estilos da Página de Demonstração Ao Vivo (/demo.html)
   ========================================================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 56px; /* Espaço para o banner superior fixo */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Banner Superior Fixo */
.demo-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 9999;
}

.demo-top-content {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.demo-pill {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.demo-top-text {
    font-size: 0.82rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-top-cta {
    background: #6366f1;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.demo-top-cta:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* Container Principal */
.demo-main-container {
    flex: 1;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
}

/* Review Mode Card (Idêntico ao renderReviewHtml) */
.demo-page-card {
    width: 100%;
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px 22px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.demo-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.demo-place-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    word-break: break-word;
}

.demo-question-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 10px;
}

.demo-sub-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 26px;
}

.demo-options-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.demo-btn-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    border: 1px solid transparent;
    width: 100%;
}

.demo-btn-google {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.demo-btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.4);
}

.demo-btn-complaint {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.15);
}

.demo-btn-complaint:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.demo-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.demo-btn-google .demo-btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.demo-btn-complaint .demo-btn-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.demo-btn-title {
    font-size: 0.98rem;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.demo-btn-sub {
    font-size: 0.78rem;
    opacity: 0.85;
    display: block;
}

.demo-complaint-section {
    display: none;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px 16px;
    margin-top: 16px;
    text-align: left;
    animation: fadeIn 0.3s ease;
}

.demo-complaint-section.active {
    display: block;
}

.demo-stars-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 1.9rem;
    cursor: pointer;
    margin: 12px 0 16px;
}

.demo-star {
    transition: transform 0.2s ease, color 0.2s ease;
}

.demo-star:hover {
    transform: scale(1.2);
}

.demo-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(30, 41, 59, 0.8);
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 10px;
}

.demo-input:focus {
    border-color: #6366f1;
}

.demo-btn-submit {
    width: 100%;
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.demo-btn-submit:hover {
    background: #dc2626;
}

/* Bio Mode Container (Idêntico ao renderBioHtml) */
.demo-bio-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.demo-avatar-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.demo-bio-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    word-break: break-word;
}

.demo-bio-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.5;
}

.demo-social-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.demo-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.7);
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.demo-social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.demo-links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.demo-link-btn {
    background: rgba(30, 41, 59, 0.7);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.96rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-link-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(99, 102, 241, 0.3);
}

.demo-footer-brand {
    margin-top: auto;
    font-size: 0.75rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 20px;
}

/* Floating Toast Notification */
.demo-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    text-align: center;
    max-width: 90vw;
    animation: slideUp 0.25s ease;
}

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

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 15px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
