/* Estilos da Página de Demonstração Interativa QRAuth */

.demo-wrapper {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Header & Logo */
.demo-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.logo-img-demo {
    max-width: 360px;
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto 16px auto;
    filter: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo-img-demo:hover {
    transform: scale(1.02);
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.6);
    color: #d8b4fe;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
    margin-bottom: 14px;
}

.demo-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.demo-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.6;
    margin: 0 auto 20px;
}

/* Alert Banner 24h */
.demo-notice-banner {
    width: 100%;
    max-width: 820px;
    background: #000000;
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.25);
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.notice-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Generator Action Bar */
.demo-action-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.btn-generate-demo {
    background: linear-gradient(135deg, #8a2be2, #9d4edd);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5), 0 10px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-generate-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 45px rgba(138, 43, 226, 0.7), 0 14px 30px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #9d4edd, #b5179e);
}

.btn-generate-demo:active {
    transform: translateY(1px);
}

/* Codes Grid (Real vs Fake) */
.codes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
    max-width: 920px;
}

@media (min-width: 768px) {
    .codes-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.code-card {
    background: #000000 !important;
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.card-real {
    border: 1px solid rgba(0, 245, 255, 0.45);
    box-shadow: 0 0 35px rgba(0, 245, 255, 0.3), 0 0 70px rgba(138, 43, 226, 0.2), 0 20px 50px rgba(0, 0, 0, 0.95);
}

.card-real:hover {
    box-shadow: 0 0 45px rgba(0, 245, 255, 0.45), 0 0 85px rgba(138, 43, 226, 0.3), 0 25px 60px rgba(0, 0, 0, 0.95);
    transform: translateY(-3px);
}

.card-fake {
    border: 1px solid rgba(255, 0, 60, 0.45);
    box-shadow: 0 0 35px rgba(255, 0, 60, 0.3), 0 0 70px rgba(138, 43, 226, 0.2), 0 20px 50px rgba(0, 0, 0, 0.95);
}

.card-fake:hover {
    box-shadow: 0 0 45px rgba(255, 0, 60, 0.45), 0 0 85px rgba(138, 43, 226, 0.3), 0 25px 60px rgba(0, 0, 0, 0.95);
    transform: translateY(-3px);
}

.code-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-real {
    background: rgba(0, 245, 255, 0.12);
    border: 1px solid rgba(0, 245, 255, 0.5);
    color: #00f5ff;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.badge-fake {
    background: rgba(255, 0, 60, 0.12);
    border: 1px solid rgba(255, 0, 60, 0.5);
    color: #ff003c;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.3);
}

.code-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.code-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
    min-height: 40px;
}

.qr-box {
    background: #ffffff;
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.25s ease;
}

.qr-box:hover {
    transform: scale(1.03);
}

.qr-box img {
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 8px;
}

.hash-box-wrapper {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hash-box-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
    text-align: center;
}

.hash-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-real .hash-container {
    border-color: rgba(0, 245, 255, 0.35);
    background: rgba(0, 245, 255, 0.04);
}

.card-fake .hash-container {
    border-color: rgba(255, 0, 60, 0.35);
    background: rgba(255, 0, 60, 0.04);
}

.hash-text {
    font-family: 'Outfit', -apple-system, monospace;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: #ffffff;
    text-align: center;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-real .hash-text {
    color: #00f5ff;
    text-shadow: 0 0 12px rgba(0, 245, 255, 0.4);
}

.card-fake .hash-text {
    color: #ff3366;
    text-shadow: 0 0 12px rgba(255, 0, 60, 0.4);
}

.btn-copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-test {
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-test-real {
    background: #00f5ff;
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.btn-test-real:hover {
    background: #5df8ff;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.6);
    transform: translateY(-1px);
}

.btn-test-fake {
    background: #ff003c;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.4);
}

.btn-test-fake:hover {
    background: #ff3360;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.6);
    transform: translateY(-1px);
}

/* Steps Section */
.steps-section {
    width: 100%;
    max-width: 920px;
    background: #000000 !important;
    border: 1px solid rgba(138, 43, 226, 0.45);
    box-shadow: 0 0 35px rgba(138, 43, 226, 0.4), 0 0 70px rgba(138, 43, 226, 0.18), 0 25px 60px rgba(0, 0, 0, 0.95);
    border-radius: 24px;
    padding: 36px 28px;
}

.steps-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 8px;
}

.steps-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
}

.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(138, 43, 226, 0.4);
    transform: translateX(4px);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #000000;
    border: 2px solid;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-1 .step-number {
    border-color: #00f5ff;
    color: #00f5ff;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
}

.step-2 .step-number {
    border-color: #ffb703;
    color: #ffb703;
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.4);
}

.step-3 .step-number {
    border-color: #ff003c;
    color: #ff003c;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
}

.step-content {
    flex: 1;
}

.step-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.step-heading h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.step-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.badge-green {
    background: rgba(0, 245, 255, 0.15);
    color: #00f5ff;
    border: 1px solid rgba(0, 245, 255, 0.4);
}

.badge-amber {
    background: rgba(255, 183, 3, 0.15);
    color: #ffb703;
    border: 1px solid rgba(255, 183, 3, 0.4);
}

.badge-red {
    background: rgba(255, 0, 60, 0.15);
    color: #ff003c;
    border: 1px solid rgba(255, 0, 60, 0.4);
}

.step-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Results Container Transition */
#demo-results-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#demo-results-wrapper.hidden {
    display: none !important;
}

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

/* Modal de Geração Futurista com Scanner */
.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease forwards;
}

.demo-modal-overlay.hidden {
    display: none !important;
}

.demo-modal-card {
    background: #000000;
    border: 1px solid rgba(138, 43, 226, 0.55);
    border-radius: 24px;
    padding: 36px 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.5), 0 0 100px rgba(0, 245, 255, 0.2), 0 25px 60px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalScaleUp {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.demo-scanner-box {
    width: 130px;
    height: 130px;
    position: relative;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(138, 43, 226, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 25px rgba(138, 43, 226, 0.2);
    margin: 8px 0;
}

.demo-scanner-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #00f5ff;
    box-shadow: 0 0 16px 6px rgba(0, 245, 255, 0.7);
    top: 0;
    left: 0;
    animation: scanLineAnim 1.6s linear infinite alternate;
}

@keyframes scanLineAnim {
    0% { top: -5%; }
    100% { top: 105%; }
}

.demo-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.demo-modal-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.demo-footer-links {
    margin-top: 10px;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.demo-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.demo-footer-links a:hover {
    color: #ffffff;
}
