/* =========================================
   CreativAI Platform Demo Modal
   ========================================= */

.demo-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: demoOverlayIn 0.25s ease;
}

.demo-modal-overlay.active {
    display: flex;
}

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

.demo-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
    animation: demoModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes demoModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.demo-modal__header {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    padding: 32px 36px 28px;
    position: relative;
    text-align: center;
}

.demo-modal__icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: white;
}

.demo-modal__title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.demo-modal__subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.demo-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.demo-modal__close:hover {
    background: rgba(255,255,255,0.35);
}

.demo-modal__body {
    padding: 28px 36px;
}

.demo-modal__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-modal__benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.demo-modal__benefit-icon {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 11px;
    margin-top: 1px;
}

.demo-modal__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-modal__btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.demo-modal__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45);
    color: white;
    text-decoration: none;
}

.demo-modal__btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

.demo-modal__btn-secondary:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
    text-decoration: none;
}

.demo-modal__note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 16px;
}

/* Platform Demo Layout */
.platform-demo-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
}

.platform-demo-banner {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.platform-demo-banner a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 8px;
}

.platform-demo-banner a:hover {
    opacity: 0.85;
}

/* Disable all interactive elements */
.demo-disabled {
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* Demo action buttons get a special cursor */
[data-demo-action] {
    cursor: pointer !important;
}

/* Responsive */
@media (max-width: 640px) {
    .demo-modal {
        margin: 0;
        border-radius: 16px;
    }

    .demo-modal__header {
        padding: 24px 24px 20px;
    }

    .demo-modal__body {
        padding: 20px 24px;
    }
}
