/* ===================================================
   Demo App — Stili aggiuntivi (sidebar, CTA, promo)
   =================================================== */

/* --- Layout con sidebar promo --- */
.demo-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.demo-main {
    min-width: 0;
}

/* --- Sidebar promo --- */
.demo-promo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promo-card {
    position: sticky;
    top: 80px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(240, 192, 64, 0.2);
}

.promo-card .promo-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.promo-card h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 10px;
}

.promo-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.promo-card .promo-price {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.promo-card .promo-price-note {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.promo-card .promo-course-info {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}

.promo-features-mini {
    text-align: left;
    margin-bottom: 16px;
}

.promo-features-mini div {
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* --- Pulsante CTA chiamata --- */
.btn-call {
    background: transparent;
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.4);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast, 0.2s);
    margin-top: 8px;
    display: inline-block;
}

.btn-call:hover {
    background: rgba(72, 187, 120, 0.1);
    border-color: #48bb78;
    color: #68d391;
}

.btn-call-sidebar {
    margin-top: 10px;
    font-size: 13px;
}

.demo-banner-top-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Banner top mobile --- */
.demo-banner-top {
    display: none;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.1), rgba(240, 192, 64, 0.05));
    border-bottom: 1px solid rgba(240, 192, 64, 0.2);
    text-align: center;
}

.demo-banner-top p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.demo-banner-top .btn {
    font-size: 12px;
    padding: 8px 16px;
}

/* --- Badge schede demo --- */
.demo-sheet-badge {
    background: rgba(240, 192, 64, 0.15);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* --- Hero demo --- */
.demo-hero {
    text-align: center;
    margin-bottom: 30px;
}

.demo-hero .hero-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.demo-hero .hero-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 6px;
}

.demo-hero .hero-demo-tag {
    display: inline-block;
    background: rgba(240, 192, 64, 0.15);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

/* --- Card simulazione demo --- */
.demo-mode-card {
    max-width: 500px;
    margin: 0 auto 24px;
    padding: 30px 24px;
    cursor: pointer;
    transition: all var(--transition-slow);
    text-align: center;
}

.demo-mode-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(240, 192, 64, 0.1);
}

/* --- Link login iscritti --- */
.demo-login-link {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.demo-login-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.demo-login-link a:hover {
    text-decoration: underline;
}

/* --- Promo post-risultato --- */
.demo-promo-result {
    margin-top: 24px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(240, 192, 64, 0.2);
    max-width: 600px;
    width: 100%;
}

.demo-promo-result h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 10px;
}

.demo-promo-result p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* --- Pagina bloccata dopo 3 schede --- */
.demo-blocked {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.promo-final {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 50px 40px;
    border: 2px solid rgba(240, 192, 64, 0.3);
    animation: slideUp 0.5s ease;
}

.promo-final .promo-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.promo-final h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 12px;
    line-height: 1.3;
}

.promo-final > p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.promo-final .promo-price {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.promo-final .promo-price-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.promo-final .promo-course-info,
.promo-course-info {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.promo-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 24px 0;
    text-align: left;
}

.promo-features div {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .demo-layout {
        grid-template-columns: 1fr;
    }

    .demo-promo-sidebar {
        order: -1;
    }

    .demo-promo-sidebar .promo-card {
        position: static;
    }

    .demo-banner-top {
        display: block;
    }

    .promo-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .promo-final {
        padding: 30px 20px;
    }

    .promo-final h1 {
        font-size: 22px;
    }

    .promo-final .promo-price {
        font-size: 36px;
    }

    .demo-hero .hero-title {
        font-size: 22px;
    }
}
