/**
 * Demo Tier Styling
 * Styles for upgrade prompts, locked features, and demo restrictions
 */

/* ============================================
   UPGRADE MODAL
   ============================================ */

.upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.2s ease;
}

.upgrade-modal-overlay.closing {
    animation: fadeOut 0.2s ease;
}

.upgrade-modal {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(0, 164, 166, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.upgrade-modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.upgrade-modal h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.upgrade-modal > p {
    color: #aaa;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.upgrade-modal-features {
    background: rgba(0, 164, 166, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.upgrade-modal-features h4 {
    color: #00a4a6;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upgrade-modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upgrade-modal-features li {
    color: #ddd;
    padding: 8px 0;
    font-size: 15px;
}

.upgrade-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upgrade-btn-primary {
    background: linear-gradient(135deg, #00a4a6, #008a8c);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.upgrade-btn-primary:hover {
    background: linear-gradient(135deg, #00b8ba, #00a4a6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 164, 166, 0.4);
}

.upgrade-btn-secondary {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upgrade-btn-secondary:hover {
    border-color: #666;
    color: #aaa;
}

/* ============================================
   INLINE UPGRADE PROMPT
   ============================================ */

.upgrade-inline-prompt {
    background: linear-gradient(135deg, rgba(0, 164, 166, 0.15), rgba(0, 164, 166, 0.05));
    border: 1px solid rgba(0, 164, 166, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease;
}

.upgrade-inline-icon {
    font-size: 20px;
}

.upgrade-inline-message {
    flex: 1;
    color: #ddd;
    font-size: 14px;
}

.upgrade-inline-link {
    background: #00a4a6;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.upgrade-inline-link:hover {
    background: #00b8ba;
}

/* ============================================
   FEATURE LOCK OVERLAY
   ============================================ */

.feature-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: inherit;
    backdrop-filter: blur(4px);
}

.feature-lock-content {
    text-align: center;
    color: #fff;
}

.feature-lock-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.feature-lock-text {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 16px;
}

.feature-lock-btn {
    background: linear-gradient(135deg, #00a4a6, #008a8c);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-lock-btn:hover {
    background: linear-gradient(135deg, #00b8ba, #00a4a6);
    transform: scale(1.05);
}

/* ============================================
   SIDEBAR TAB LOCK INDICATORS
   ============================================ */

.tab-lock-icon {
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.7;
}

.demo-locked {
    opacity: 0.7;
    position: relative;
}

.demo-locked:hover {
    opacity: 0.9;
}

.demo-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    cursor: pointer;
}

/* ============================================
   TABLE LIMIT WARNING
   ============================================ */

.table-limit-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-limit-warning-icon {
    font-size: 24px;
}

.table-limit-warning-text {
    flex: 1;
    color: #ffc107;
    font-size: 14px;
}

.table-limit-warning-btn {
    background: #ffc107;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.table-limit-warning-btn:hover {
    background: #ffcd39;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

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

/* ============================================
   DEMO BADGE (for demo users)
   ============================================ */

.demo-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 164, 166, 0.2), rgba(0, 164, 166, 0.1));
    border: 1px solid rgba(0, 164, 166, 0.3);
    color: #00a4a6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-tier-badge::before {
    content: '⚡';
}
