// Free Complete Template Styles
@use "@wp-rollback/shared-core/styles/variables" as *;

// Success Notice Styling
.wpr-success-notice {
    margin-bottom: 20px !important;
    border-left: 4px solid #15803d !important;
    
    .components-notice__content {
        margin: 0 !important;
    }
    
    &__content {
        display: flex;
        align-items: center;
        gap: 8px;
        
        .components-icon {
            color: #15803d;
        }
    }
}

// What's Next Section
.wpr-next-steps {
    margin-bottom: 24px;
    
    &__heading {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 16px 0;
        font-size: 16px;
        font-weight: 600;
        color: #1d2327;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 8px;
    }
    
    &__list {
        margin-bottom: 24px;
        line-height: 1.6;
        
        li {
            margin-bottom: 8px;
            color: #3c434a;
            
            &:last-child {
                margin-bottom: 0 !important;
            }
        }
    }
}

// Pro Upgrade Card - Modern Design
.wpr-pro-upgrade-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #8b5cf6;
    margin-bottom: 20px;
    border-radius: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    
    &__body {
        padding: 24px;
        color: #1f2937;
        position: relative;
        
        // Subtle gradient overlay
        &::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
            border-radius: 50%;
            transform: translate(30px, -30px);
            pointer-events: none;
        }
    }
    
    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15), 0 4px 6px rgba(0, 0, 0, 0.05) !important;
        border-left-color: #7c3aed;
    }
    
    &__header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        
        h3 {
            margin: 0;
            font-size: 18px;
            line-height: 1.2;
            font-weight: 600;
            color: #1f2937;
            background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
    }
    
    &__description {
        margin: 0 0 20px 0;
        font-size: 14px;
        color: #6b7280;
        line-height: 1.5;
    }
    
    &__features {
        display: grid;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    &__feature {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
        border-radius: 8px;
        border: 1px solid rgba(139, 92, 246, 0.1);
        transition: background-color 0.2s ease, border-color 0.2s ease;
        
        &:hover {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
            border-color: rgba(139, 92, 246, 0.2);
        }
        
        .components-icon {
            color: #8b5cf6;
            margin-top: 2px;
            flex-shrink: 0;
            animation: none;
            filter: drop-shadow(0 1px 2px rgba(139, 92, 246, 0.2));
        }
        
        &-content {
            h5 {
                margin: 0 0 4px 0;
                font-size: 14px;
                font-weight: 600;
                color: #1f2937;
            }
            
            p {
                margin: 0;
                font-size: 13px;
                color: #6b7280;
                line-height: 1.4;
            }
        }
    }
    
    &__actions {
        display: flex;
        gap: 12px;
        align-items: center;
        
        .components-button {
            background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
            color: #fff !important;
            border: none !important;
            padding: 10px 20px;
            font-size: 14px;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
            
            &:hover {
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
                background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
            }
            
            &:active {
                transform: translateY(0);
            }
        }
        
        .components-external-link {
            color: #8b5cf6 !important;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            padding: 8px 12px;
            border-radius: 6px;
            transition: background-color 0.2s ease;
            
            &:hover {
                background: rgba(139, 92, 246, 0.1);
                text-decoration: underline;
            }
        }
    }
}

// Help Section
.wpr-help-section {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
    
    &:hover {
        background: #f1f5f9 !important;
    }
    
    &__text {
        margin: 0 0 8px 0;
        font-size: 14px;
        color: #64748b;
    }
    
    .components-external-link {
        color: #3858e9 !important;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }
}

// Modal content enhancements
.wpr-modal {
    // Increase modal width for better layout
    max-width: 650px !important;
    
    .wpr-modal-content {
        // Add some breathing room
        padding: 0 4px;
    }
}

// Animations
@keyframes pulse-star {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

// Responsive improvements
@media (max-width: 600px) {
    .wpr-pro-upgrade-card {
        .components-card__body {
            padding: 16px !important;
        }
        
        &__header h3 {
            font-size: 16px !important;
        }
        
        &__features {
            grid-template-columns: 1fr !important;
        }
    }
    
    .wpr-next-steps {
        &__list {
            padding-left: 16px !important;
        }
    }
} 